From f0d798f4ef258cd5279a7b886fa70565a36a3f85 Mon Sep 17 00:00:00 2001 From: Induri Reddy Date: Wed, 1 Jul 2026 20:22:48 +0000 Subject: [PATCH 1/4] Preparation for Release v1.60.0 --- build/Makefile | 2 +- cloudbuild.yaml | 2 +- install/helm/agones/Chart.yaml | 4 +- install/helm/agones/values.yaml | 2 +- install/yaml/install.yaml | 74 +++++++++++++++---------------- sdks/csharp/sdk/AgonesSDK.nuspec | 2 +- sdks/csharp/sdk/csharp-sdk.csproj | 2 +- sdks/nodejs/package-lock.json | 4 +- sdks/nodejs/package.json | 2 +- sdks/rust/Cargo.toml | 2 +- sdks/unity/package.json | 2 +- test/sdk/go/Makefile | 2 +- test/upgrade/Makefile | 2 +- test/upgrade/versionMap.yaml | 2 +- 14 files changed, 52 insertions(+), 52 deletions(-) diff --git a/build/Makefile b/build/Makefile index 19b31f7094..1fb33b92f8 100644 --- a/build/Makefile +++ b/build/Makefile @@ -24,7 +24,7 @@ # # base version target. This is usually the next release. -base_version = 1.59.0 +base_version = 1.60.0 # # All of the following can be overwritten with environment variables diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 82cd1df775..2fa2eb9cc8 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -443,7 +443,7 @@ steps: done substitutions: - _BASE_VERSION: 1.59.0 + _BASE_VERSION: 1.60.0 _CACHE_BUCKET: agones-build-cache _HTMLTEST_CACHE_KEY: htmltest-0.10.1 _CPP_SDK_BUILD_CACHE_KEY: cpp-sdk-build diff --git a/install/helm/agones/Chart.yaml b/install/helm/agones/Chart.yaml index 3b47b018e7..ae80a47fc0 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.59.0" -version: 1.59.0 +appVersion: "1.60.0-dev" +version: 1.60.0-dev name: agones description: a library for hosting, running and scaling dedicated game servers on Kubernetes. keywords: diff --git a/install/helm/agones/values.yaml b/install/helm/agones/values.yaml index 30858adaeb..e01643b4a3 100644 --- a/install/helm/agones/values.yaml +++ b/install/helm/agones/values.yaml @@ -330,7 +330,7 @@ agones: minAvailable: 1 image: registry: us-docker.pkg.dev/agones-images/release - tag: 1.59.0 + tag: 1.60.0-dev controller: name: agones-controller pullPolicy: IfNotPresent diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml index 3dc10fc105..2128d144de 100644 --- a/install/yaml/install.yaml +++ b/install/yaml/install.yaml @@ -57,7 +57,7 @@ metadata: namespace: agones-system labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm --- @@ -82,7 +82,7 @@ metadata: namespace: agones-system labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm --- @@ -107,7 +107,7 @@ metadata: namespace: default labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm --- @@ -119,7 +119,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.59.0" + chart: "agones-1.60.0-dev" release: "agones-manual" heritage: "Helm" type: Opaque @@ -136,7 +136,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.59.0" + chart: "agones-1.60.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -152,7 +152,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.59.0" + chart: "agones-1.60.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -168,7 +168,7 @@ metadata: namespace: agones-system labels: app: agones - chart: "agones-1.59.0" + chart: "agones-1.60.0-dev" release: "agones-manual" heritage: "Helm" data: @@ -198,7 +198,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -6672,7 +6672,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -7384,7 +7384,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -13690,7 +13690,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm name: gameserverallocationpolicies.multicluster.agones.dev @@ -13769,7 +13769,7 @@ metadata: labels: component: crd app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20208,7 +20208,7 @@ metadata: name: agones-allocator labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm rules: @@ -20238,7 +20238,7 @@ metadata: name: agones-controller labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm rules: @@ -20292,7 +20292,7 @@ metadata: name: agones-sdk labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm rules: @@ -20311,7 +20311,7 @@ metadata: name: agones-allocator labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm subjects: @@ -20330,7 +20330,7 @@ metadata: name: agones-controller-access labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm subjects: @@ -20382,7 +20382,7 @@ metadata: namespace: default labels: app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm subjects: @@ -20416,7 +20416,7 @@ metadata: labels: agones.dev/role: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20450,7 +20450,7 @@ metadata: labels: agones.dev/role: extensions app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20470,7 +20470,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20493,7 +20493,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20530,7 +20530,7 @@ metadata: labels: agones.dev/role: extensions app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20567,7 +20567,7 @@ metadata: labels: component: allocator app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20590,7 +20590,7 @@ metadata: labels: multicluster.agones.dev/role: allocator app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20624,7 +20624,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20666,7 +20666,7 @@ spec: serviceAccountName: agones-controller containers: - name: agones-controller - image: "us-docker.pkg.dev/agones-images/release/agones-controller:1.59.0" + image: "us-docker.pkg.dev/agones-images/release/agones-controller:1.60.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -20680,7 +20680,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.59.0" + value: "us-docker.pkg.dev/agones-images/release/agones-sdk:1.60.0-dev" - name: ALWAYS_PULL_SIDECAR # set the sidecar imagePullPolicy to Always value: "false" - name: SIDECAR_CPU_REQUEST @@ -20800,7 +20800,7 @@ metadata: labels: component: extensions app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20844,7 +20844,7 @@ spec: terminationGracePeriodSeconds: 27 containers: - name: agones-extensions - image: "us-docker.pkg.dev/agones-images/release/agones-extensions:1.59.0" + image: "us-docker.pkg.dev/agones-images/release/agones-extensions:1.60.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -20954,7 +20954,7 @@ metadata: labels: component: ping app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -20989,7 +20989,7 @@ spec: priorityClassName: agones-system containers: - name: agones-ping - image: "us-docker.pkg.dev/agones-images/release/agones-ping:1.59.0" + image: "us-docker.pkg.dev/agones-images/release/agones-ping:1.60.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -21067,7 +21067,7 @@ spec: secretName: allocator-client-ca containers: - name: agones-allocator - image: "us-docker.pkg.dev/agones-images/release/agones-allocator:1.59.0" + image: "us-docker.pkg.dev/agones-images/release/agones-allocator:1.60.0-dev" imagePullPolicy: IfNotPresent securityContext: runAsNonRoot: true @@ -21154,7 +21154,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm spec: @@ -21220,7 +21220,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm webhooks: @@ -21263,7 +21263,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm webhooks: @@ -21299,7 +21299,7 @@ metadata: labels: component: controller app: agones - chart: agones-1.59.0 + chart: agones-1.60.0-dev release: agones-manual heritage: Helm webhooks: diff --git a/sdks/csharp/sdk/AgonesSDK.nuspec b/sdks/csharp/sdk/AgonesSDK.nuspec index 951a19b0ed..deff46c93a 100644 --- a/sdks/csharp/sdk/AgonesSDK.nuspec +++ b/sdks/csharp/sdk/AgonesSDK.nuspec @@ -2,7 +2,7 @@ AgonesSDK - 1.59.0 + 1.60.0-dev Google LLC Google LLC false diff --git a/sdks/csharp/sdk/csharp-sdk.csproj b/sdks/csharp/sdk/csharp-sdk.csproj index 3ed372b02c..9dc707fd92 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.59.0 + 1.60.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 4cdcf293af..80396446c5 100644 --- a/sdks/nodejs/package-lock.json +++ b/sdks/nodejs/package-lock.json @@ -1,12 +1,12 @@ { "name": "@google-cloud/agones-sdk", - "version": "1.59.0", + "version": "1.60.0-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@google-cloud/agones-sdk", - "version": "1.59.0", + "version": "1.60.0-dev", "license": "Apache-2.0", "dependencies": { "@grpc/grpc-js": "1.14.4", diff --git a/sdks/nodejs/package.json b/sdks/nodejs/package.json index f8d98ba2f4..c0ae68eda2 100644 --- a/sdks/nodejs/package.json +++ b/sdks/nodejs/package.json @@ -26,5 +26,5 @@ "publishConfig": { "access": "public" }, - "version": "1.59.0" + "version": "1.60.0-dev" } diff --git a/sdks/rust/Cargo.toml b/sdks/rust/Cargo.toml index 9ceed7f428..54b2b8a5b7 100644 --- a/sdks/rust/Cargo.toml +++ b/sdks/rust/Cargo.toml @@ -14,7 +14,7 @@ [package] name = "agones" -version = "1.59.0" +version = "1.60.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 f345004f66..0429969ddd 100644 --- a/sdks/unity/package.json +++ b/sdks/unity/package.json @@ -1,6 +1,6 @@ { "name": "com.googleforgames.agones", - "version": "1.59.0", + "version": "1.60.0-dev", "displayName": "Agones Unity SDK", "description": "The Unity Gameserver SDK for Agones", "unity": "2019.1", diff --git a/test/sdk/go/Makefile b/test/sdk/go/Makefile index 5c8bec1169..fd39bec62a 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.58.0 +release_version = 1.59.0 server_tag := $(REGISTRY)/sdk-client-test:$(release_version) # _____ _ diff --git a/test/upgrade/Makefile b/test/upgrade/Makefile index b6c5122eea..e0f87ebb31 100644 --- a/test/upgrade/Makefile +++ b/test/upgrade/Makefile @@ -24,7 +24,7 @@ # REGISTRY ?= -base_version = 1.59.0 +base_version = 1.60.0 # Version defaults to the short hash of the latest commit VERSION ?= $(base_version)-dev-$(shell git rev-parse --short=7 HEAD) server_tag := $(REGISTRY)/upgrade-test-controller:$(VERSION) diff --git a/test/upgrade/versionMap.yaml b/test/upgrade/versionMap.yaml index 8ec59822a6..ebe34cee28 100644 --- a/test/upgrade/versionMap.yaml +++ b/test/upgrade/versionMap.yaml @@ -19,7 +19,7 @@ metadata: name: version-map data: DevVersion: ${DevVersion} - ReleaseVersion: "1.58.0" + ReleaseVersion: "1.59.0" version-mappings.json: | { "k8sToAgonesVersions": { From b9d48af2d4169c4cb915c55e4050763ff118d223 Mon Sep 17 00:00:00 2001 From: Induri Reddy Date: Mon, 3 Aug 2026 08:39:10 +0000 Subject: [PATCH 2/4] Remove PlayerTracking alpha SDK methods --- build/includes/sdk.mk | 13 - cmd/sdk-server/main.go | 4 - examples/gameserverallocation-deprecated.yaml | 9 +- examples/nodejs-simple/README.md | 16 - examples/nodejs-simple/src/index.js | 75 +- examples/simple-game-server/handlers.go | 107 - examples/supertuxkart/main.go | 25 - pkg/sdk/alpha/alpha.pb.go | 423 +- pkg/sdk/alpha/alpha.pb.gw.go | 562 -- pkg/sdk/alpha/alpha_grpc.pb.go | 356 +- pkg/sdk/sdk.pb.go | 358 +- pkg/sdkserver/localsdk.go | 204 +- pkg/sdkserver/localsdk_test.go | 310 - pkg/sdkserver/sdk.go | 10 - pkg/sdkserver/sdk_test.go | 29 - pkg/sdkserver/sdkserver.go | 230 +- pkg/sdkserver/sdkserver_test.go | 337 - proto/sdk/alpha/alpha.proto | 117 +- proto/sdk/sdk.proto | 14 +- sdks/cpp/include/agones/sdk.pb.h | 2359 +++--- sdks/cpp/src/agones/sdk.pb.cc | 6315 ++++++----------- sdks/csharp/proto/sdk/alpha/alpha.proto | 117 +- sdks/csharp/proto/sdk/sdk.proto | 14 +- sdks/csharp/sdk/AgonesSDK.cs | 12 +- sdks/csharp/sdk/Alpha.cs | 237 - sdks/csharp/sdk/IAgonesAlphaSDK.cs | 32 - sdks/csharp/sdk/IAgonesSDK.cs | 1 - sdks/csharp/test/AgonesAlphaSDKClientTests.cs | 166 - sdks/go/alpha.go | 85 - sdks/go/alpha_test.go | 113 - sdks/go/sdk.go | 7 - sdks/nodejs/lib/alpha/alpha_grpc_pb.js | 180 - sdks/nodejs/lib/alpha/alpha_pb.js | 760 -- sdks/nodejs/lib/sdk_pb.js | 289 - sdks/nodejs/spec/agonesSDK.spec.js | 7 - sdks/nodejs/spec/alphaAgonesSDK.spec.js | 288 - sdks/nodejs/src/agonesSDK.d.ts | 3 - sdks/nodejs/src/agonesSDK.js | 2 - sdks/nodejs/src/alpha.d.ts | 33 - sdks/nodejs/src/alpha.js | 130 - .../agones/_generated/alpha/alpha_pb2.py | 16 +- .../agones/_generated/alpha/alpha_pb2_grpc.py | 350 +- sdks/python/agones/_generated/sdk_pb2.py | 36 +- sdks/python/agones/alpha.py | 54 - sdks/python/agones/sdk.py | 10 - sdks/python/tests/test_alpha.py | 65 - sdks/python/tests/test_sdk.py | 6 - sdks/rust/proto/sdk/alpha/alpha.proto | 117 +- sdks/rust/proto/sdk/sdk.proto | 14 +- sdks/rust/src/alpha.rs | 239 - sdks/rust/src/lib.rs | 3 +- sdks/rust/src/sdk.rs | 13 +- sdks/swagger/alpha.swagger.json | 220 +- sdks/swagger/sdk.swagger.json | 24 - sdks/unity/AgonesAlphaSdk.cs | 191 - sdks/unity/AgonesAlphaSdk.cs.meta | 3 - .../PlayMode/AgonesSdkIntegrationTests.cs | 3 - .../Agones/Source/Agones/Classes/Classes.h | 36 - .../Source/Agones/Private/AgonesSubsystem.cpp | 163 - .../Source/Agones/Public/AgonesSubsystem.h | 76 - test/sdk/csharp/Program.cs | 76 - test/sdk/go/sdk-client-test.go | 50 - test/sdk/python/testSDKClient.py | 38 - test/sdk/restapi/alpha/swagger/api_sdk.go | 632 -- test/sdk/restapi/alpha/swagger/client.go | 3 - .../restapi/alpha/swagger/model_alpha_bool.go | 28 - .../alpha/swagger/model_alpha_count.go | 29 - .../alpha/swagger/model_alpha_empty.go | 27 - .../alpha/swagger/model_alpha_player_id.go | 29 - .../swagger/model_alpha_player_id_list.go | 28 - test/sdk/restapi/http-api-test.go | 59 - .../swagger/model_sdk_game_server_status.go | 1 - .../swagger/model_status_player_status.go | 30 - test/sdk/rust/src/main.rs | 161 - 74 files changed, 3311 insertions(+), 13868 deletions(-) delete mode 100644 pkg/sdk/alpha/alpha.pb.gw.go delete mode 100644 sdks/csharp/sdk/Alpha.cs delete mode 100644 sdks/csharp/sdk/IAgonesAlphaSDK.cs delete mode 100644 sdks/csharp/test/AgonesAlphaSDKClientTests.cs delete mode 100644 sdks/go/alpha.go delete mode 100644 sdks/go/alpha_test.go delete mode 100644 sdks/nodejs/spec/alphaAgonesSDK.spec.js delete mode 100644 sdks/nodejs/src/alpha.d.ts delete mode 100644 sdks/nodejs/src/alpha.js delete mode 100644 sdks/python/agones/alpha.py delete mode 100644 sdks/python/tests/test_alpha.py delete mode 100644 sdks/rust/src/alpha.rs delete mode 100644 sdks/unity/AgonesAlphaSdk.cs delete mode 100644 sdks/unity/AgonesAlphaSdk.cs.meta delete mode 100644 test/sdk/restapi/alpha/swagger/api_sdk.go delete mode 100644 test/sdk/restapi/alpha/swagger/model_alpha_bool.go delete mode 100644 test/sdk/restapi/alpha/swagger/model_alpha_count.go delete mode 100644 test/sdk/restapi/alpha/swagger/model_alpha_empty.go delete mode 100644 test/sdk/restapi/alpha/swagger/model_alpha_player_id.go delete mode 100644 test/sdk/restapi/alpha/swagger/model_alpha_player_id_list.go delete mode 100644 test/sdk/restapi/swagger/model_status_player_status.go diff --git a/build/includes/sdk.mk b/build/includes/sdk.mk index 48aedf9164..4c3b3b8c2c 100644 --- a/build/includes/sdk.mk +++ b/build/includes/sdk.mk @@ -35,7 +35,6 @@ SDK_FOLDER ?= go COMMAND ?= gen SDK_IMAGE_TAG=$(build_sdk_prefix)$(SDK_FOLDER):$(build_sdk_version) DEFAULT_CONFORMANCE_TESTS = ready,allocate,setlabel,setannotation,gameserver,health,shutdown,watch,reserve -ALPHA_CONFORMANCE_TESTS = getplayercapacity,setplayercapacity,playerconnect,playerdisconnect,getplayercount,isplayerconnected,getconnectedplayers # TODO: Move Counter and List tests into DEFAULT_CONFORMANCE_TESTS once the they are written for all SDKs COUNTS_AND_LISTS_TESTS = getcounter,updatecounter,setcountcounter,setcapacitycounter,getlist,updatelist,addlistvalue,removelistvalue @@ -176,39 +175,27 @@ run-sdk-conformance-test-node: run-sdk-conformance-test-go: # run with on-by-default (Beta) feature flags enabled $(MAKE) run-sdk-conformance-test SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) - # run with Alpha and Beta feature flags enabled - $(MAKE) run-sdk-conformance-test SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 FEATURE_GATES=$(ALPHA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) run-sdk-conformance-test-rust: # run without feature flags $(MAKE) run-sdk-conformance-test SDK_FOLDER=rust GRPC_PORT=9004 HTTP_PORT=9104 # run without feature flags and with RUN_ASYNC=true DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -e RUN_ASYNC=true" $(MAKE) run-sdk-conformance-test SDK_FOLDER=rust GRPC_PORT=9004 HTTP_PORT=9104 - # run with feature flags enabled - $(MAKE) run-sdk-conformance-test SDK_FOLDER=rust GRPC_PORT=9004 HTTP_PORT=9104 FEATURE_GATES=PlayerTracking=true TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) - # run with feature flags enabled and with RUN_ASYNC=true - DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -e RUN_ASYNC=true" $(MAKE) run-sdk-conformance-test SDK_FOLDER=rust GRPC_PORT=9004 HTTP_PORT=9104 FEATURE_GATES=PlayerTracking=true TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) run-sdk-conformance-test-csharp: # run with Beta feature flags enabled $(MAKE) run-sdk-conformance-test SDK_FOLDER=csharp GRPC_PORT=9005 HTTP_PORT=9105 FEATURE_GATES=$(BETA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) - # run with Alpha feature flags enabled - $(MAKE) run-sdk-conformance-test SDK_FOLDER=csharp GRPC_PORT=9005 HTTP_PORT=9105 FEATURE_GATES=$(ALPHA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) run-sdk-conformance-test-rest: # (note: the restapi folder doesn't use GRPC_PORT but run-sdk-conformance-no-build defaults it, so we supply a unique value here) # run with Beta feature flags enabled $(MAKE) run-sdk-conformance-test SDK_FOLDER=restapi GRPC_PORT=9050 HTTP_PORT=9150 FEATURE_GATES=$(BETA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) - # run with Alpha feature flags enabled - $(MAKE) run-sdk-conformance-test SDK_FOLDER=restapi GRPC_PORT=9050 HTTP_PORT=9150 FEATURE_GATES=$(ALPHA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) $(MAKE) run-sdk-command COMMAND=clean SDK_FOLDER=restapi run-sdk-conformance-test-python: # run with Beta feature flags enabled $(MAKE) run-sdk-conformance-test SDK_FOLDER=python GRPC_PORT=9006 HTTP_PORT=9106 FEATURE_GATES=$(BETA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(COUNTS_AND_LISTS_TESTS) - # run with Alpha feature flags enabled - $(MAKE) run-sdk-conformance-test SDK_FOLDER=python GRPC_PORT=9006 HTTP_PORT=9106 FEATURE_GATES=$(ALPHA_FEATURE_GATES) TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) # Run a conformance test for all SDKs supported run-sdk-conformance-tests: run-sdk-conformance-test-node run-sdk-conformance-test-go run-sdk-conformance-test-rust run-sdk-conformance-test-rest run-sdk-conformance-test-cpp run-sdk-conformance-test-csharp run-sdk-conformance-test-python diff --git a/cmd/sdk-server/main.go b/cmd/sdk-server/main.go index 9fad7ed617..729d3a856c 100644 --- a/cmd/sdk-server/main.go +++ b/cmd/sdk-server/main.go @@ -261,10 +261,6 @@ func runGateway(ctx context.Context, grpcEndpoint string, mux *gwruntime.ServeMu logger.WithError(err).Fatal("Could not register sdk grpc-gateway") } - if err := sdkalpha.RegisterSDKHandler(ctx, mux, conn); err != nil { - logger.WithError(err).Fatal("Could not register alpha sdk grpc-gateway") - } - if err := sdkbeta.RegisterSDKHandler(ctx, mux, conn); err != nil { logger.WithError(err).Fatal("Could not register beta sdk grpc-gateway") } diff --git a/examples/gameserverallocation-deprecated.yaml b/examples/gameserverallocation-deprecated.yaml index b61a6de4d4..3444645bd2 100644 --- a/examples/gameserverallocation-deprecated.yaml +++ b/examples/gameserverallocation-deprecated.yaml @@ -39,15 +39,8 @@ spec: - {key: tier, operator: In, values: [cache]} # Specifies which State is the filter to be used when attempting to retrieve a GameServer # via Allocation. Defaults to "Ready". The only other option is "Allocated", which can be used in conjunction with - # label/annotation/player selectors to retrieve an already Allocated GameServer. + # label/annotation selectors to retrieve an already Allocated GameServer. gameServerState: Ready - # [Stage:Alpha] - # [FeatureFlag:PlayerAllocationFilter] - # Provides a filter on minimum and maximum values for player capacity when retrieving a GameServer - # through Allocation. Defaults to no limits. - players: - minAvailable: 0 - maxAvailable: 99 # Deprecated, use selectors instead. # ordered list of preferred allocations out of the `required` set. # If the first selector is not matched, the selection attempts the second selector, and so on. diff --git a/examples/nodejs-simple/README.md b/examples/nodejs-simple/README.md index 3817489e14..e19224c6a5 100644 --- a/examples/nodejs-simple/README.md +++ b/examples/nodejs-simple/README.md @@ -12,10 +12,6 @@ It will: - After the shutdown duration (default 60 seconds), shut the server down - Parse options to get help or set the shutdown timeout duration -If alpha features are enabled it will additionally: -- Set and get the player capacity (this is not enforced) -- Add, get and remove players, and test if they are present - To learn how to deploy this example service to GKE, please see the tutorial [Build and Run a Simple Gameserver (node.js)](https://agones.dev/site/docs/tutorials/simple-gameserver-nodejs/). ## Building @@ -81,15 +77,3 @@ $ make args="--timeout=0" run $ docker run --network=host us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.10 --timeout=0 $ npm start -- --timeout=0 ``` - -To enable alpha features ensure the feature gate is enabled: -```bash -$ cd ../../build; make run-sdk-conformance-local TIMEOUT=120 FEATURE_GATES="PlayerTracking=true" TESTS=ready,watch,health,gameserver -``` - -Then enable the alpha suite: -``` -$ make args="--alpha" run -$ docker run --network=host us-docker.pkg.dev/agones-images/examples/nodejs-simple-server:0.10 --alpha -$ npm start -- --alpha -``` diff --git a/examples/nodejs-simple/src/index.js b/examples/nodejs-simple/src/index.js index ffa730d9f2..f51f529dc6 100644 --- a/examples/nodejs-simple/src/index.js +++ b/examples/nodejs-simple/src/index.js @@ -18,7 +18,7 @@ const {setTimeout} = require('timers/promises'); const DEFAULT_TIMEOUT = 60; const MAX_TIMEOUT = 2147483; -const connect = async (timeout, enableAlpha, enableBeta) => { +const connect = async (timeout, enableBeta) => { let agonesSDK = new AgonesSDK(); let lifetimeInterval; @@ -44,11 +44,6 @@ const connect = async (timeout, enableAlpha, enableBeta) => { state: ${result.status.state} labels: ${result.objectMeta.labelsMap.join(' & ')} annotations: ${result.objectMeta.annotationsMap.join(' & ')}`; - if (enableAlpha) { - output += ` - players: ${result.status.players.count}/${result.status.players.capacity} [${result.status.players.idsList}]`; - } - console.log(output); }, (error) => { console.error('Watch ERROR', error); clearInterval(healthInterval); @@ -77,11 +72,6 @@ const connect = async (timeout, enableAlpha, enableBeta) => { await agonesSDK.reserve(10); await setTimeout(15000); - if (enableAlpha) { - console.log('Running alpha suite'); - await runAlphaSuite(agonesSDK); - } - if (enableBeta) { console.log('Running beta suite'); await runBetaSuite(agonesSDK); @@ -117,61 +107,6 @@ const connect = async (timeout, enableAlpha, enableBeta) => { } }; -const runAlphaSuite = async (agonesSDK) => { - await setTimeout(5000); - console.log('Setting capacity'); - await agonesSDK.alpha.setPlayerCapacity(64); - - await setTimeout(5000); - console.log('Getting capacity'); - let result = await agonesSDK.alpha.getPlayerCapacity(); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Connecting a player'); - result = await agonesSDK.alpha.playerConnect('firstPlayerID'); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Connecting a duplicate player'); - result = await agonesSDK.alpha.playerConnect('firstPlayerID'); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Connecting another player'); - await agonesSDK.alpha.playerConnect('secondPlayerID'); - - await setTimeout(5000); - console.log('Getting player count'); - result = await agonesSDK.alpha.getPlayerCount(); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Finding if firstPlayerID connected'); - result = await agonesSDK.alpha.isPlayerConnected('firstPlayerID'); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Getting connected players'); - result = await agonesSDK.alpha.getConnectedPlayers(); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Disconnecting a player'); - result = await agonesSDK.alpha.playerDisconnect('firstPlayerID'); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Disconnecting the same player'); - result = await agonesSDK.alpha.playerDisconnect('firstPlayerID'); - console.log(`result: ${result}`); - - await setTimeout(5000); - console.log('Setting counter capacity'); - result = await agonesSDK.alpha.setCounterCapacity('testCounter', 10); - console.log(`result: ${result}`); -}; - const runBetaSuite = async (agonesSDK) => { let result; @@ -236,7 +171,6 @@ const runBetaSuite = async (agonesSDK) => { let args = process.argv.slice(2); let timeout = DEFAULT_TIMEOUT; -let enableAlpha = false; let enableBeta = false; for (let arg of args) { @@ -246,7 +180,6 @@ for (let arg of args) { Options: --timeout=...\t\tshutdown timeout in seconds. Use 0 to never shut down - --alpha\t\t\tenable alpha features --beta\t\t\tenable beta features`); return; } @@ -264,10 +197,6 @@ Options: } } - if (argName === '--alpha') { - console.log('Enabling alpha features!'); - enableAlpha = true; - } if (argName === '--beta') { console.log('Enabling beta features!'); @@ -275,4 +204,4 @@ Options: } } -connect(timeout, enableAlpha, enableBeta); +connect(timeout,enableBeta); diff --git a/examples/simple-game-server/handlers.go b/examples/simple-game-server/handlers.go index 85081eea6f..ad431d8d84 100644 --- a/examples/simple-game-server/handlers.go +++ b/examples/simple-game-server/handlers.go @@ -41,12 +41,6 @@ var responseMap = map[string]responseHandler{ "LABEL": handleLabel, "CRASH": handleCrash, "ANNOTATION": handleAnnotation, - "PLAYER_CAPACITY": handlePlayerCapacity, - "PLAYER_CONNECT": handlePlayerConnect, - "PLAYER_DISCONNECT": handlePlayerDisconnect, - "PLAYER_CONNECTED": handlePlayerConnected, - "GET_PLAYERS": handleGetPlayers, - "PLAYER_COUNT": handlePlayerCount, "GET_COUNTER_COUNT": handleGetCounterCount, "INCREMENT_COUNTER": handleIncrementCounter, "DECREMENT_COUNTER": handleDecrementCounter, @@ -212,107 +206,6 @@ func handleAnnotation(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (resp return } -// handlePlayerCapacity sets the player capacity to the given value -// or returns the current player capacity as a string -func handlePlayerCapacity(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - response, addACK = defaultReply(parts) - switch len(parts) { - case 1: - log.Print("Getting Player Capacity") - capacity, err := s.Alpha().GetPlayerCapacity() - if err != nil { - log.Fatalf("could not get capacity: %v", err) - } - response = strconv.FormatInt(capacity, 10) + "\n" - addACK = false - case 2: - if cap, err := strconv.Atoi(parts[1]); err != nil { - response = fmt.Sprintf("%s", err) - responseError = err - } else { - log.Printf("Setting Player Capacity to %d", int64(cap)) - if err := s.Alpha().SetPlayerCapacity(int64(cap)); err != nil { - log.Fatalf("could not set capacity: %v", err) - } - } - default: - response = "Invalid PLAYER_CAPACITY, should have 0 or 1 arguments" - responseError = fmt.Errorf("Invalid PLAYER_CAPACITY, should have 0 or 1 arguments") - } - return -} - -// handlePlayerConnect connects a given player -func handlePlayerConnect(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - response, addACK = defaultReply(parts) - if len(parts) < 2 { - response = "Invalid PLAYER_CONNECT, should have 1 argument" - responseError = fmt.Errorf("Invalid PLAYER_CONNECT, should have 1 argument") - return - } - log.Printf("Connecting Player: %s", parts[1]) - if _, err := s.Alpha().PlayerConnect(parts[1]); err != nil { - log.Fatalf("could not connect player: %v", err) - } - return -} - -// handlePlayerDisconnect disconnects a given player -func handlePlayerDisconnect(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - response, addACK = defaultReply(parts) - if len(parts) < 2 { - response = "Invalid PLAYER_DISCONNECT, should have 1 argument" - responseError = fmt.Errorf("Invalid PLAYER_DISCONNECT, should have 1 argument") - return - } - log.Printf("Disconnecting Player: %s", parts[1]) - if _, err := s.Alpha().PlayerDisconnect(parts[1]); err != nil { - log.Fatalf("could not disconnect player: %v", err) - } - return -} - -// handlePlayerConnected returns a bool as a string if a player is connected -func handlePlayerConnected(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - if len(parts) < 2 { - response = "Invalid PLAYER_CONNECTED, should have 1 argument" - responseError = fmt.Errorf("Invalid PLAYER_CONNECTED, should have 1 argument") - return - } - log.Printf("Checking if player %s is connected", parts[1]) - connected, err := s.Alpha().IsPlayerConnected(parts[1]) - if err != nil { - log.Fatalf("could not retrieve if player is connected: %v", err) - } - response = strconv.FormatBool(connected) + "\n" - addACK = false - return -} - -// handleGetPlayers returns a comma delimited list of connected players -func handleGetPlayers(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - log.Print("Retrieving connected player list") - list, err := s.Alpha().GetConnectedPlayers() - if err != nil { - log.Fatalf("could not retrieve connected players: %s", err) - } - response = strings.Join(list, ",") + "\n" - addACK = false - return -} - -// handlePlayerCount returns the count of connected players as a string -func handlePlayerCount(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { - log.Print("Retrieving connected player count") - count, err := s.Alpha().GetPlayerCount() - if err != nil { - log.Fatalf("could not retrieve player count: %s", err) - } - response = strconv.FormatInt(count, 10) + "\n" - addACK = false - return -} - // handleGetCounterCount returns the Count of the given Counter as a string func handleGetCounterCount(s *sdk.SDK, parts []string, _ ...context.CancelFunc) (response string, addACK bool, responseError error) { if len(parts) < 2 { diff --git a/examples/supertuxkart/main.go b/examples/supertuxkart/main.go index 599a8e8b0e..e3187b0b65 100644 --- a/examples/supertuxkart/main.go +++ b/examples/supertuxkart/main.go @@ -38,9 +38,6 @@ func main() { log.SetPrefix("[wrapper] ") input := flag.String("i", "", "the command and arguments to execute the server binary") - // Since player tracking is not on by default, it is behind this flag. - // If it is off, still log messages about players, but don't actually call the player tracking functions. - enablePlayerTracking := flag.Bool("player-tracking", false, "If true, player tracking will be enabled.") flag.Parse() log.Println("Connecting to Agones with the SDK") @@ -49,12 +46,6 @@ func main() { log.Fatalf("could not connect to SDK: %v", err) } - if *enablePlayerTracking { - if err = s.Alpha().SetPlayerCapacity(8); err != nil { - log.Fatalf("could not set play count: %v", err) - } - } - log.Println("Starting health checking") go doHealth(s) @@ -121,27 +112,11 @@ func main() { log.Print("could not determine player") break } - if *enablePlayerTracking { - result, err := s.Alpha().PlayerConnect(*player) - if err != nil { - log.Print(err) - } else { - log.Print(result) - } - } case "PLAYERLEAVE": if player == nil { log.Print("could not determine player") break } - if *enablePlayerTracking { - result, err := s.Alpha().PlayerDisconnect(*player) - if err != nil { - log.Print(err) - } else { - log.Print(result) - } - } case "SHUTDOWN": if err := s.Shutdown(); err != nil { log.Fatal(err) diff --git a/pkg/sdk/alpha/alpha.pb.go b/pkg/sdk/alpha/alpha.pb.go index 1aa6939939..ef04fee302 100644 --- a/pkg/sdk/alpha/alpha.pb.go +++ b/pkg/sdk/alpha/alpha.pb.go @@ -37,10 +37,8 @@ package alpha import ( reflect "reflect" - sync "sync" _ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options" - _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) @@ -52,353 +50,27 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -// I am Empty -type Empty struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *Empty) Reset() { - *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_alpha_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Empty) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Empty) ProtoMessage() {} - -func (x *Empty) ProtoReflect() protoreflect.Message { - mi := &file_alpha_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Empty.ProtoReflect.Descriptor instead. -func (*Empty) Descriptor() ([]byte, []int) { - return file_alpha_proto_rawDescGZIP(), []int{0} -} - -// Store a count variable. -type Count struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` -} - -func (x *Count) Reset() { - *x = Count{} - if protoimpl.UnsafeEnabled { - mi := &file_alpha_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Count) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Count) ProtoMessage() {} - -func (x *Count) ProtoReflect() protoreflect.Message { - mi := &file_alpha_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Count.ProtoReflect.Descriptor instead. -func (*Count) Descriptor() ([]byte, []int) { - return file_alpha_proto_rawDescGZIP(), []int{1} -} - -func (x *Count) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - -// Store a boolean result -type Bool struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Bool bool `protobuf:"varint,1,opt,name=bool,proto3" json:"bool,omitempty"` -} - -func (x *Bool) Reset() { - *x = Bool{} - if protoimpl.UnsafeEnabled { - mi := &file_alpha_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Bool) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Bool) ProtoMessage() {} - -func (x *Bool) ProtoReflect() protoreflect.Message { - mi := &file_alpha_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Bool.ProtoReflect.Descriptor instead. -func (*Bool) Descriptor() ([]byte, []int) { - return file_alpha_proto_rawDescGZIP(), []int{2} -} - -func (x *Bool) GetBool() bool { - if x != nil { - return x.Bool - } - return false -} - -// The unique identifier for a given player. -type PlayerID struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PlayerID string `protobuf:"bytes,1,opt,name=playerID,proto3" json:"playerID,omitempty"` -} - -func (x *PlayerID) Reset() { - *x = PlayerID{} - if protoimpl.UnsafeEnabled { - mi := &file_alpha_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlayerID) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlayerID) ProtoMessage() {} - -func (x *PlayerID) ProtoReflect() protoreflect.Message { - mi := &file_alpha_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlayerID.ProtoReflect.Descriptor instead. -func (*PlayerID) Descriptor() ([]byte, []int) { - return file_alpha_proto_rawDescGZIP(), []int{3} -} - -func (x *PlayerID) GetPlayerID() string { - if x != nil { - return x.PlayerID - } - return "" -} - -// List of Player IDs -type PlayerIDList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` -} - -func (x *PlayerIDList) Reset() { - *x = PlayerIDList{} - if protoimpl.UnsafeEnabled { - mi := &file_alpha_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PlayerIDList) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PlayerIDList) ProtoMessage() {} - -func (x *PlayerIDList) ProtoReflect() protoreflect.Message { - mi := &file_alpha_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PlayerIDList.ProtoReflect.Descriptor instead. -func (*PlayerIDList) Descriptor() ([]byte, []int) { - return file_alpha_proto_rawDescGZIP(), []int{4} -} - -func (x *PlayerIDList) GetList() []string { - if x != nil { - return x.List - } - return nil -} - var File_alpha_proto protoreflect.FileDescriptor var file_alpha_proto_rawDesc = []byte{ 0x0a, 0x0b, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x6f, 0x70, - 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1d, 0x0a, 0x05, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x04, 0x42, 0x6f, 0x6f, - 0x6c, 0x12, 0x21, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, - 0x0d, 0x92, 0x41, 0x0a, 0xa2, 0x02, 0x07, 0x62, 0x6f, 0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x52, 0x04, - 0x62, 0x6f, 0x6f, 0x6c, 0x22, 0x26, 0x0a, 0x08, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, - 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x22, 0x22, 0x0a, 0x0c, - 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, - 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, - 0x32, 0xa9, 0x06, 0x0a, 0x03, 0x53, 0x44, 0x4b, 0x12, 0x6d, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x67, 0x6f, 0x6e, - 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x1a, 0x2e, 0x61, 0x67, 0x6f, 0x6e, - 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, - 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x22, 0x20, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1a, 0x22, 0x15, 0x2f, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x73, 0x0a, 0x10, 0x50, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x2e, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x1a, 0x2e, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, - 0x18, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x64, - 0x69, 0x73, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x3a, 0x01, 0x2a, 0x12, 0x70, 0x0a, 0x11, - 0x53, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, - 0x79, 0x12, 0x1b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, - 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x1b, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x1b, 0x1a, 0x16, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x6d, - 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x43, 0x61, 0x70, 0x61, 0x63, - 0x69, 0x74, 0x79, 0x12, 0x1b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x1b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, - 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1e, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x12, 0x16, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, - 0x61, 0x79, 0x65, 0x72, 0x2f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x67, 0x0a, - 0x0e, 0x47, 0x65, 0x74, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x1b, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, - 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, 0x2e, 0x61, - 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, - 0x70, 0x68, 0x61, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x1b, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x15, 0x12, 0x13, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x2f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x7b, 0x0a, 0x11, 0x49, 0x73, 0x50, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x12, 0x1e, 0x2e, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x1a, 0x1a, 0x2e, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, - 0x68, 0x61, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x22, 0x2a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x12, - 0x22, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x2f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x2f, 0x7b, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, - 0x49, 0x44, 0x7d, 0x12, 0x77, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x61, 0x67, 0x6f, - 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, - 0x61, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2e, 0x50, - 0x6c, 0x61, 0x79, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x1f, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x19, 0x12, 0x17, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x2f, 0x70, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x65, 0x64, 0x42, 0x53, 0x5a, 0x07, - 0x2e, 0x2f, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x92, 0x41, 0x47, 0x12, 0x1e, 0x0a, 0x0b, 0x61, 0x6c, - 0x70, 0x68, 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 ( - file_alpha_proto_rawDescOnce sync.Once - file_alpha_proto_rawDescData = file_alpha_proto_rawDesc -) - -func file_alpha_proto_rawDescGZIP() []byte { - file_alpha_proto_rawDescOnce.Do(func() { - file_alpha_proto_rawDescData = protoimpl.X.CompressGZIP(file_alpha_proto_rawDescData) - }) - return file_alpha_proto_rawDescData -} - -var file_alpha_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_alpha_proto_goTypes = []interface{}{ - (*Empty)(nil), // 0: agones.dev.sdk.alpha.Empty - (*Count)(nil), // 1: agones.dev.sdk.alpha.Count - (*Bool)(nil), // 2: agones.dev.sdk.alpha.Bool - (*PlayerID)(nil), // 3: agones.dev.sdk.alpha.PlayerID - (*PlayerIDList)(nil), // 4: agones.dev.sdk.alpha.PlayerIDList -} + 0x70, 0x68, 0x61, 0x1a, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, + 0x6f, 0x70, 0x65, 0x6e, 0x61, 0x70, 0x69, 0x76, 0x32, 0x2f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x32, 0x05, 0x0a, 0x03, 0x53, 0x44, 0x4b, 0x42, 0x53, 0x5a, 0x07, 0x2e, 0x2f, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x92, 0x41, 0x47, 0x12, 0x1e, 0x0a, 0x0b, 0x61, 0x6c, 0x70, 0x68, + 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 file_alpha_proto_goTypes = []interface{}{} var file_alpha_proto_depIdxs = []int32{ - 3, // 0: agones.dev.sdk.alpha.SDK.PlayerConnect:input_type -> agones.dev.sdk.alpha.PlayerID - 3, // 1: agones.dev.sdk.alpha.SDK.PlayerDisconnect:input_type -> agones.dev.sdk.alpha.PlayerID - 1, // 2: agones.dev.sdk.alpha.SDK.SetPlayerCapacity:input_type -> agones.dev.sdk.alpha.Count - 0, // 3: agones.dev.sdk.alpha.SDK.GetPlayerCapacity:input_type -> agones.dev.sdk.alpha.Empty - 0, // 4: agones.dev.sdk.alpha.SDK.GetPlayerCount:input_type -> agones.dev.sdk.alpha.Empty - 3, // 5: agones.dev.sdk.alpha.SDK.IsPlayerConnected:input_type -> agones.dev.sdk.alpha.PlayerID - 0, // 6: agones.dev.sdk.alpha.SDK.GetConnectedPlayers:input_type -> agones.dev.sdk.alpha.Empty - 2, // 7: agones.dev.sdk.alpha.SDK.PlayerConnect:output_type -> agones.dev.sdk.alpha.Bool - 2, // 8: agones.dev.sdk.alpha.SDK.PlayerDisconnect:output_type -> agones.dev.sdk.alpha.Bool - 0, // 9: agones.dev.sdk.alpha.SDK.SetPlayerCapacity:output_type -> agones.dev.sdk.alpha.Empty - 1, // 10: agones.dev.sdk.alpha.SDK.GetPlayerCapacity:output_type -> agones.dev.sdk.alpha.Count - 1, // 11: agones.dev.sdk.alpha.SDK.GetPlayerCount:output_type -> agones.dev.sdk.alpha.Count - 2, // 12: agones.dev.sdk.alpha.SDK.IsPlayerConnected:output_type -> agones.dev.sdk.alpha.Bool - 4, // 13: agones.dev.sdk.alpha.SDK.GetConnectedPlayers:output_type -> agones.dev.sdk.alpha.PlayerIDList - 7, // [7:14] is the sub-list for method output_type - 0, // [0:7] is the sub-list for method input_type + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name @@ -409,81 +81,18 @@ func file_alpha_proto_init() { if File_alpha_proto != nil { return } - if !protoimpl.UnsafeEnabled { - file_alpha_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Empty); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_alpha_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Count); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_alpha_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Bool); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_alpha_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlayerID); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_alpha_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PlayerIDList); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_alpha_proto_rawDesc, NumEnums: 0, - NumMessages: 5, + NumMessages: 0, NumExtensions: 0, NumServices: 1, }, GoTypes: file_alpha_proto_goTypes, DependencyIndexes: file_alpha_proto_depIdxs, - MessageInfos: file_alpha_proto_msgTypes, }.Build() File_alpha_proto = out.File file_alpha_proto_rawDesc = nil diff --git a/pkg/sdk/alpha/alpha.pb.gw.go b/pkg/sdk/alpha/alpha.pb.gw.go deleted file mode 100644 index 5759a3f345..0000000000 --- a/pkg/sdk/alpha/alpha.pb.gw.go +++ /dev/null @@ -1,562 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: alpha.proto - -/* -Package alpha is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package alpha - -import ( - "context" - "errors" - "io" - "net/http" - - "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" - "github.com/grpc-ecosystem/grpc-gateway/v2/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/metadata" - "google.golang.org/grpc/status" - "google.golang.org/protobuf/proto" -) - -// Suppress "imported and not used" errors -var ( - _ codes.Code - _ io.Reader - _ status.Status - _ = errors.New - _ = runtime.String - _ = utilities.NewDoubleArray - _ = metadata.Join -) - -func request_SDK_PlayerConnect_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.PlayerConnect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_PlayerConnect_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.PlayerConnect(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_PlayerDisconnect_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.PlayerDisconnect(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_PlayerDisconnect_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.PlayerDisconnect(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_SetPlayerCapacity_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Count - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.SetPlayerCapacity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_SetPlayerCapacity_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Count - metadata runtime.ServerMetadata - ) - if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - msg, err := server.SetPlayerCapacity(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_GetPlayerCapacity_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.GetPlayerCapacity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_GetPlayerCapacity_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - msg, err := server.GetPlayerCapacity(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_GetPlayerCount_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.GetPlayerCount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_GetPlayerCount_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - msg, err := server.GetPlayerCount(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_IsPlayerConnected_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - err error - ) - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - val, ok := pathParams["playerID"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "playerID") - } - protoReq.PlayerID, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "playerID", err) - } - msg, err := client.IsPlayerConnected(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_IsPlayerConnected_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq PlayerID - metadata runtime.ServerMetadata - err error - ) - val, ok := pathParams["playerID"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "playerID") - } - protoReq.PlayerID, err = runtime.String(val) - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "playerID", err) - } - msg, err := server.IsPlayerConnected(ctx, &protoReq) - return msg, metadata, err -} - -func request_SDK_GetConnectedPlayers_0(ctx context.Context, marshaler runtime.Marshaler, client SDKClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - if req.Body != nil { - _, _ = io.Copy(io.Discard, req.Body) - } - msg, err := client.GetConnectedPlayers(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_SDK_GetConnectedPlayers_0(ctx context.Context, marshaler runtime.Marshaler, server SDKServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq Empty - metadata runtime.ServerMetadata - ) - msg, err := server.GetConnectedPlayers(ctx, &protoReq) - return msg, metadata, err -} - -// RegisterSDKHandlerServer registers the http handlers for service SDK to "mux". -// UnaryRPC :call SDKServer directly. -// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. -// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSDKHandlerFromEndpoint instead. -// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call. -func RegisterSDKHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SDKServer) error { - mux.Handle(http.MethodPost, pattern_SDK_PlayerConnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/PlayerConnect", runtime.WithHTTPPathPattern("/alpha/player/connect")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_PlayerConnect_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_PlayerConnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_SDK_PlayerDisconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/PlayerDisconnect", runtime.WithHTTPPathPattern("/alpha/player/disconnect")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_PlayerDisconnect_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_PlayerDisconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPut, pattern_SDK_SetPlayerCapacity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/SetPlayerCapacity", runtime.WithHTTPPathPattern("/alpha/player/capacity")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_SetPlayerCapacity_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_SetPlayerCapacity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetPlayerCapacity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetPlayerCapacity", runtime.WithHTTPPathPattern("/alpha/player/capacity")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_GetPlayerCapacity_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetPlayerCapacity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetPlayerCount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetPlayerCount", runtime.WithHTTPPathPattern("/alpha/player/count")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_GetPlayerCount_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetPlayerCount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_IsPlayerConnected_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/IsPlayerConnected", runtime.WithHTTPPathPattern("/alpha/player/connected/{playerID}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_IsPlayerConnected_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_IsPlayerConnected_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetConnectedPlayers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - var stream runtime.ServerTransportStream - ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetConnectedPlayers", runtime.WithHTTPPathPattern("/alpha/player/connected")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_SDK_GetConnectedPlayers_0(annotatedContext, inboundMarshaler, server, req, pathParams) - md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetConnectedPlayers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - - return nil -} - -// 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) { - conn, err := grpc.NewClient(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - return RegisterSDKHandler(ctx, mux, conn) -} - -// RegisterSDKHandler registers the http handlers for service SDK to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSDKHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSDKHandlerClient(ctx, mux, NewSDKClient(conn)) -} - -// RegisterSDKHandlerClient registers the http handlers for service SDK -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SDKClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SDKClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SDKClient" to call the correct interceptors. This client ignores the HTTP middlewares. -func RegisterSDKHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SDKClient) error { - mux.Handle(http.MethodPost, pattern_SDK_PlayerConnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/PlayerConnect", runtime.WithHTTPPathPattern("/alpha/player/connect")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_PlayerConnect_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_PlayerConnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_SDK_PlayerDisconnect_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/PlayerDisconnect", runtime.WithHTTPPathPattern("/alpha/player/disconnect")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_PlayerDisconnect_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_PlayerDisconnect_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPut, pattern_SDK_SetPlayerCapacity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/SetPlayerCapacity", runtime.WithHTTPPathPattern("/alpha/player/capacity")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_SetPlayerCapacity_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_SetPlayerCapacity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetPlayerCapacity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetPlayerCapacity", runtime.WithHTTPPathPattern("/alpha/player/capacity")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_GetPlayerCapacity_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetPlayerCapacity_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetPlayerCount_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetPlayerCount", runtime.WithHTTPPathPattern("/alpha/player/count")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_GetPlayerCount_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetPlayerCount_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_IsPlayerConnected_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/IsPlayerConnected", runtime.WithHTTPPathPattern("/alpha/player/connected/{playerID}")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_IsPlayerConnected_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_IsPlayerConnected_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodGet, pattern_SDK_GetConnectedPlayers_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/agones.dev.sdk.alpha.SDK/GetConnectedPlayers", runtime.WithHTTPPathPattern("/alpha/player/connected")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SDK_GetConnectedPlayers_0(annotatedContext, inboundMarshaler, client, req, pathParams) - annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md) - if err != nil { - runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err) - return - } - forward_SDK_GetConnectedPlayers_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - return nil -} - -var ( - pattern_SDK_PlayerConnect_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "connect"}, "")) - pattern_SDK_PlayerDisconnect_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "disconnect"}, "")) - pattern_SDK_SetPlayerCapacity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "capacity"}, "")) - pattern_SDK_GetPlayerCapacity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "capacity"}, "")) - pattern_SDK_GetPlayerCount_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "count"}, "")) - pattern_SDK_IsPlayerConnected_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"alpha", "player", "connected", "playerID"}, "")) - pattern_SDK_GetConnectedPlayers_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"alpha", "player", "connected"}, "")) -) - -var ( - forward_SDK_PlayerConnect_0 = runtime.ForwardResponseMessage - forward_SDK_PlayerDisconnect_0 = runtime.ForwardResponseMessage - forward_SDK_SetPlayerCapacity_0 = runtime.ForwardResponseMessage - forward_SDK_GetPlayerCapacity_0 = runtime.ForwardResponseMessage - forward_SDK_GetPlayerCount_0 = runtime.ForwardResponseMessage - forward_SDK_IsPlayerConnected_0 = runtime.ForwardResponseMessage - forward_SDK_GetConnectedPlayers_0 = runtime.ForwardResponseMessage -) diff --git a/pkg/sdk/alpha/alpha_grpc.pb.go b/pkg/sdk/alpha/alpha_grpc.pb.go index 9b6b298da6..f2adf491ea 100644 --- a/pkg/sdk/alpha/alpha_grpc.pb.go +++ b/pkg/sdk/alpha/alpha_grpc.pb.go @@ -22,11 +22,7 @@ package alpha import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file @@ -38,59 +34,6 @@ const _ = grpc.SupportPackageIsVersion7 // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type SDKClient interface { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - // list of connected playerIDs. - // - // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - // connected playerIDs will be left unchanged. - // - // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - // the server has been reached. The playerID will not be added to the list of playerIDs. - // - // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - // through the Kubernetes API, as indeterminate results will occur. - PlayerConnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - // playerID value exists within the list. - // - // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - // will be left unchanged. - // - // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - // through the Kubernetes API, as indeterminate results will occur. - PlayerDisconnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) - // Update the GameServer.Status.Players.Capacity value with a new capacity. - SetPlayerCapacity(ctx context.Context, in *Count, opts ...grpc.CallOption) (*Empty, error) - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetPlayerCapacity(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) - // Retrieves the current player count. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetPlayerCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - IsPlayerConnected(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetConnectedPlayers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PlayerIDList, error) } type sDKClient struct { @@ -101,154 +44,16 @@ func NewSDKClient(cc grpc.ClientConnInterface) SDKClient { return &sDKClient{cc} } -func (c *sDKClient) PlayerConnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/PlayerConnect", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) PlayerDisconnect(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/PlayerDisconnect", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) SetPlayerCapacity(ctx context.Context, in *Count, opts ...grpc.CallOption) (*Empty, error) { - out := new(Empty) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/SetPlayerCapacity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) GetPlayerCapacity(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) { - out := new(Count) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/GetPlayerCapacity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) GetPlayerCount(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Count, error) { - out := new(Count) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/GetPlayerCount", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) IsPlayerConnected(ctx context.Context, in *PlayerID, opts ...grpc.CallOption) (*Bool, error) { - out := new(Bool) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/IsPlayerConnected", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *sDKClient) GetConnectedPlayers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PlayerIDList, error) { - out := new(PlayerIDList) - err := c.cc.Invoke(ctx, "/agones.dev.sdk.alpha.SDK/GetConnectedPlayers", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // SDKServer is the server API for SDK service. // All implementations should embed UnimplementedSDKServer // for forward compatibility type SDKServer interface { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - // list of connected playerIDs. - // - // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - // connected playerIDs will be left unchanged. - // - // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - // the server has been reached. The playerID will not be added to the list of playerIDs. - // - // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - // through the Kubernetes API, as indeterminate results will occur. - PlayerConnect(context.Context, *PlayerID) (*Bool, error) - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - // playerID value exists within the list. - // - // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - // will be left unchanged. - // - // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - // through the Kubernetes API, as indeterminate results will occur. - PlayerDisconnect(context.Context, *PlayerID) (*Bool, error) - // Update the GameServer.Status.Players.Capacity value with a new capacity. - SetPlayerCapacity(context.Context, *Count) (*Empty, error) - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetPlayerCapacity(context.Context, *Empty) (*Count, error) - // Retrieves the current player count. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetPlayerCount(context.Context, *Empty) (*Count, error) - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - IsPlayerConnected(context.Context, *PlayerID) (*Bool, error) - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - GetConnectedPlayers(context.Context, *Empty) (*PlayerIDList, error) } // UnimplementedSDKServer should be embedded to have forward compatible implementations. type UnimplementedSDKServer struct { } -func (UnimplementedSDKServer) PlayerConnect(context.Context, *PlayerID) (*Bool, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlayerConnect not implemented") -} -func (UnimplementedSDKServer) PlayerDisconnect(context.Context, *PlayerID) (*Bool, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlayerDisconnect not implemented") -} -func (UnimplementedSDKServer) SetPlayerCapacity(context.Context, *Count) (*Empty, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetPlayerCapacity not implemented") -} -func (UnimplementedSDKServer) GetPlayerCapacity(context.Context, *Empty) (*Count, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPlayerCapacity not implemented") -} -func (UnimplementedSDKServer) GetPlayerCount(context.Context, *Empty) (*Count, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPlayerCount not implemented") -} -func (UnimplementedSDKServer) IsPlayerConnected(context.Context, *PlayerID) (*Bool, error) { - return nil, status.Errorf(codes.Unimplemented, "method IsPlayerConnected not implemented") -} -func (UnimplementedSDKServer) GetConnectedPlayers(context.Context, *Empty) (*PlayerIDList, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetConnectedPlayers not implemented") -} - // UnsafeSDKServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SDKServer will // result in compilation errors. @@ -260,168 +65,13 @@ func RegisterSDKServer(s grpc.ServiceRegistrar, srv SDKServer) { s.RegisterService(&SDK_ServiceDesc, srv) } -func _SDK_PlayerConnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlayerID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).PlayerConnect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/PlayerConnect", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).PlayerConnect(ctx, req.(*PlayerID)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_PlayerDisconnect_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlayerID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).PlayerDisconnect(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/PlayerDisconnect", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).PlayerDisconnect(ctx, req.(*PlayerID)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_SetPlayerCapacity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Count) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).SetPlayerCapacity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/SetPlayerCapacity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).SetPlayerCapacity(ctx, req.(*Count)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_GetPlayerCapacity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).GetPlayerCapacity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/GetPlayerCapacity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).GetPlayerCapacity(ctx, req.(*Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_GetPlayerCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).GetPlayerCount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/GetPlayerCount", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).GetPlayerCount(ctx, req.(*Empty)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_IsPlayerConnected_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlayerID) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).IsPlayerConnected(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/IsPlayerConnected", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).IsPlayerConnected(ctx, req.(*PlayerID)) - } - return interceptor(ctx, in, info, handler) -} - -func _SDK_GetConnectedPlayers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(Empty) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SDKServer).GetConnectedPlayers(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/agones.dev.sdk.alpha.SDK/GetConnectedPlayers", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SDKServer).GetConnectedPlayers(ctx, req.(*Empty)) - } - return interceptor(ctx, in, info, handler) -} - // SDK_ServiceDesc is the grpc.ServiceDesc for SDK service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SDK_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agones.dev.sdk.alpha.SDK", HandlerType: (*SDKServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "PlayerConnect", - Handler: _SDK_PlayerConnect_Handler, - }, - { - MethodName: "PlayerDisconnect", - Handler: _SDK_PlayerDisconnect_Handler, - }, - { - MethodName: "SetPlayerCapacity", - Handler: _SDK_SetPlayerCapacity_Handler, - }, - { - MethodName: "GetPlayerCapacity", - Handler: _SDK_GetPlayerCapacity_Handler, - }, - { - MethodName: "GetPlayerCount", - Handler: _SDK_GetPlayerCount_Handler, - }, - { - MethodName: "IsPlayerConnected", - Handler: _SDK_IsPlayerConnected_Handler, - }, - { - MethodName: "GetConnectedPlayers", - Handler: _SDK_GetConnectedPlayers_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "alpha.proto", + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{}, + Metadata: "alpha.proto", } diff --git a/pkg/sdk/sdk.pb.go b/pkg/sdk/sdk.pb.go index 8d2f22d509..59f9f73ff6 100644 --- a/pkg/sdk/sdk.pb.go +++ b/pkg/sdk/sdk.pb.go @@ -431,9 +431,6 @@ type GameServer_Status struct { Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Addresses []*GameServer_Status_Address `protobuf:"bytes,7,rep,name=addresses,proto3" json:"addresses,omitempty"` Ports []*GameServer_Status_Port `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"` - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - Players *GameServer_Status_PlayerStatus `protobuf:"bytes,4,opt,name=players,proto3" json:"players,omitempty"` // [Stage:Beta] // [FeatureFlag:CountsAndLists] Counters map[string]*GameServer_Status_CounterStatus `protobuf:"bytes,5,rep,name=counters,proto3" json:"counters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -502,13 +499,6 @@ func (x *GameServer_Status) GetPorts() []*GameServer_Status_Port { return nil } -func (x *GameServer_Status) GetPlayers() *GameServer_Status_PlayerStatus { - if x != nil { - return x.Players - } - return nil -} - func (x *GameServer_Status) GetCounters() map[string]*GameServer_Status_CounterStatus { if x != nil { return x.Counters @@ -704,71 +694,6 @@ func (x *GameServer_Status_Port) GetPort() int32 { return 0 } -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -type GameServer_Status_PlayerStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - Capacity int64 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"` - Ids []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"` -} - -func (x *GameServer_Status_PlayerStatus) Reset() { - *x = GameServer_Status_PlayerStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_sdk_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServer_Status_PlayerStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServer_Status_PlayerStatus) ProtoMessage() {} - -func (x *GameServer_Status_PlayerStatus) ProtoReflect() protoreflect.Message { - mi := &file_sdk_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServer_Status_PlayerStatus.ProtoReflect.Descriptor instead. -func (*GameServer_Status_PlayerStatus) Descriptor() ([]byte, []int) { - return file_sdk_proto_rawDescGZIP(), []int{3, 2, 2} -} - -func (x *GameServer_Status_PlayerStatus) GetCount() int64 { - if x != nil { - return x.Count - } - return 0 -} - -func (x *GameServer_Status_PlayerStatus) GetCapacity() int64 { - if x != nil { - return x.Capacity - } - return 0 -} - -func (x *GameServer_Status_PlayerStatus) GetIds() []string { - if x != nil { - return x.Ids - } - return nil -} - // [Stage:Beta] // [FeatureFlag:CountsAndLists] type GameServer_Status_CounterStatus struct { @@ -783,7 +708,7 @@ type GameServer_Status_CounterStatus struct { func (x *GameServer_Status_CounterStatus) Reset() { *x = GameServer_Status_CounterStatus{} if protoimpl.UnsafeEnabled { - mi := &file_sdk_proto_msgTypes[13] + mi := &file_sdk_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -796,7 +721,7 @@ func (x *GameServer_Status_CounterStatus) String() string { func (*GameServer_Status_CounterStatus) ProtoMessage() {} func (x *GameServer_Status_CounterStatus) ProtoReflect() protoreflect.Message { - mi := &file_sdk_proto_msgTypes[13] + mi := &file_sdk_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -809,7 +734,7 @@ func (x *GameServer_Status_CounterStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use GameServer_Status_CounterStatus.ProtoReflect.Descriptor instead. func (*GameServer_Status_CounterStatus) Descriptor() ([]byte, []int) { - return file_sdk_proto_rawDescGZIP(), []int{3, 2, 3} + return file_sdk_proto_rawDescGZIP(), []int{3, 2, 2} } func (x *GameServer_Status_CounterStatus) GetCount() int64 { @@ -840,7 +765,7 @@ type GameServer_Status_ListStatus struct { func (x *GameServer_Status_ListStatus) Reset() { *x = GameServer_Status_ListStatus{} if protoimpl.UnsafeEnabled { - mi := &file_sdk_proto_msgTypes[14] + mi := &file_sdk_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -853,7 +778,7 @@ func (x *GameServer_Status_ListStatus) String() string { func (*GameServer_Status_ListStatus) ProtoMessage() {} func (x *GameServer_Status_ListStatus) ProtoReflect() protoreflect.Message { - mi := &file_sdk_proto_msgTypes[14] + mi := &file_sdk_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -866,7 +791,7 @@ func (x *GameServer_Status_ListStatus) ProtoReflect() protoreflect.Message { // Deprecated: Use GameServer_Status_ListStatus.ProtoReflect.Descriptor instead. func (*GameServer_Status_ListStatus) Descriptor() ([]byte, []int) { - return file_sdk_proto_rawDescGZIP(), []int{3, 2, 4} + return file_sdk_proto_rawDescGZIP(), []int{3, 2, 3} } func (x *GameServer_Status_ListStatus) GetCapacity() int64 { @@ -898,7 +823,7 @@ var file_sdk_proto_rawDesc = []byte{ 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x24, 0x0a, 0x08, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x9c, 0x0f, 0x0a, + 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x8d, 0x0e, 0x0a, 0x0a, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0b, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, @@ -961,7 +886,7 @@ var file_sdk_proto_rawDesc = []byte{ 0x6c, 0x64, 0x12, 0x32, 0x0a, 0x15, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x13, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x53, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x1a, 0xb2, 0x07, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x1a, 0xa3, 0x06, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, @@ -973,108 +898,99 @@ var file_sdk_proto_rawDesc = []byte{ 0x72, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x6f, 0x72, - 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x48, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x79, - 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x61, 0x67, 0x6f, 0x6e, + 0x74, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x4b, 0x0a, 0x08, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x67, 0x6f, + 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x18, 0x06, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, + 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x07, 0x41, 0x64, 0x64, + 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, + 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x1a, 0x2e, 0x0a, 0x04, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, + 0x72, 0x74, 0x1a, 0x41, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x1a, 0x40, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, + 0x01, 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, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x50, 0x6c, 0x61, - 0x79, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, - 0x72, 0x73, 0x12, 0x4b, 0x0a, 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x66, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x42, 0x0a, 0x05, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, + 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x4a, 0x04, 0x08, + 0x04, 0x10, 0x05, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x73, 0x32, 0x86, 0x06, 0x0a, + 0x03, 0x53, 0x44, 0x4b, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x15, 0x2e, + 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, + 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x11, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x0b, 0x22, 0x06, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x4e, + 0x0a, 0x08, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, + 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, + 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, + 0x22, 0x09, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4e, + 0x0a, 0x08, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, + 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, + 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, + 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, + 0x22, 0x09, 0x2f, 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x4c, + 0x0a, 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x22, 0x07, + 0x2f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x3a, 0x01, 0x2a, 0x28, 0x01, 0x12, 0x57, 0x0a, 0x0d, + 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x15, 0x2e, + 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, + 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x22, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0f, 0x57, 0x61, 0x74, 0x63, 0x68, 0x47, 0x61, + 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, + 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, + 0x1a, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, + 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x19, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x13, 0x12, 0x11, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x67, 0x61, 0x6d, 0x65, + 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x30, 0x01, 0x12, 0x57, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x4c, + 0x61, 0x62, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, + 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6c, 0x69, - 0x73, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x1a, 0x2e, 0x0a, 0x04, - 0x50, 0x6f, 0x72, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x1a, 0x52, 0x0a, 0x0c, - 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 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, 0x10, - 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, - 0x1a, 0x41, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x1a, 0x40, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01, 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, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x1a, 0x6c, 0x0a, 0x0d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x72, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x45, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x1a, 0x66, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x42, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, - 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x86, 0x06, 0x0a, 0x03, - 0x53, 0x44, 0x4b, 0x12, 0x48, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x15, 0x2e, 0x61, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, 0x2f, + 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x3a, 0x01, + 0x2a, 0x12, 0x61, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x18, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, + 0x73, 0x64, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x11, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x0b, 0x22, 0x06, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, - 0x08, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, + 0x70, 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x1a, 0x14, 0x2f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x4f, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x12, + 0x18, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, + 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, - 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x22, - 0x09, 0x2f, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x4e, 0x0a, - 0x08, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, - 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, - 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x14, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0e, 0x22, - 0x09, 0x2f, 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x3a, 0x01, 0x2a, 0x12, 0x4c, 0x0a, - 0x06, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x15, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x12, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0c, 0x22, 0x07, 0x2f, - 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x3a, 0x01, 0x2a, 0x28, 0x01, 0x12, 0x57, 0x0a, 0x0d, 0x47, - 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x61, - 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x1a, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, - 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x12, 0x0b, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x12, 0x61, 0x0a, 0x0f, 0x57, 0x61, 0x74, 0x63, 0x68, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, - 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1a, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0x19, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x13, 0x12, 0x11, 0x2f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x30, 0x01, 0x12, 0x57, 0x0a, 0x08, 0x53, 0x65, 0x74, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x12, 0x18, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, - 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x15, 0x2e, - 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, - 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x14, 0x1a, 0x0f, 0x2f, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x3a, 0x01, 0x2a, - 0x12, 0x61, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x18, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, - 0x64, 0x6b, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x15, 0x2e, 0x61, 0x67, - 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x22, 0x1f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x19, 0x1a, 0x14, 0x2f, 0x6d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x3a, 0x01, 0x2a, 0x12, 0x4f, 0x0a, 0x07, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x12, 0x18, - 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x15, 0x2e, 0x61, 0x67, 0x6f, 0x6e, 0x65, - 0x73, 0x2e, 0x64, 0x65, 0x76, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, - 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x22, 0x08, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x4f, 0x5a, 0x05, 0x2e, 0x2f, 0x73, 0x64, 0x6b, 0x92, 0x41, 0x45, - 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x64, 0x6b, 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, 0x13, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x0d, 0x22, 0x08, 0x2f, 0x72, 0x65, 0x73, 0x65, 0x72, + 0x76, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x4f, 0x5a, 0x05, 0x2e, 0x2f, 0x73, 0x64, 0x6b, 0x92, 0x41, + 0x45, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x64, 0x6b, 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 ( @@ -1089,7 +1005,7 @@ func file_sdk_proto_rawDescGZIP() []byte { return file_sdk_proto_rawDescData } -var file_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_sdk_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_sdk_proto_goTypes = []interface{}{ (*Empty)(nil), // 0: agones.dev.sdk.Empty (*KeyValue)(nil), // 1: agones.dev.sdk.KeyValue @@ -1103,11 +1019,10 @@ var file_sdk_proto_goTypes = []interface{}{ (*GameServer_Spec_Health)(nil), // 9: agones.dev.sdk.GameServer.Spec.Health (*GameServer_Status_Address)(nil), // 10: agones.dev.sdk.GameServer.Status.Address (*GameServer_Status_Port)(nil), // 11: agones.dev.sdk.GameServer.Status.Port - (*GameServer_Status_PlayerStatus)(nil), // 12: agones.dev.sdk.GameServer.Status.PlayerStatus - (*GameServer_Status_CounterStatus)(nil), // 13: agones.dev.sdk.GameServer.Status.CounterStatus - (*GameServer_Status_ListStatus)(nil), // 14: agones.dev.sdk.GameServer.Status.ListStatus - nil, // 15: agones.dev.sdk.GameServer.Status.CountersEntry - nil, // 16: agones.dev.sdk.GameServer.Status.ListsEntry + (*GameServer_Status_CounterStatus)(nil), // 12: agones.dev.sdk.GameServer.Status.CounterStatus + (*GameServer_Status_ListStatus)(nil), // 13: agones.dev.sdk.GameServer.Status.ListStatus + nil, // 14: agones.dev.sdk.GameServer.Status.CountersEntry + nil, // 15: agones.dev.sdk.GameServer.Status.ListsEntry } var file_sdk_proto_depIdxs = []int32{ 4, // 0: agones.dev.sdk.GameServer.object_meta:type_name -> agones.dev.sdk.GameServer.ObjectMeta @@ -1118,34 +1033,33 @@ var file_sdk_proto_depIdxs = []int32{ 9, // 5: agones.dev.sdk.GameServer.Spec.health:type_name -> agones.dev.sdk.GameServer.Spec.Health 10, // 6: agones.dev.sdk.GameServer.Status.addresses:type_name -> agones.dev.sdk.GameServer.Status.Address 11, // 7: agones.dev.sdk.GameServer.Status.ports:type_name -> agones.dev.sdk.GameServer.Status.Port - 12, // 8: agones.dev.sdk.GameServer.Status.players:type_name -> agones.dev.sdk.GameServer.Status.PlayerStatus - 15, // 9: agones.dev.sdk.GameServer.Status.counters:type_name -> agones.dev.sdk.GameServer.Status.CountersEntry - 16, // 10: agones.dev.sdk.GameServer.Status.lists:type_name -> agones.dev.sdk.GameServer.Status.ListsEntry - 13, // 11: agones.dev.sdk.GameServer.Status.CountersEntry.value:type_name -> agones.dev.sdk.GameServer.Status.CounterStatus - 14, // 12: agones.dev.sdk.GameServer.Status.ListsEntry.value:type_name -> agones.dev.sdk.GameServer.Status.ListStatus - 0, // 13: agones.dev.sdk.SDK.Ready:input_type -> agones.dev.sdk.Empty - 0, // 14: agones.dev.sdk.SDK.Allocate:input_type -> agones.dev.sdk.Empty - 0, // 15: agones.dev.sdk.SDK.Shutdown:input_type -> agones.dev.sdk.Empty - 0, // 16: agones.dev.sdk.SDK.Health:input_type -> agones.dev.sdk.Empty - 0, // 17: agones.dev.sdk.SDK.GetGameServer:input_type -> agones.dev.sdk.Empty - 0, // 18: agones.dev.sdk.SDK.WatchGameServer:input_type -> agones.dev.sdk.Empty - 1, // 19: agones.dev.sdk.SDK.SetLabel:input_type -> agones.dev.sdk.KeyValue - 1, // 20: agones.dev.sdk.SDK.SetAnnotation:input_type -> agones.dev.sdk.KeyValue - 2, // 21: agones.dev.sdk.SDK.Reserve:input_type -> agones.dev.sdk.Duration - 0, // 22: agones.dev.sdk.SDK.Ready:output_type -> agones.dev.sdk.Empty - 0, // 23: agones.dev.sdk.SDK.Allocate:output_type -> agones.dev.sdk.Empty - 0, // 24: agones.dev.sdk.SDK.Shutdown:output_type -> agones.dev.sdk.Empty - 0, // 25: agones.dev.sdk.SDK.Health:output_type -> agones.dev.sdk.Empty - 3, // 26: agones.dev.sdk.SDK.GetGameServer:output_type -> agones.dev.sdk.GameServer - 3, // 27: agones.dev.sdk.SDK.WatchGameServer:output_type -> agones.dev.sdk.GameServer - 0, // 28: agones.dev.sdk.SDK.SetLabel:output_type -> agones.dev.sdk.Empty - 0, // 29: agones.dev.sdk.SDK.SetAnnotation:output_type -> agones.dev.sdk.Empty - 0, // 30: agones.dev.sdk.SDK.Reserve:output_type -> agones.dev.sdk.Empty - 22, // [22:31] is the sub-list for method output_type - 13, // [13:22] is the sub-list for method input_type - 13, // [13:13] is the sub-list for extension type_name - 13, // [13:13] is the sub-list for extension extendee - 0, // [0:13] is the sub-list for field type_name + 14, // 8: agones.dev.sdk.GameServer.Status.counters:type_name -> agones.dev.sdk.GameServer.Status.CountersEntry + 15, // 9: agones.dev.sdk.GameServer.Status.lists:type_name -> agones.dev.sdk.GameServer.Status.ListsEntry + 12, // 10: agones.dev.sdk.GameServer.Status.CountersEntry.value:type_name -> agones.dev.sdk.GameServer.Status.CounterStatus + 13, // 11: agones.dev.sdk.GameServer.Status.ListsEntry.value:type_name -> agones.dev.sdk.GameServer.Status.ListStatus + 0, // 12: agones.dev.sdk.SDK.Ready:input_type -> agones.dev.sdk.Empty + 0, // 13: agones.dev.sdk.SDK.Allocate:input_type -> agones.dev.sdk.Empty + 0, // 14: agones.dev.sdk.SDK.Shutdown:input_type -> agones.dev.sdk.Empty + 0, // 15: agones.dev.sdk.SDK.Health:input_type -> agones.dev.sdk.Empty + 0, // 16: agones.dev.sdk.SDK.GetGameServer:input_type -> agones.dev.sdk.Empty + 0, // 17: agones.dev.sdk.SDK.WatchGameServer:input_type -> agones.dev.sdk.Empty + 1, // 18: agones.dev.sdk.SDK.SetLabel:input_type -> agones.dev.sdk.KeyValue + 1, // 19: agones.dev.sdk.SDK.SetAnnotation:input_type -> agones.dev.sdk.KeyValue + 2, // 20: agones.dev.sdk.SDK.Reserve:input_type -> agones.dev.sdk.Duration + 0, // 21: agones.dev.sdk.SDK.Ready:output_type -> agones.dev.sdk.Empty + 0, // 22: agones.dev.sdk.SDK.Allocate:output_type -> agones.dev.sdk.Empty + 0, // 23: agones.dev.sdk.SDK.Shutdown:output_type -> agones.dev.sdk.Empty + 0, // 24: agones.dev.sdk.SDK.Health:output_type -> agones.dev.sdk.Empty + 3, // 25: agones.dev.sdk.SDK.GetGameServer:output_type -> agones.dev.sdk.GameServer + 3, // 26: agones.dev.sdk.SDK.WatchGameServer:output_type -> agones.dev.sdk.GameServer + 0, // 27: agones.dev.sdk.SDK.SetLabel:output_type -> agones.dev.sdk.Empty + 0, // 28: agones.dev.sdk.SDK.SetAnnotation:output_type -> agones.dev.sdk.Empty + 0, // 29: agones.dev.sdk.SDK.Reserve:output_type -> agones.dev.sdk.Empty + 21, // [21:30] is the sub-list for method output_type + 12, // [12:21] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_sdk_proto_init() } @@ -1275,18 +1189,6 @@ func file_sdk_proto_init() { } } file_sdk_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServer_Status_PlayerStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_sdk_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GameServer_Status_CounterStatus); i { case 0: return &v.state @@ -1298,7 +1200,7 @@ func file_sdk_proto_init() { return nil } } - file_sdk_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_sdk_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GameServer_Status_ListStatus); i { case 0: return &v.state @@ -1317,7 +1219,7 @@ func file_sdk_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_sdk_proto_rawDesc, NumEnums: 0, - NumMessages: 17, + NumMessages: 16, NumExtensions: 0, NumServices: 1, }, diff --git a/pkg/sdkserver/localsdk.go b/pkg/sdkserver/localsdk.go index 45a4b968fb..c174cc0766 100644 --- a/pkg/sdkserver/localsdk.go +++ b/pkg/sdkserver/localsdk.go @@ -34,15 +34,13 @@ import ( agonesv1 "agones.dev/agones/pkg/apis/agones/v1" "agones.dev/agones/pkg/sdk" - "agones.dev/agones/pkg/sdk/alpha" "agones.dev/agones/pkg/sdk/beta" "agones.dev/agones/pkg/util/runtime" ) var ( - _ sdk.SDKServer = &LocalSDKServer{} - _ alpha.SDKServer = &LocalSDKServer{} - _ beta.SDKServer = &LocalSDKServer{} + _ sdk.SDKServer = &LocalSDKServer{} + _ beta.SDKServer = &LocalSDKServer{} ) func defaultGs() *sdk.GameServer { @@ -152,9 +150,6 @@ func NewLocalSDKServer(filePath string, testSdkName string) (*LocalSDKServer, er l.logger.WithError(err).WithField("filePath", filePath).Error("error adding watcher") } } - if runtime.FeatureEnabled(runtime.FeaturePlayerTracking) && l.gs.Status.Players == nil { - l.gs.Status.Players = &sdk.GameServer_Status_PlayerStatus{} - } if runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { if l.gs.Status.Counters == nil { @@ -226,16 +221,6 @@ func (l *LocalSDKServer) recordRequestWithValue(request string, value string, ob fieldVal = strconv.FormatInt(l.gs.ObjectMeta.CreationTimestamp, 10) case "UID": fieldVal = l.gs.ObjectMeta.Uid - case "PlayerCapacity": - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return - } - fieldVal = strconv.FormatInt(l.gs.Status.Players.Capacity, 10) - case "PlayerIDs": - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return - } - fieldVal = strings.Join(l.gs.Status.Players.Ids, ",") default: l.logger.Error("unexpected Field to compare") } @@ -423,191 +408,6 @@ func (l *LocalSDKServer) stopReserveTimer() { l.gsReserveDuration = nil } -// PlayerConnect should be called when a player connects. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) PlayerConnect(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - l.logger.WithField("playerID", id.PlayerID).Info("Player Connected") - l.gsMutex.Lock() - defer l.gsMutex.Unlock() - - if l.gs.Status.Players == nil { - l.gs.Status.Players = &sdk.GameServer_Status_PlayerStatus{} - } - - // the player is already connected, return false. - for _, playerID := range l.gs.Status.Players.Ids { - if playerID == id.PlayerID { - return &alpha.Bool{Bool: false}, nil - } - } - - if l.gs.Status.Players.Count >= l.gs.Status.Players.Capacity { - return &alpha.Bool{Bool: false}, errors.New("Players are already at capacity") - } - - l.gs.Status.Players.Ids = append(l.gs.Status.Players.Ids, id.PlayerID) - l.gs.Status.Players.Count = int64(len(l.gs.Status.Players.Ids)) - - l.update <- struct{}{} - l.recordRequestWithValue("playerconnect", "1234", "PlayerIDs") - return &alpha.Bool{Bool: true}, nil -} - -// PlayerDisconnect should be called when a player disconnects. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) PlayerDisconnect(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - l.logger.WithField("playerID", id.PlayerID).Info("Player Disconnected") - l.gsMutex.Lock() - defer l.gsMutex.Unlock() - - if l.gs.Status.Players == nil { - l.gs.Status.Players = &sdk.GameServer_Status_PlayerStatus{} - } - - found := -1 - for i, playerID := range l.gs.Status.Players.Ids { - if playerID == id.PlayerID { - found = i - break - } - } - if found == -1 { - return &alpha.Bool{Bool: false}, nil - } - - l.gs.Status.Players.Ids = append(l.gs.Status.Players.Ids[:found], l.gs.Status.Players.Ids[found+1:]...) - l.gs.Status.Players.Count = int64(len(l.gs.Status.Players.Ids)) - - l.update <- struct{}{} - l.recordRequestWithValue("playerdisconnect", "", "PlayerIDs") - return &alpha.Bool{Bool: true}, nil -} - -// IsPlayerConnected returns if the playerID is currently connected to the GameServer. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) IsPlayerConnected(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - - result := &alpha.Bool{Bool: false} - l.logger.WithField("playerID", id.PlayerID).Info("Is a Player Connected?") - l.gsMutex.Lock() - defer l.gsMutex.Unlock() - - l.recordRequestWithValue("isplayerconnected", id.PlayerID, "PlayerIDs") - - if l.gs.Status.Players == nil { - return result, nil - } - - for _, playerID := range l.gs.Status.Players.Ids { - if id.PlayerID == playerID { - result.Bool = true - break - } - } - - return result, nil -} - -// GetConnectedPlayers returns the list of the currently connected player ids. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) GetConnectedPlayers(_ context.Context, _ *alpha.Empty) (*alpha.PlayerIDList, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - l.logger.Info("Getting Connected Players") - - result := &alpha.PlayerIDList{List: []string{}} - - l.gsMutex.Lock() - defer l.gsMutex.Unlock() - l.recordRequest("getconnectedplayers") - - if l.gs.Status.Players == nil { - return result, nil - } - result.List = l.gs.Status.Players.Ids - return result, nil -} - -// GetPlayerCount returns the current player count. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) GetPlayerCount(_ context.Context, _ *alpha.Empty) (*alpha.Count, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - l.logger.Info("Getting Player Count") - l.recordRequest("getplayercount") - l.gsMutex.RLock() - defer l.gsMutex.RUnlock() - - result := &alpha.Count{} - if l.gs.Status.Players != nil { - result.Count = l.gs.Status.Players.Count - } - - return result, nil -} - -// SetPlayerCapacity to change the game server's player capacity. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) SetPlayerCapacity(_ context.Context, count *alpha.Count) (*alpha.Empty, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - - l.logger.WithField("capacity", count.Count).Info("Setting Player Capacity") - l.gsMutex.Lock() - defer l.gsMutex.Unlock() - - if l.gs.Status.Players == nil { - l.gs.Status.Players = &sdk.GameServer_Status_PlayerStatus{} - } - - l.gs.Status.Players.Capacity = count.Count - - l.update <- struct{}{} - l.recordRequestWithValue("setplayercapacity", strconv.FormatInt(count.Count, 10), "PlayerCapacity") - return &alpha.Empty{}, nil -} - -// GetPlayerCapacity returns the current player capacity. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (l *LocalSDKServer) GetPlayerCapacity(_ context.Context, _ *alpha.Empty) (*alpha.Count, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - l.logger.Info("Getting Player Capacity") - l.recordRequest("getplayercapacity") - l.gsMutex.RLock() - defer l.gsMutex.RUnlock() - - // SDK.GetPlayerCapacity() has a contract of always return a number, - // so if we're nil, then let's always return a value, and - // remove lots of special cases upstream. - result := &alpha.Count{} - if l.gs.Status.Players != nil { - result.Count = l.gs.Status.Players.Capacity - } - - return result, nil -} - // GetCounter returns a Counter. Returns not found if the counter does not exist. // [Stage:Beta] // [FeatureFlag:CountsAndLists] diff --git a/pkg/sdkserver/localsdk_test.go b/pkg/sdkserver/localsdk_test.go index 5ac035b8c7..94b2285109 100644 --- a/pkg/sdkserver/localsdk_test.go +++ b/pkg/sdkserver/localsdk_test.go @@ -19,7 +19,6 @@ import ( "encoding/json" "fmt" "os" - "strconv" "sync" "testing" "time" @@ -36,7 +35,6 @@ import ( agonesv1 "agones.dev/agones/pkg/apis/agones/v1" "agones.dev/agones/pkg/sdk" - "agones.dev/agones/pkg/sdk/alpha" "agones.dev/agones/pkg/sdk/beta" "agones.dev/agones/pkg/util/runtime" ) @@ -321,294 +319,6 @@ func TestLocalSDKServerWatchGameServer(t *testing.T) { }) } -func TestLocalSDKServerPlayerCapacity(t *testing.T) { - t.Parallel() - - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - require.NoError(t, runtime.ParseFeatures(string(runtime.FeaturePlayerTracking)+"=true")) - - fixture := &agonesv1.GameServer{ObjectMeta: metav1.ObjectMeta{Name: "stuff"}} - - e := &alpha.Empty{} - path, err := gsToTmpFile(fixture) - assert.NoError(t, err) - l, err := NewLocalSDKServer(path, "") - assert.Nil(t, err) - - stream := newGameServerMockStream() - go func() { - err := l.WatchGameServer(&sdk.Empty{}, stream) - assert.Nil(t, err) - }() - assertInitialWatchUpdate(t, stream) - - // wait for watching to begin - err = wait.PollUntilContextTimeout(context.Background(), time.Second, 10*time.Second, true, func(_ context.Context) (bool, error) { - found := false - l.updateObservers.Range(func(_, _ interface{}) bool { - found = true - return false - }) - return found, nil - }) - assert.NoError(t, err) - - c, err := l.GetPlayerCapacity(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(0), c.Count) - - _, err = l.SetPlayerCapacity(context.Background(), &alpha.Count{Count: 10}) - assert.NoError(t, err) - - select { - case msg := <-stream.msgs: - assert.Equal(t, int64(10), msg.Status.Players.Capacity) - case <-time.After(10 * time.Second): - assert.Fail(t, "timeout getting watch") - } - - c, err = l.GetPlayerCapacity(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(10), c.Count) - - gs, err := l.GetGameServer(context.Background(), &sdk.Empty{}) - assert.NoError(t, err) - assert.Equal(t, int64(10), gs.Status.Players.Capacity) -} - -func TestLocalSDKServerPlayerConnectAndDisconnectWithoutPlayerTracking(t *testing.T) { - t.Parallel() - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - - require.NoError(t, runtime.ParseFeatures(string(runtime.FeaturePlayerTracking)+"=false")) - - l, err := NewLocalSDKServer("", "") - assert.Nil(t, err) - - e := &alpha.Empty{} - capacity, err := l.GetPlayerCapacity(context.Background(), e) - assert.Nil(t, capacity) - assert.Error(t, err) - - count, err := l.GetPlayerCount(context.Background(), e) - assert.Error(t, err) - assert.Nil(t, count) - - list, err := l.GetConnectedPlayers(context.Background(), e) - assert.Error(t, err) - assert.Nil(t, list) - - id := &alpha.PlayerID{PlayerID: "test-player"} - - ok, err := l.PlayerConnect(context.Background(), id) - assert.Error(t, err) - assert.False(t, ok.Bool) - - ok, err = l.IsPlayerConnected(context.Background(), id) - assert.Error(t, err) - assert.False(t, ok.Bool) - - ok, err = l.PlayerDisconnect(context.Background(), id) - assert.Error(t, err) - assert.False(t, ok.Bool) -} - -func TestLocalSDKServerPlayerConnectAndDisconnect(t *testing.T) { - t.Parallel() - - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - require.NoError(t, runtime.ParseFeatures(string(runtime.FeaturePlayerTracking)+"=true")) - - gs := func() *agonesv1.GameServer { - return &agonesv1.GameServer{ - ObjectMeta: metav1.ObjectMeta{Name: "stuff"}, - Status: agonesv1.GameServerStatus{ - Players: &agonesv1.PlayerStatus{ - Capacity: 1, - }, - }} - } - - e := &alpha.Empty{} - - fixtures := map[string]struct { - testMode bool - gs *agonesv1.GameServer - useFile bool - }{ - "test mode on, gs with Status.Players": { - testMode: true, - gs: gs(), - useFile: true, - }, - "test mode off, gs with Status.Players": { - testMode: false, - gs: gs(), - useFile: true, - }, - "test mode on, gs without Status.Players": { - testMode: true, - useFile: true, - }, - "test mode off, gs without Status.Players": { - testMode: false, - useFile: true, - }, - "test mode on, no filePath": { - testMode: true, - useFile: false, - }, - "test mode off, no filePath": { - testMode: false, - useFile: false, - }, - } - - for k, v := range fixtures { - t.Run(k, func(t *testing.T) { - var l *LocalSDKServer - var err error - if v.useFile { - path, pathErr := gsToTmpFile(v.gs) - assert.NoError(t, pathErr) - l, err = NewLocalSDKServer(path, "") - } else { - l, err = NewLocalSDKServer("", "") - } - assert.Nil(t, err) - l.SetTestMode(v.testMode) - - stream := newGameServerMockStream() - go func() { - err := l.WatchGameServer(&sdk.Empty{}, stream) - assert.Nil(t, err) - }() - assertInitialWatchUpdate(t, stream) - - // wait for watching to begin - err = wait.PollUntilContextTimeout(context.Background(), time.Second, 10*time.Second, true, func(_ context.Context) (bool, error) { - found := false - l.updateObservers.Range(func(_, _ interface{}) bool { - found = true - return false - }) - return found, nil - }) - assert.NoError(t, err) - - if !v.useFile || v.gs == nil { - _, err := l.SetPlayerCapacity(context.Background(), &alpha.Count{ - Count: 1, - }) - assert.NoError(t, err) - expected := &sdk.GameServer_Status_PlayerStatus{ - Capacity: 1, - } - assertWatchUpdate(t, stream, expected, func(gs *sdk.GameServer) interface{} { - return gs.Status.Players - }) - } - - id := &alpha.PlayerID{PlayerID: "one"} - ok, err := l.IsPlayerConnected(context.Background(), id) - assert.NoError(t, err) - if assert.NotNil(t, ok) { - assert.False(t, ok.Bool, "player should not be connected") - } - - count, err := l.GetPlayerCount(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(0), count.Count) - - list, err := l.GetConnectedPlayers(context.Background(), e) - assert.NoError(t, err) - assert.Empty(t, list.List) - - // connect a player - ok, err = l.PlayerConnect(context.Background(), id) - assert.NoError(t, err) - assert.True(t, ok.Bool, "Player should not exist yet") - - count, err = l.GetPlayerCount(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(1), count.Count) - - expected := &sdk.GameServer_Status_PlayerStatus{ - Count: 1, - Capacity: 1, - Ids: []string{id.PlayerID}, - } - assertWatchUpdate(t, stream, expected, func(gs *sdk.GameServer) interface{} { - return gs.Status.Players - }) - - ok, err = l.IsPlayerConnected(context.Background(), id) - assert.NoError(t, err) - assert.True(t, ok.Bool, "player should be connected") - - list, err = l.GetConnectedPlayers(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, []string{id.PlayerID}, list.List) - - // add same player - ok, err = l.PlayerConnect(context.Background(), id) - assert.NoError(t, err) - assert.False(t, ok.Bool, "Player already exists") - - count, err = l.GetPlayerCount(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(1), count.Count) - assertNoWatchUpdate(t, stream) - - list, err = l.GetConnectedPlayers(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, []string{id.PlayerID}, list.List) - - // should return an error if we try to add another, since we're at capacity - nopePlayer := &alpha.PlayerID{PlayerID: "nope"} - _, err = l.PlayerConnect(context.Background(), nopePlayer) - assert.EqualError(t, err, "Players are already at capacity") - - ok, err = l.IsPlayerConnected(context.Background(), nopePlayer) - assert.NoError(t, err) - assert.False(t, ok.Bool) - - // disconnect a player - ok, err = l.PlayerDisconnect(context.Background(), id) - assert.NoError(t, err) - assert.True(t, ok.Bool, "Player should be removed") - count, err = l.GetPlayerCount(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(0), count.Count) - - expected = &sdk.GameServer_Status_PlayerStatus{ - Count: 0, - Capacity: 1, - Ids: []string{}, - } - assertWatchUpdate(t, stream, expected, func(gs *sdk.GameServer) interface{} { - return gs.Status.Players - }) - - list, err = l.GetConnectedPlayers(context.Background(), e) - assert.NoError(t, err) - assert.Empty(t, list.List) - - // remove same player - ok, err = l.PlayerDisconnect(context.Background(), id) - assert.NoError(t, err) - assert.False(t, ok.Bool, "Player already be gone") - count, err = l.GetPlayerCount(context.Background(), e) - assert.NoError(t, err) - assert.Equal(t, int64(0), count.Count) - assertNoWatchUpdate(t, stream) - }) - } -} - func TestLocalSDKServerGetCounter(t *testing.T) { t.Parallel() @@ -1357,26 +1067,6 @@ func TestSDKConformanceFunctionality(t *testing.T) { assert.True(t, b, "we should receive strings from all go routines %v %v", l.expectedSequence, l.requestSequence) } -func TestAlphaSDKConformanceFunctionality(t *testing.T) { - t.Parallel() - lStable, err := NewLocalSDKServer("", "") - assert.Nil(t, err) - v := int64(0) - lStable.recordRequestWithValue("setplayercapacity", strconv.FormatInt(v, 10), "PlayerCapacity") - lStable.recordRequestWithValue("isplayerconnected", "", "PlayerIDs") - - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - - require.NoError(t, runtime.ParseFeatures(string(runtime.FeaturePlayerTracking)+"=true")) - l, err := NewLocalSDKServer("", "") - assert.Nil(t, err) - l.testMode = true - l.recordRequestWithValue("setplayercapacity", strconv.FormatInt(v, 10), "PlayerCapacity") - l.recordRequestWithValue("isplayerconnected", "", "PlayerIDs") - -} - func gsToTmpFile(gs *agonesv1.GameServer) (string, error) { file, err := os.CreateTemp(os.TempDir(), "gameserver-") if err != nil { diff --git a/pkg/sdkserver/sdk.go b/pkg/sdkserver/sdk.go index ee0b375879..77f74fc005 100644 --- a/pkg/sdkserver/sdk.go +++ b/pkg/sdkserver/sdk.go @@ -75,16 +75,6 @@ func convert(gs *agonesv1.GameServer) *sdk.GameServer { result.Status.Ports = append(result.Status.Ports, grpcPort) } - if runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - if gs.Status.Players != nil { - result.Status.Players = &sdk.GameServer_Status_PlayerStatus{ - Count: gs.Status.Players.Count, - Capacity: gs.Status.Players.Capacity, - Ids: gs.Status.Players.IDs, - } - } - } - if runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { if gs.Status.Counters != nil { counters := make(map[string]*sdk.GameServer_Status_CounterStatus, len(gs.Status.Counters)) diff --git a/pkg/sdkserver/sdk_test.go b/pkg/sdkserver/sdk_test.go index bbd96041ab..bae197f149 100644 --- a/pkg/sdkserver/sdk_test.go +++ b/pkg/sdkserver/sdk_test.go @@ -80,35 +80,6 @@ func TestConvert(t *testing.T) { } } - t.Run(string(runtime.FeaturePlayerTracking)+" disabled", func(t *testing.T) { - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - require.NoError(t, runtime.ParseFeatures("")) - - gs := fixture.DeepCopy() - - sdkGs := convert(gs) - eq(t, fixture, sdkGs) - assert.Zero(t, sdkGs.ObjectMeta.DeletionTimestamp) - assert.Nil(t, sdkGs.Status.Players) - }) - - t.Run(string(runtime.FeaturePlayerTracking)+" enabled", func(t *testing.T) { - runtime.FeatureTestMutex.Lock() - defer runtime.FeatureTestMutex.Unlock() - require.NoError(t, runtime.ParseFeatures(string(runtime.FeaturePlayerTracking)+"=true")) - - gs := fixture.DeepCopy() - gs.Status.Players = &agonesv1.PlayerStatus{Capacity: 10, Count: 5, IDs: []string{"one", "two"}} - - sdkGs := convert(gs) - eq(t, fixture, sdkGs) - assert.Zero(t, sdkGs.ObjectMeta.DeletionTimestamp) - assert.Equal(t, gs.Status.Players.Capacity, sdkGs.Status.Players.Capacity) - assert.Equal(t, gs.Status.Players.Count, sdkGs.Status.Players.Count) - assert.Equal(t, gs.Status.Players.IDs, sdkGs.Status.Players.Ids) - }) - t.Run(string(runtime.FeatureCountsAndLists)+" disabled", func(t *testing.T) { runtime.FeatureTestMutex.Lock() defer runtime.FeatureTestMutex.Unlock() diff --git a/pkg/sdkserver/sdkserver.go b/pkg/sdkserver/sdkserver.go index 007c78b870..65a027eda1 100644 --- a/pkg/sdkserver/sdkserver.go +++ b/pkg/sdkserver/sdkserver.go @@ -32,7 +32,6 @@ import ( "github.com/pkg/errors" "github.com/sirupsen/logrus" corev1 "k8s.io/api/core/v1" - apiequality "k8s.io/apimachinery/pkg/api/equality" k8serrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/fields" @@ -54,7 +53,6 @@ import ( listersv1 "agones.dev/agones/pkg/client/listers/agones/v1" "agones.dev/agones/pkg/gameserverallocations" "agones.dev/agones/pkg/sdk" - "agones.dev/agones/pkg/sdk/alpha" "agones.dev/agones/pkg/sdk/beta" "agones.dev/agones/pkg/util/logfields" "agones.dev/agones/pkg/util/runtime" @@ -70,20 +68,17 @@ var ( ) const ( - updateState Operation = "updateState" - updateLabel Operation = "updateLabel" - updateAnnotation Operation = "updateAnnotation" - updatePlayerCapacity Operation = "updatePlayerCapacity" - updateConnectedPlayers Operation = "updateConnectedPlayers" - updateCounters Operation = "updateCounters" - updateLists Operation = "updateLists" - updatePeriod time.Duration = time.Second + updateState Operation = "updateState" + updateLabel Operation = "updateLabel" + updateAnnotation Operation = "updateAnnotation" + updateCounters Operation = "updateCounters" + updateLists Operation = "updateLists" + updatePeriod time.Duration = time.Second ) var ( - _ sdk.SDKServer = &SDKServer{} - _ alpha.SDKServer = &SDKServer{} - _ beta.SDKServer = &SDKServer{} + _ sdk.SDKServer = &SDKServer{} + _ beta.SDKServer = &SDKServer{} ) type counterUpdateRequest struct { @@ -140,7 +135,6 @@ type SDKServer struct { gsWaitForSync sync.WaitGroup reserveTimer *time.Timer gsReserveDuration *time.Duration - gsPlayerCapacity int64 gsConnectedPlayers []string gsCounterUpdates map[string]counterUpdateRequest gsListUpdates map[string]listUpdateRequest @@ -269,16 +263,6 @@ func (s *SDKServer) Run(ctx context.Context) error { s.gsUpdateMutex.Unlock() } - // populate player tracking values - if runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - s.gsUpdateMutex.Lock() - if gs.Status.Players != nil { - s.gsPlayerCapacity = gs.Status.Players.Capacity - s.gsConnectedPlayers = gs.Status.Players.IDs - } - s.gsUpdateMutex.Unlock() - } - // then start the http endpoints s.logger.Debug("Starting SDKServer http health check...") go func() { @@ -342,10 +326,6 @@ func (s *SDKServer) syncGameServer(ctx context.Context, key string) error { return s.updateLabels(ctx) case updateAnnotation: return s.updateAnnotations(ctx) - case updatePlayerCapacity: - return s.updatePlayerCapacity(ctx) - case updateConnectedPlayers: - return s.updateConnectedPlayers(ctx) case updateCounters: return s.updateCounter(ctx) case updateLists: @@ -718,142 +698,6 @@ func (s *SDKServer) stopReserveTimer() { s.gsReserveDuration = nil } -// PlayerConnect should be called when a player connects. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) PlayerConnect(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.logger.WithField("playerID", id.PlayerID).Debug("Player Connected") - - s.gsUpdateMutex.Lock() - defer s.gsUpdateMutex.Unlock() - - // the player is already connected, return false. - for _, playerID := range s.gsConnectedPlayers { - if playerID == id.PlayerID { - return &alpha.Bool{Bool: false}, nil - } - } - - if int64(len(s.gsConnectedPlayers)) >= s.gsPlayerCapacity { - return &alpha.Bool{Bool: false}, errors.New("players are already at capacity") - } - - // let's retain the original order, as it should be a smaller patch on data change - s.gsConnectedPlayers = append(s.gsConnectedPlayers, id.PlayerID) - s.workerqueue.EnqueueAfter(cache.ExplicitKey(string(updateConnectedPlayers)), updatePeriod) - - return &alpha.Bool{Bool: true}, nil -} - -// PlayerDisconnect should be called when a player disconnects. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) PlayerDisconnect(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.logger.WithField("playerID", id.PlayerID).Debug("Player Disconnected") - - s.gsUpdateMutex.Lock() - defer s.gsUpdateMutex.Unlock() - - found := -1 - for i, playerID := range s.gsConnectedPlayers { - if playerID == id.PlayerID { - found = i - break - } - } - if found == -1 { - return &alpha.Bool{Bool: false}, nil - } - - // let's retain the original order, as it should be a smaller patch on data change - s.gsConnectedPlayers = append(s.gsConnectedPlayers[:found], s.gsConnectedPlayers[found+1:]...) - s.workerqueue.EnqueueAfter(cache.ExplicitKey(string(updateConnectedPlayers)), updatePeriod) - - return &alpha.Bool{Bool: true}, nil -} - -// IsPlayerConnected returns if the playerID is currently connected to the GameServer. -// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) IsPlayerConnected(_ context.Context, id *alpha.PlayerID) (*alpha.Bool, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return &alpha.Bool{Bool: false}, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.gsUpdateMutex.RLock() - defer s.gsUpdateMutex.RUnlock() - - result := &alpha.Bool{Bool: false} - - for _, playerID := range s.gsConnectedPlayers { - if playerID == id.PlayerID { - result.Bool = true - break - } - } - - return result, nil -} - -// GetConnectedPlayers returns the list of the currently connected player ids. -// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) GetConnectedPlayers(_ context.Context, _ *alpha.Empty) (*alpha.PlayerIDList, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.gsUpdateMutex.RLock() - defer s.gsUpdateMutex.RUnlock() - - return &alpha.PlayerIDList{List: s.gsConnectedPlayers}, nil -} - -// GetPlayerCount returns the current player count. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) GetPlayerCount(_ context.Context, _ *alpha.Empty) (*alpha.Count, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.gsUpdateMutex.RLock() - defer s.gsUpdateMutex.RUnlock() - return &alpha.Count{Count: int64(len(s.gsConnectedPlayers))}, nil -} - -// SetPlayerCapacity to change the game server's player capacity. -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) SetPlayerCapacity(_ context.Context, count *alpha.Count) (*alpha.Empty, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.gsUpdateMutex.Lock() - s.gsPlayerCapacity = count.Count - s.gsUpdateMutex.Unlock() - s.workerqueue.Enqueue(cache.ExplicitKey(string(updatePlayerCapacity))) - - return &alpha.Empty{}, nil -} - -// GetPlayerCapacity returns the current player capacity, as set by SDK.SetPlayerCapacity() -// [Stage:Alpha] -// [FeatureFlag:PlayerTracking] -func (s *SDKServer) GetPlayerCapacity(_ context.Context, _ *alpha.Empty) (*alpha.Count, error) { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return nil, errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.gsUpdateMutex.RLock() - defer s.gsUpdateMutex.RUnlock() - return &alpha.Count{Count: s.gsPlayerCapacity}, nil -} - // GetCounter returns a Counter. Returns error if the counter does not exist. // [Stage:Beta] // [FeatureFlag:CountsAndLists] @@ -1502,64 +1346,6 @@ func (s *SDKServer) healthy() bool { return s.healthFailureCount < s.health.FailureThreshold } -// updatePlayerCapacity updates the Player Capacity field in the GameServer's Status. -func (s *SDKServer) updatePlayerCapacity(ctx context.Context) error { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - s.logger.WithField("capacity", s.gsPlayerCapacity).Debug("updating player capacity") - gs, err := s.gameServer() - if err != nil { - return err - } - - gsCopy := gs.DeepCopy() - - s.gsUpdateMutex.RLock() - gsCopy.Status.Players.Capacity = s.gsPlayerCapacity - s.gsUpdateMutex.RUnlock() - - gs, err = s.patchGameServer(ctx, gs, gsCopy) - if err == nil { - s.recorder.Event(gs, corev1.EventTypeNormal, "PlayerCapacity", fmt.Sprintf("Set to %d", gs.Status.Players.Capacity)) - } - - return err -} - -// updateConnectedPlayers updates the Player IDs and Count fields in the GameServer's Status. -func (s *SDKServer) updateConnectedPlayers(ctx context.Context) error { - if !runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - return errors.Errorf("%s not enabled", runtime.FeaturePlayerTracking) - } - gs, err := s.gameServer() - if err != nil { - return err - } - - gsCopy := gs.DeepCopy() - same := false - s.gsUpdateMutex.RLock() - s.logger.WithField("playerIDs", s.gsConnectedPlayers).Debug("updating connected players") - same = apiequality.Semantic.DeepEqual(gsCopy.Status.Players.IDs, s.gsConnectedPlayers) - gsCopy.Status.Players.IDs = s.gsConnectedPlayers - gsCopy.Status.Players.Count = int64(len(s.gsConnectedPlayers)) - s.gsUpdateMutex.RUnlock() - // if there is no change, then don't update - // since it's possible this could fire quite a lot, let's reduce the - // amount of requests as much as possible. - if same { - return nil - } - - gs, err = s.patchGameServer(ctx, gs, gsCopy) - if err == nil { - s.recorder.Event(gs, corev1.EventTypeNormal, "PlayerCount", fmt.Sprintf("Set to %d", gs.Status.Players.Count)) - } - - return err -} - // NewSDKServerContext returns a Context that cancels when SIGTERM or os.Interrupt // is received and the GameServer's Status is shutdown func (s *SDKServer) NewSDKServerContext(ctx context.Context) context.Context { diff --git a/pkg/sdkserver/sdkserver_test.go b/pkg/sdkserver/sdkserver_test.go index 866cbde09e..072fb7a8a9 100644 --- a/pkg/sdkserver/sdkserver_test.go +++ b/pkg/sdkserver/sdkserver_test.go @@ -18,7 +18,6 @@ import ( "context" "encoding/json" "net/http" - "strconv" "strings" "sync" "testing" @@ -30,7 +29,6 @@ import ( agonesv1 "agones.dev/agones/pkg/apis/agones/v1" "agones.dev/agones/pkg/gameserverallocations" "agones.dev/agones/pkg/sdk" - "agones.dev/agones/pkg/sdk/alpha" "agones.dev/agones/pkg/sdk/beta" agtesting "agones.dev/agones/pkg/testing" agruntime "agones.dev/agones/pkg/util/runtime" @@ -1923,341 +1921,6 @@ func TestDeleteValues(t *testing.T) { assert.Equal(t, len(list)-len(toDeleteMap), len(newList)) } -func TestSDKServerPlayerCapacity(t *testing.T) { - t.Parallel() - agruntime.FeatureTestMutex.Lock() - defer agruntime.FeatureTestMutex.Unlock() - - err := agruntime.ParseFeatures(string(agruntime.FeaturePlayerTracking) + "=true") - require.NoError(t, err, "Can not parse FeaturePlayerTracking feature") - - m := agtesting.NewMocks() - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - - sc, err := defaultSidecar(m) - require.NoError(t, err) - - gs := agonesv1.GameServer{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test", Namespace: "default", ResourceVersion: "0", - }, - Spec: agonesv1.GameServerSpec{ - SdkServer: agonesv1.SdkServer{ - LogLevel: "Debug", - }, - Players: &agonesv1.PlayersSpec{ - InitialCapacity: 10, - }, - }, - } - gs.ApplyDefaults() - - m.AgonesClient.AddReactor("list", "gameservers", func(_ k8stesting.Action) (bool, runtime.Object, error) { - return true, &agonesv1.GameServerList{Items: []agonesv1.GameServer{*gs.DeepCopy()}}, nil - }) - - updated := make(chan int64, 10) - m.AgonesClient.AddReactor("patch", "gameservers", func(action k8stesting.Action) (bool, runtime.Object, error) { - - gsCopy := patchGameServer(t, action, &gs) - - updated <- gsCopy.Status.Players.Capacity - return true, gsCopy, nil - }) - - assert.NoError(t, sc.WaitForConnection(ctx)) - sc.informerFactory.Start(ctx.Done()) - assert.True(t, cache.WaitForCacheSync(ctx.Done(), sc.gameServerSynced)) - - go func() { - err = sc.Run(ctx) - assert.NoError(t, err) - }() - - // check initial value comes through - - // async, so check after a period - err = wait.PollUntilContextTimeout(context.Background(), time.Second, 10*time.Second, true, func(_ context.Context) (bool, error) { - count, err := sc.GetPlayerCapacity(context.Background(), &alpha.Empty{}) - return count.Count == 10, err - }) - assert.NoError(t, err) - - // on update from the SDK, the value is available from GetPlayerCapacity - _, err = sc.SetPlayerCapacity(context.Background(), &alpha.Count{Count: 20}) - assert.NoError(t, err) - - count, err := sc.GetPlayerCapacity(context.Background(), &alpha.Empty{}) - require.NoError(t, err) - assert.Equal(t, int64(20), count.Count) - - // on an update, confirm that the update hits the K8s api - select { - case value := <-updated: - assert.Equal(t, int64(20), value) - case <-time.After(time.Minute): - assert.Fail(t, "Should have been patched") - } - - agtesting.AssertEventContains(t, m.FakeRecorder.Events, "PlayerCapacity Set to 20") -} - -func TestSDKServerPlayerConnectAndDisconnectWithoutPlayerTracking(t *testing.T) { - t.Parallel() - agruntime.FeatureTestMutex.Lock() - defer agruntime.FeatureTestMutex.Unlock() - - err := agruntime.ParseFeatures(string(agruntime.FeaturePlayerTracking) + "=false") - require.NoError(t, err, "Can not parse FeaturePlayerTracking feature") - - fixture := &agonesv1.GameServer{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test", - Namespace: "default", - }, - Status: agonesv1.GameServerStatus{ - State: agonesv1.GameServerStateReady, - }, - } - - m := agtesting.NewMocks() - m.AgonesClient.AddReactor("list", "gameservers", func(_ k8stesting.Action) (bool, runtime.Object, error) { - return true, &agonesv1.GameServerList{Items: []agonesv1.GameServer{*fixture}}, nil - }) - - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - - sc, err := defaultSidecar(m) - require.NoError(t, err) - - assert.NoError(t, sc.WaitForConnection(ctx)) - sc.informerFactory.Start(ctx.Done()) - assert.True(t, cache.WaitForCacheSync(ctx.Done(), sc.gameServerSynced)) - - go func() { - err = sc.Run(ctx) - assert.NoError(t, err) - }() - - // check initial value comes through - // async, so check after a period - e := &alpha.Empty{} - err = wait.PollUntilContextTimeout(context.Background(), time.Second, 10*time.Second, true, func(_ context.Context) (bool, error) { - count, err := sc.GetPlayerCapacity(context.Background(), e) - - assert.Nil(t, count) - return false, err - }) - assert.Error(t, err) - - count, err := sc.GetPlayerCount(context.Background(), e) - require.Error(t, err) - assert.Nil(t, count) - - list, err := sc.GetConnectedPlayers(context.Background(), e) - require.Error(t, err) - assert.Nil(t, list) - - id := &alpha.PlayerID{PlayerID: "test-player"} - - ok, err := sc.PlayerConnect(context.Background(), id) - require.Error(t, err) - assert.False(t, ok.Bool) - - ok, err = sc.IsPlayerConnected(context.Background(), id) - require.Error(t, err) - assert.False(t, ok.Bool) - - ok, err = sc.PlayerDisconnect(context.Background(), id) - require.Error(t, err) - assert.False(t, ok.Bool) -} - -func TestSDKServerPlayerConnectAndDisconnect(t *testing.T) { - t.Parallel() - agruntime.FeatureTestMutex.Lock() - defer agruntime.FeatureTestMutex.Unlock() - - err := agruntime.ParseFeatures(string(agruntime.FeaturePlayerTracking) + "=true") - require.NoError(t, err, "Can not parse FeaturePlayerTracking feature") - - m := agtesting.NewMocks() - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - - sc, err := defaultSidecar(m) - require.NoError(t, err) - - capacity := int64(3) - gs := agonesv1.GameServer{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test", Namespace: "default", ResourceVersion: "0", - }, - Spec: agonesv1.GameServerSpec{ - SdkServer: agonesv1.SdkServer{ - LogLevel: "Debug", - }, - // this is here to give us a reference, so we know when sc.Run() has completed. - Players: &agonesv1.PlayersSpec{ - InitialCapacity: capacity, - }, - }, - } - gs.ApplyDefaults() - - m.AgonesClient.AddReactor("list", "gameservers", func(_ k8stesting.Action) (bool, runtime.Object, error) { - return true, &agonesv1.GameServerList{Items: []agonesv1.GameServer{*gs.DeepCopy()}}, nil - }) - - updated := make(chan *agonesv1.PlayerStatus, 10) - m.AgonesClient.AddReactor("patch", "gameservers", func(action k8stesting.Action) (bool, runtime.Object, error) { - gsCopy := patchGameServer(t, action, &gs) - updated <- gsCopy.Status.Players - return true, gsCopy, nil - }) - - assert.NoError(t, sc.WaitForConnection(ctx)) - sc.informerFactory.Start(ctx.Done()) - assert.True(t, cache.WaitForCacheSync(ctx.Done(), sc.gameServerSynced)) - - go func() { - err = sc.Run(ctx) - assert.NoError(t, err) - }() - - // check initial value comes through - // async, so check after a period - e := &alpha.Empty{} - err = wait.PollUntilContextTimeout(context.Background(), time.Second, 10*time.Second, true, func(_ context.Context) (bool, error) { - count, err := sc.GetPlayerCapacity(context.Background(), e) - return count.Count == capacity, err - }) - assert.NoError(t, err) - - count, err := sc.GetPlayerCount(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, int64(0), count.Count) - - list, err := sc.GetConnectedPlayers(context.Background(), e) - require.NoError(t, err) - assert.Empty(t, list.List) - - ok, err := sc.IsPlayerConnected(context.Background(), &alpha.PlayerID{PlayerID: "1"}) - require.NoError(t, err) - assert.False(t, ok.Bool, "no player connected yet") - - // sdk value should always be correct, even if we send more than one update per second. - for i := int64(0); i < capacity; i++ { - token := strconv.FormatInt(i, 10) - id := &alpha.PlayerID{PlayerID: token} - ok, err := sc.PlayerConnect(context.Background(), id) - require.NoError(t, err) - assert.True(t, ok.Bool, "Player "+token+" should not yet be connected") - - ok, err = sc.IsPlayerConnected(context.Background(), id) - require.NoError(t, err) - assert.True(t, ok.Bool, "Player "+token+" should be connected") - } - count, err = sc.GetPlayerCount(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, capacity, count.Count) - - list, err = sc.GetConnectedPlayers(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, []string{"0", "1", "2"}, list.List) - - // on an update, confirm that the update hits the K8s api, only once - select { - case value := <-updated: - assert.Equal(t, capacity, value.Count) - assert.Equal(t, []string{"0", "1", "2"}, value.IDs) - case <-time.After(5 * time.Second): - assert.Fail(t, "Should have been updated") - } - agtesting.AssertEventContains(t, m.FakeRecorder.Events, "PlayerCount Set to 3") - - // confirm there was only one update - select { - case <-updated: - assert.Fail(t, "There should be only one update for the player connections") - case <-time.After(2 * time.Second): - } - - // should return an error if we try and add another, since we're at capacity - nopePlayer := &alpha.PlayerID{PlayerID: "nope"} - _, err = sc.PlayerConnect(context.Background(), nopePlayer) - assert.EqualError(t, err, "players are already at capacity") - - // sdk value should always be correct, even if we send more than one update per second. - // let's leave one player behind - for i := int64(0); i < capacity-1; i++ { - token := strconv.FormatInt(i, 10) - id := &alpha.PlayerID{PlayerID: token} - ok, err := sc.PlayerDisconnect(context.Background(), id) - require.NoError(t, err) - assert.Truef(t, ok.Bool, "Player %s should be disconnected", token) - - ok, err = sc.IsPlayerConnected(context.Background(), id) - require.NoError(t, err) - assert.Falsef(t, ok.Bool, "Player %s should be connected", token) - } - count, err = sc.GetPlayerCount(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, int64(1), count.Count) - - list, err = sc.GetConnectedPlayers(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, []string{"2"}, list.List) - - // on an update, confirm that the update hits the K8s api, only once - select { - case value := <-updated: - assert.Equal(t, int64(1), value.Count) - assert.Equal(t, []string{"2"}, value.IDs) - case <-time.After(5 * time.Second): - assert.Fail(t, "Should have been updated") - } - agtesting.AssertEventContains(t, m.FakeRecorder.Events, "PlayerCount Set to 1") - - // confirm there was only one update - select { - case <-updated: - assert.Fail(t, "There should be only one update for the player disconnections") - case <-time.After(2 * time.Second): - } - - // last player is still there - ok, err = sc.IsPlayerConnected(context.Background(), &alpha.PlayerID{PlayerID: "2"}) - require.NoError(t, err) - assert.True(t, ok.Bool, "Player 2 should be connected") - - // finally, check idempotency of connect and disconnect - id := &alpha.PlayerID{PlayerID: "2"} // only one left behind - ok, err = sc.PlayerConnect(context.Background(), id) - require.NoError(t, err) - assert.False(t, ok.Bool, "Player 2 should already be connected") - count, err = sc.GetPlayerCount(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, int64(1), count.Count) - - // no longer there. - id.PlayerID = "0" - ok, err = sc.PlayerDisconnect(context.Background(), id) - require.NoError(t, err) - assert.False(t, ok.Bool, "Player 2 should already be disconnected") - count, err = sc.GetPlayerCount(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, int64(1), count.Count) - - agtesting.AssertNoEvent(t, m.FakeRecorder.Events) - - list, err = sc.GetConnectedPlayers(context.Background(), e) - require.NoError(t, err) - assert.Equal(t, []string{"2"}, list.List) -} - func TestSDKServerGracefulTerminationInterrupt(t *testing.T) { t.Parallel() agruntime.FeatureTestMutex.Lock() diff --git a/proto/sdk/alpha/alpha.proto b/proto/sdk/alpha/alpha.proto index fb75ed5ae0..1fce55051a 100644 --- a/proto/sdk/alpha/alpha.proto +++ b/proto/sdk/alpha/alpha.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package agones.dev.sdk.alpha; option go_package = "./alpha"; -import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { @@ -31,119 +30,5 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { }; // SDK service to be used in the GameServer SDK to the Pod Sidecar. -service SDK { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - // list of connected playerIDs. - // - // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - // connected playerIDs will be left unchanged. - // - // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - // the server has been reached. The playerID will not be added to the list of playerIDs. - // - // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerConnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/connect" - body: "*" - }; - } +service SDK {} - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - // playerID value exists within the list. - // - // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - // will be left unchanged. - // - // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerDisconnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/disconnect" - body: "*" - }; - } - - // Update the GameServer.Status.Players.Capacity value with a new capacity. - rpc SetPlayerCapacity (Count) returns (Empty) { - option (google.api.http) = { - put: "/alpha/player/capacity" - body: "*" - }; - } - - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCapacity (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/capacity" - }; - } - - // Retrieves the current player count. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCount (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/count" - }; - } - - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - rpc IsPlayerConnected (PlayerID) returns (Bool) { - option (google.api.http) = { - get: "/alpha/player/connected/{playerID}" - }; - } - - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetConnectedPlayers(Empty) returns (PlayerIDList) { - option (google.api.http) = { - get: "/alpha/player/connected" - }; - } -} - -// I am Empty -message Empty { -} - -// Store a count variable. -message Count { - int64 count = 1; -} - -// Store a boolean result -message Bool { - bool bool = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {format: "boolean"}]; -} - -// The unique identifier for a given player. -message PlayerID { - string playerID = 1; -} - -// List of Player IDs -message PlayerIDList { - repeated string list = 1; -} diff --git a/proto/sdk/sdk.proto b/proto/sdk/sdk.proto index 7b08d1163f..0e7b541887 100644 --- a/proto/sdk/sdk.proto +++ b/proto/sdk/sdk.proto @@ -150,6 +150,9 @@ message GameServer { } message Status { + reserved 4; + reserved "players"; + message Address { string type = 1; string address = 2; @@ -159,13 +162,6 @@ message GameServer { string name = 1; int32 port = 2; } - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - message PlayerStatus { - int64 count = 1; - int64 capacity = 2; - repeated string ids = 3; - } // [Stage:Beta] // [FeatureFlag:CountsAndLists] @@ -186,10 +182,6 @@ message GameServer { repeated Address addresses = 7; repeated Port ports = 3; - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - PlayerStatus players = 4; - // [Stage:Beta] // [FeatureFlag:CountsAndLists] map counters = 5; diff --git a/sdks/cpp/include/agones/sdk.pb.h b/sdks/cpp/include/agones/sdk.pb.h index be085918a1..2699f3b47d 100644 --- a/sdks/cpp/include/agones/sdk.pb.h +++ b/sdks/cpp/include/agones/sdk.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: sdk.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #ifndef sdk_2eproto_2epb_2eh #define sdk_2eproto_2epb_2eh @@ -26,9 +26,8 @@ #include #include -// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 7035001 +#if PROTOBUF_VERSION != 6031001 #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" @@ -79,141 +78,69 @@ namespace agones { namespace dev { namespace sdk { class Duration; -struct DurationGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern DurationGlobalsTypeInternal Duration_globals_; +struct DurationDefaultTypeInternal; +AGONES_EXPORT extern DurationDefaultTypeInternal _Duration_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Duration_class_data_; -#else -AGONES_EXPORT extern const DurationGlobalsTypeInternal Duration_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Empty; -struct EmptyGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern EmptyGlobalsTypeInternal Empty_globals_; +struct EmptyDefaultTypeInternal; +AGONES_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; -#else -AGONES_EXPORT extern const EmptyGlobalsTypeInternal Empty_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer; -struct GameServerGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServerGlobalsTypeInternal GameServer_globals_; +struct GameServerDefaultTypeInternal; +AGONES_EXPORT extern GameServerDefaultTypeInternal _GameServer_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_class_data_; -#else -AGONES_EXPORT extern const GameServerGlobalsTypeInternal GameServer_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta; -struct GameServer_ObjectMetaGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_; +struct GameServer_ObjectMetaDefaultTypeInternal; +AGONES_EXPORT extern GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_; -#else -AGONES_EXPORT extern const GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse; -struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; +struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta_LabelsEntry_DoNotUse; -struct GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; +struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Spec; -struct GameServer_SpecGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_; +struct GameServer_SpecDefaultTypeInternal; +AGONES_EXPORT extern GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_; -#else -AGONES_EXPORT extern const GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Spec_Health; -struct GameServer_Spec_HealthGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_; +struct GameServer_Spec_HealthDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_; -#else -AGONES_EXPORT extern const GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status; -struct GameServer_StatusGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_; +struct GameServer_StatusDefaultTypeInternal; +AGONES_EXPORT extern GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_; -#else -AGONES_EXPORT extern const GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_Address; -struct GameServer_Status_AddressGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_; +struct GameServer_Status_AddressDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_CounterStatus; -struct GameServer_Status_CounterStatusGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_; +struct GameServer_Status_CounterStatusDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_CountersEntry_DoNotUse; -struct GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_; +struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal _GameServer_Status_CountersEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_ListStatus; -struct GameServer_Status_ListStatusGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_; +struct GameServer_Status_ListStatusDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_ListsEntry_DoNotUse; -struct GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_; +struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal _GameServer_Status_ListsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS -class GameServer_Status_PlayerStatus; -struct GameServer_Status_PlayerStatusGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_PlayerStatusGlobalsTypeInternal GameServer_Status_PlayerStatus_globals_; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_PlayerStatus_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_PlayerStatusGlobalsTypeInternal GameServer_Status_PlayerStatus_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_Port; -struct GameServer_Status_PortGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_; +struct GameServer_Status_PortDefaultTypeInternal; +AGONES_EXPORT extern GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_; -#else -AGONES_EXPORT extern const GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class KeyValue; -struct KeyValueGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern KeyValueGlobalsTypeInternal KeyValue_globals_; +struct KeyValueDefaultTypeInternal; +AGONES_EXPORT extern KeyValueDefaultTypeInternal _KeyValue_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_; -#else -AGONES_EXPORT extern const KeyValueGlobalsTypeInternal KeyValue_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace sdk } // namespace dev } // namespace agones @@ -231,26 +158,25 @@ namespace sdk { // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : public ::google::protobuf::Message +class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.KeyValue) */ { public: inline KeyValue() : KeyValue(nullptr) {} ~KeyValue() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(KeyValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(KeyValue* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(KeyValue)); } #endif template - explicit constexpr KeyValue(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(KeyValue&& from) noexcept + : KeyValue(nullptr, ::std::move(from)) {} inline KeyValue& operator=(const KeyValue& from) { CopyFrom(from); return *this; @@ -265,27 +191,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const KeyValue& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&KeyValue_globals_); + static const KeyValue& default_instance() { + return *reinterpret_cast( + &_KeyValue_default_instance_); } static constexpr int kIndexInFileMessages = 1; friend void swap(KeyValue& a, KeyValue& b) { a.Swap(&b); } @@ -305,8 +231,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ // implements Message ---------------------------------------------- - [[nodiscard]] KeyValue* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + KeyValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -319,33 +244,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -356,6 +279,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.KeyValue"; } + protected: explicit KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeyValue& from); KeyValue( @@ -370,11 +294,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -384,7 +306,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ }; // string key = 1; void clear_key() ; - [[nodiscard]] const ::std::string& key() const; + const ::std::string& key() const; template void set_key(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_key(); @@ -399,7 +321,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ public: // string value = 2; void clear_value() ; - [[nodiscard]] const ::std::string& value() const; + const ::std::string& value() const; template void set_value(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_value(); @@ -415,27 +337,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ // @@protoc_insertion_point(class_scope:agones.dev.sdk.KeyValue) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 40, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 40, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -452,28 +367,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : publ union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Port final : public ::google::protobuf::Message +class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Port) */ { public: inline GameServer_Status_Port() : GameServer_Status_Port(nullptr) {} ~GameServer_Status_Port() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_Port* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Status_Port* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_Port)); } #endif template - explicit constexpr GameServer_Status_Port(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Status_Port(::google::protobuf::internal::ConstantInitialized); 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(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; @@ -488,27 +404,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Status_Port& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_Port_globals_); + static const GameServer_Status_Port& 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); } @@ -528,8 +444,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Status_Port* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Status_Port* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -542,33 +457,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -579,6 +492,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Port"; } + protected: explicit GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Port& from); GameServer_Status_Port( @@ -593,11 +507,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -607,7 +519,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por }; // string name = 1; void clear_name() ; - [[nodiscard]] const ::std::string& name() const; + const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -622,7 +534,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por public: // int32 port = 2; void clear_port() ; - [[nodiscard]] ::int32_t port() const; + ::int32_t port() const; void set_port(::int32_t value); private: @@ -633,27 +545,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Port) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 50, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 50, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -670,270 +575,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Por union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; -// ------------------------------------------------------------------- - -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_PlayerStatus final : public ::google::protobuf::Message -/* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.PlayerStatus) */ { - public: - inline GameServer_Status_PlayerStatus() : GameServer_Status_PlayerStatus(nullptr) {} - ~GameServer_Status_PlayerStatus() PROTOBUF_FINAL; - -#if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_PlayerStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { - SharedDtor(*msg); - ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_PlayerStatus)); - } -#endif - - template - explicit constexpr GameServer_Status_PlayerStatus(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); - - 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_Status_PlayerStatus& operator=(GameServer_Status_PlayerStatus&& from) noexcept { - if (this == &from) return *this; - if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) { - InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - - [[nodiscard]] 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); - } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { - return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); - } - - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { - return GetDescriptor(); - } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { - return default_instance().GetMetadata().descriptor; - } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { - return default_instance().GetMetadata().reflection; - } - [[nodiscard]] static const GameServer_Status_PlayerStatus& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_PlayerStatus_globals_); - } - 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* PROTOBUF_NONNULL other) { - if (other == this) return; - if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) { - InternalSwap(other); - } else { - ::google::protobuf::internal::GenericSwap(this, other); - } - } - void UnsafeArenaSwap(GameServer_Status_PlayerStatus* PROTOBUF_NONNULL other) { - if (other == this) return; - ABSL_DCHECK(GetArena() == other->GetArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - [[nodiscard]] GameServer_Status_PlayerStatus* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { - 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(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg); - - public: - [[nodiscard]] bool IsInitialized() const { - return true; - } - ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; - #if defined(PROTOBUF_CUSTOM_VTABLE) - private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); - - public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - return _InternalSerialize(*this, target, stream); - } - #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; - #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } - - private: - void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static void SharedDtor(MessageLite& self); - void InternalSwap(GameServer_Status_PlayerStatus* PROTOBUF_NONNULL other); - private: - template - friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); - static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.PlayerStatus"; } - - explicit GameServer_Status_PlayerStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - GameServer_Status_PlayerStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_PlayerStatus& from); - GameServer_Status_PlayerStatus( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, GameServer_Status_PlayerStatus&& from) noexcept - : GameServer_Status_PlayerStatus(arena) { - *this = ::std::move(from); - } - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; - static void* PROTOBUF_NONNULL PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr auto InternalNewImpl_(); - - public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - enum : int { - kIdsFieldNumber = 3, - kCountFieldNumber = 1, - kCapacityFieldNumber = 2, - }; - // repeated string ids = 3; - [[nodiscard]] int ids_size() - const; - private: - int _internal_ids_size() const; - - public: - void clear_ids() ; - [[nodiscard]] const ::std::string& ids(int index) const; - ::std::string* PROTOBUF_NONNULL mutable_ids(int index); - template - void set_ids(int index, Arg_&& value, Args_... args); - ::std::string* PROTOBUF_NONNULL add_ids(); - template - void add_ids(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - ids() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_ids(); - - private: - const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_ids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_ids(); - - public: - // int64 count = 1; - void clear_count() ; - [[nodiscard]] ::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() ; - [[nodiscard]] ::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.PlayerStatus) - private: - class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<2, 3, - 0, 57, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); - friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif - - friend class ::google::protobuf::MessageLite; - friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; - template - friend class ::google::protobuf::Arena::InternalHelper; - using InternalArenaConstructable_ = void; - using DestructorSkippable_ = void; - struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const GameServer_Status_PlayerStatus& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::RepeatedPtrField<::std::string> ids_; - ::int64_t count_; - ::int64_t capacity_; - PROTOBUF_TSAN_DECLARE_MEMBER - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_sdk_2eproto; -}; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_ListStatus final : public ::google::protobuf::Message +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_Status_ListStatus() : GameServer_Status_ListStatus(nullptr) {} ~GameServer_Status_ListStatus() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_ListStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Status_ListStatus* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_ListStatus)); } #endif template - explicit constexpr GameServer_Status_ListStatus(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Status_ListStatus(::google::protobuf::internal::ConstantInitialized); 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(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; @@ -948,29 +612,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Status_ListStatus& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_ListStatus_globals_); + static const GameServer_Status_ListStatus& default_instance() { + return *reinterpret_cast( + &_GameServer_Status_ListStatus_default_instance_); } - static constexpr int kIndexInFileMessages = 12; + static constexpr int kIndexInFileMessages = 11; friend void swap(GameServer_Status_ListStatus& a, GameServer_Status_ListStatus& b) { a.Swap(&b); } inline void Swap(GameServer_Status_ListStatus* PROTOBUF_NONNULL other) { if (other == this) return; @@ -988,8 +652,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Status_ListStatus* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Status_ListStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1002,33 +665,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1039,6 +700,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.ListStatus"; } + protected: explicit GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_ListStatus& from); GameServer_Status_ListStatus( @@ -1053,11 +715,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1066,26 +726,21 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis kCapacityFieldNumber = 1, }; // repeated string values = 2; - [[nodiscard]] int values_size() - const; + int values_size() const; private: int _internal_values_size() const; public: void clear_values() ; - [[nodiscard]] const ::std::string& values(int index) const; + const ::std::string& values(int index) const; ::std::string* PROTOBUF_NONNULL mutable_values(int index); template void set_values(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_values(); template void add_values(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - values() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_values(); + const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_values(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_values() const; @@ -1094,7 +749,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis public: // int64 capacity = 1; void clear_capacity() ; - [[nodiscard]] ::int64_t capacity() const; + ::int64_t capacity() const; void set_capacity(::int64_t value); private: @@ -1105,27 +760,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.ListStatus) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 58, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 58, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1142,28 +790,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Lis union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_CounterStatus final : public ::google::protobuf::Message +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_Status_CounterStatus() : GameServer_Status_CounterStatus(nullptr) {} ~GameServer_Status_CounterStatus() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_CounterStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Status_CounterStatus* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_CounterStatus)); } #endif template - explicit constexpr GameServer_Status_CounterStatus(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus(::google::protobuf::internal::ConstantInitialized); 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(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; @@ -1178,29 +827,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Status_CounterStatus& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_CounterStatus_globals_); + static const GameServer_Status_CounterStatus& default_instance() { + return *reinterpret_cast( + &_GameServer_Status_CounterStatus_default_instance_); } - static constexpr int kIndexInFileMessages = 11; + static constexpr int kIndexInFileMessages = 10; friend void swap(GameServer_Status_CounterStatus& a, GameServer_Status_CounterStatus& b) { a.Swap(&b); } inline void Swap(GameServer_Status_CounterStatus* PROTOBUF_NONNULL other) { if (other == this) return; @@ -1218,8 +867,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Status_CounterStatus* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Status_CounterStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1232,33 +880,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1269,6 +915,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.CounterStatus"; } + protected: explicit GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_CounterStatus& from); GameServer_Status_CounterStatus( @@ -1283,11 +930,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1297,7 +942,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou }; // int64 count = 1; void clear_count() ; - [[nodiscard]] ::int64_t count() const; + ::int64_t count() const; void set_count(::int64_t value); private: @@ -1307,7 +952,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou public: // int64 capacity = 2; void clear_capacity() ; - [[nodiscard]] ::int64_t capacity() const; + ::int64_t capacity() const; void set_capacity(::int64_t value); private: @@ -1318,27 +963,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.CounterStatus) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1355,28 +993,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Cou union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Address final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_Address* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Status_Address* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_Address)); } #endif template - explicit constexpr GameServer_Status_Address(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(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; @@ -1391,27 +1030,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Status_Address& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_Address_globals_); + static const GameServer_Status_Address& 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); } @@ -1431,8 +1070,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Status_Address* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Status_Address* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1445,33 +1083,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1482,6 +1118,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Address"; } + protected: explicit GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Address& from); GameServer_Status_Address( @@ -1496,11 +1133,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1510,7 +1145,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add }; // string type = 1; void clear_type() ; - [[nodiscard]] const ::std::string& type() const; + const ::std::string& type() const; template void set_type(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_type(); @@ -1525,7 +1160,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add public: // string address = 2; void clear_address() ; - [[nodiscard]] const ::std::string& address() const; + const ::std::string& address() const; template void set_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_address(); @@ -1541,27 +1176,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Address) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 60, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 60, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1578,28 +1206,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Add union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Health final : public ::google::protobuf::Message +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_Spec_Health() : GameServer_Spec_Health(nullptr) {} ~GameServer_Spec_Health() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Spec_Health* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Spec_Health* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Spec_Health)); } #endif template - explicit constexpr GameServer_Spec_Health(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Spec_Health(::google::protobuf::internal::ConstantInitialized); 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(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; @@ -1614,27 +1243,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Spec_Health& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Spec_Health_globals_); + static const GameServer_Spec_Health& 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); } @@ -1654,8 +1283,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Spec_Health* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Spec_Health* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1668,33 +1296,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1705,6 +1331,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec.Health"; } + protected: explicit GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec_Health& from); GameServer_Spec_Health( @@ -1719,11 +1346,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1735,7 +1360,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt }; // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { void clear_disabled() ; - [[nodiscard]] bool disabled() const; + bool disabled() const; void set_disabled(bool value); private: @@ -1745,7 +1370,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt public: // int32 period_seconds = 2; void clear_period_seconds() ; - [[nodiscard]] ::int32_t period_seconds() const; + ::int32_t period_seconds() const; void set_period_seconds(::int32_t value); private: @@ -1755,7 +1380,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt public: // int32 failure_threshold = 3; void clear_failure_threshold() ; - [[nodiscard]] ::int32_t failure_threshold() const; + ::int32_t failure_threshold() const; void set_failure_threshold(::int32_t value); private: @@ -1765,7 +1390,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt public: // int32 initial_delay_seconds = 4; void clear_initial_delay_seconds() ; - [[nodiscard]] ::int32_t initial_delay_seconds() const; + ::int32_t initial_delay_seconds() const; void set_initial_delay_seconds(::int32_t value); private: @@ -1776,27 +1401,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec.Health) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<2, 4, - 0, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1815,48 +1433,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Healt union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta_LabelsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::std::string, +class GameServer_ObjectMeta_LabelsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::std::string, + ::google::protobuf::internal::MapEntry; GameServer_ObjectMeta_LabelsEntry_DoNotUse(); template - explicit constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 65, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 65, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1864,48 +1473,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta_LabelsEntry_Do ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::std::string, +class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::std::string, + ::google::protobuf::internal::MapEntry; GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); template - explicit constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 70, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 70, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1913,27 +1512,27 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta_AnnotationsEnt ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public ::google::protobuf::internal::ZeroFieldsBase +class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Empty) */ { public: inline Empty() : Empty(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Empty* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Empty* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Empty)); } #endif template - explicit constexpr Empty(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(Empty&& from) noexcept + : Empty(nullptr, ::std::move(from)) {} inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; @@ -1948,27 +1547,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Empty& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Empty_globals_); + static const Empty& default_instance() { + return *reinterpret_cast( + &_Empty_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Empty& a, Empty& b) { a.Swap(&b); } @@ -1988,17 +1587,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public // implements Message ---------------------------------------------- - [[nodiscard]] Empty* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Empty* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const Empty& from) { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } + inline void CopyFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); + } using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const Empty& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } + void MergeFrom(const Empty& from) { + ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); + } public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } private: @@ -2006,6 +1608,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Empty"; } + protected: explicit Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from); Empty( @@ -2020,59 +1623,63 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:agones.dev.sdk.Empty) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; 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* PROTOBUF_NULLABLE arena); + inline explicit Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const Empty& from_msg); + PROTOBUF_TSAN_DECLARE_MEMBER + }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : public ::google::protobuf::Message +class AGONES_EXPORT Duration final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Duration) */ { public: inline Duration() : Duration(nullptr) {} ~Duration() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Duration* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Duration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Duration)); } #endif template - explicit constexpr Duration(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(Duration&& from) noexcept + : Duration(nullptr, ::std::move(from)) {} inline Duration& operator=(const Duration& from) { CopyFrom(from); return *this; @@ -2087,27 +1694,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Duration& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Duration_globals_); + static const Duration& default_instance() { + return *reinterpret_cast( + &_Duration_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Duration& a, Duration& b) { a.Swap(&b); } @@ -2127,8 +1734,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ // implements Message ---------------------------------------------- - [[nodiscard]] Duration* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Duration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2141,33 +1747,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2178,6 +1782,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Duration"; } + protected: explicit Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Duration& from); Duration( @@ -2192,11 +1797,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2205,7 +1808,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ }; // int64 seconds = 1; void clear_seconds() ; - [[nodiscard]] ::int64_t seconds() const; + ::int64_t seconds() const; void set_seconds(::int64_t value); private: @@ -2216,27 +1819,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ // @@protoc_insertion_point(class_scope:agones.dev.sdk.Duration) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2252,48 +1848,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : publ union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Duration_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_ListsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class GameServer_Status_ListsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; GameServer_Status_ListsEntry_DoNotUse(); template - explicit constexpr GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &GameServer_Status_ListsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_GameServer_Status_ListsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 55, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 55, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2301,48 +1888,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_ListsEntry_DoNotUs ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_CountersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class GameServer_Status_CountersEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; GameServer_Status_CountersEntry_DoNotUse(); template - explicit constexpr GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &GameServer_Status_CountersEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_GameServer_Status_CountersEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 58, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 58, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2350,28 +1927,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_CountersEntry_DoNo ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Spec* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Spec* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Spec)); } #endif template - explicit constexpr GameServer_Spec(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(GameServer_Spec&& from) noexcept + : GameServer_Spec(nullptr, ::std::move(from)) {} inline GameServer_Spec& operator=(const GameServer_Spec& from) { CopyFrom(from); return *this; @@ -2386,27 +1963,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Spec& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Spec_globals_); + static const GameServer_Spec& 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); } @@ -2426,8 +2003,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Spec* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Spec* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2440,33 +2016,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2477,6 +2051,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec"; } + protected: explicit GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec& from); GameServer_Spec( @@ -2491,11 +2066,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using Health = GameServer_Spec_Health; @@ -2504,10 +2077,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final kHealthFieldNumber = 1, }; // .agones.dev.sdk.GameServer.Spec.Health health = 1; - [[nodiscard]] bool has_health() - const; + bool has_health() const; void clear_health() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Spec_Health& health() const; + const ::agones::dev::sdk::GameServer_Spec_Health& health() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE release_health(); ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL mutable_health(); void set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE value); @@ -2522,27 +2094,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 1, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2558,28 +2123,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec final union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta final : public ::google::protobuf::Message +class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.ObjectMeta) */ { public: inline GameServer_ObjectMeta() : GameServer_ObjectMeta(nullptr) {} ~GameServer_ObjectMeta() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_ObjectMeta* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_ObjectMeta* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_ObjectMeta)); } #endif template - explicit constexpr GameServer_ObjectMeta(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta(::google::protobuf::internal::ConstantInitialized); 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(GameServer_ObjectMeta&& from) noexcept + : GameServer_ObjectMeta(nullptr, ::std::move(from)) {} inline GameServer_ObjectMeta& operator=(const GameServer_ObjectMeta& from) { CopyFrom(from); return *this; @@ -2594,27 +2160,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_ObjectMeta& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_ObjectMeta_globals_); + static const GameServer_ObjectMeta& 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); } @@ -2634,8 +2200,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_ObjectMeta* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_ObjectMeta* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2648,33 +2213,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2685,6 +2248,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.ObjectMeta"; } + protected: explicit GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_ObjectMeta& from); GameServer_ObjectMeta( @@ -2699,15 +2263,15 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kAnnotationsFieldNumber = 8, + kLabelsFieldNumber = 9, kNameFieldNumber = 1, kNamespaceFieldNumber = 2, kUidFieldNumber = 3, @@ -2715,12 +2279,40 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta kGenerationFieldNumber = 5, kCreationTimestampFieldNumber = 6, kDeletionTimestampFieldNumber = 7, - kAnnotationsFieldNumber = 8, - kLabelsFieldNumber = 9, }; + // 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* PROTOBUF_NONNULL mutable_annotations(); + + private: + const ::google::protobuf::Map& _internal_annotations() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _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* PROTOBUF_NONNULL mutable_labels(); + + private: + const ::google::protobuf::Map& _internal_labels() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_labels(); + + public: // string name = 1; void clear_name() ; - [[nodiscard]] const ::std::string& name() const; + const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -2735,7 +2327,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // string namespace = 2; void clear_namespace_() ; - [[nodiscard]] const ::std::string& namespace_() const; + const ::std::string& namespace_() const; template void set_namespace_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_namespace_(); @@ -2750,7 +2342,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // string uid = 3; void clear_uid() ; - [[nodiscard]] const ::std::string& uid() const; + const ::std::string& uid() const; template void set_uid(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_uid(); @@ -2765,7 +2357,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // string resource_version = 4; void clear_resource_version() ; - [[nodiscard]] const ::std::string& resource_version() const; + const ::std::string& resource_version() const; template void set_resource_version(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_resource_version(); @@ -2780,7 +2372,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // int64 generation = 5; void clear_generation() ; - [[nodiscard]] ::int64_t generation() const; + ::int64_t generation() const; void set_generation(::int64_t value); private: @@ -2790,7 +2382,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // int64 creation_timestamp = 6; void clear_creation_timestamp() ; - [[nodiscard]] ::int64_t creation_timestamp() const; + ::int64_t creation_timestamp() const; void set_creation_timestamp(::int64_t value); private: @@ -2800,70 +2392,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta public: // int64 deletion_timestamp = 7; void clear_deletion_timestamp() ; - [[nodiscard]] ::int64_t deletion_timestamp() const; + ::int64_t deletion_timestamp() const; void set_deletion_timestamp(::int64_t value); private: ::int64_t _internal_deletion_timestamp() const; void _internal_set_deletion_timestamp(::int64_t value); - public: - // map annotations = 8; - [[nodiscard]] int annotations_size() - const; - private: - int _internal_annotations_size() const; - - public: - void clear_annotations() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& annotations() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_annotations(); - - private: - const ::google::protobuf::Map<::std::string, ::std::string>& _internal_annotations() const; - ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_annotations(); - - public: - // map labels = 9; - [[nodiscard]] int labels_size() - const; - private: - int _internal_labels_size() const; - - public: - void clear_labels() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& labels() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_labels(); - - private: - const ::google::protobuf::Map<::std::string, ::std::string>& _internal_labels() const; - ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_labels(); - public: // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.ObjectMeta) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 9, - 2, 102, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 9, + 2, 102, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2873,6 +2426,14 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta const GameServer_ObjectMeta& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::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_; @@ -2880,35 +2441,34 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta ::int64_t generation_; ::int64_t creation_timestamp_; ::int64_t deletion_timestamp_; - ::google::protobuf::internal::MapField annotations_; - ::google::protobuf::internal::MapField labels_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer_Status* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status)); } #endif template - explicit constexpr GameServer_Status(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(GameServer_Status&& from) noexcept + : GameServer_Status(nullptr, ::std::move(from)) {} inline GameServer_Status& operator=(const GameServer_Status& from) { CopyFrom(from); return *this; @@ -2923,29 +2483,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer_Status& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_globals_); + static const GameServer_Status& default_instance() { + return *reinterpret_cast( + &_GameServer_Status_default_instance_); } - static constexpr int kIndexInFileMessages = 15; + static constexpr int kIndexInFileMessages = 14; friend void swap(GameServer_Status& a, GameServer_Status& b) { a.Swap(&b); } inline void Swap(GameServer_Status* PROTOBUF_NONNULL other) { if (other == this) return; @@ -2963,8 +2523,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin // implements Message ---------------------------------------------- - [[nodiscard]] GameServer_Status* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer_Status* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2977,33 +2536,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3014,6 +2571,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status"; } + protected: explicit GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status& from); GameServer_Status( @@ -3028,73 +2586,91 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- 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, + kListsFieldNumber = 6, kAddressesFieldNumber = 7, kStateFieldNumber = 1, kAddressFieldNumber = 2, - kPlayersFieldNumber = 4, - kCountersFieldNumber = 5, - kListsFieldNumber = 6, }; // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - [[nodiscard]] int ports_size() - const; + int ports_size() const; private: int _internal_ports_size() const; public: void clear_ports() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Status_Port& ports(int index) const; - [[nodiscard]] ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL mutable_ports(int index); - ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL add_ports(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& - ports() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL - mutable_ports(); + ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL mutable_ports(int index); + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL mutable_ports(); private: const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& _internal_ports() const; ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL _internal_mutable_ports(); + public: + const ::agones::dev::sdk::GameServer_Status_Port& ports(int index) const; + ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL add_ports(); + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& ports() const; + // map counters = 5; + int counters_size() const; + private: + int _internal_counters_size() const; + + public: + void clear_counters() ; + const ::google::protobuf::Map& counters() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_counters(); + + private: + const ::google::protobuf::Map& _internal_counters() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_counters(); + + public: + // map lists = 6; + int lists_size() const; + private: + int _internal_lists_size() const; + + public: + void clear_lists() ; + const ::google::protobuf::Map& lists() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_lists(); + + private: + const ::google::protobuf::Map& _internal_lists() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_lists(); public: // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - [[nodiscard]] int addresses_size() - const; + int addresses_size() const; private: int _internal_addresses_size() const; public: void clear_addresses() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Status_Address& addresses(int index) const; - [[nodiscard]] ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL mutable_addresses(int index); - ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL add_addresses(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& - addresses() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL - mutable_addresses(); + ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL mutable_addresses(int index); + ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL mutable_addresses(); private: const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& _internal_addresses() const; ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL _internal_mutable_addresses(); - public: + const ::agones::dev::sdk::GameServer_Status_Address& addresses(int index) const; + ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL add_addresses(); + const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& addresses() const; // string state = 1; void clear_state() ; - [[nodiscard]] const ::std::string& state() const; + const ::std::string& state() const; template void set_state(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_state(); @@ -3109,7 +2685,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin public: // string address = 2; void clear_address() ; - [[nodiscard]] const ::std::string& address() const; + const ::std::string& address() const; template void set_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_address(); @@ -3121,79 +2697,24 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); - public: - // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; - [[nodiscard]] bool has_players() - const; - void clear_players() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Status_PlayerStatus& players() const; - [[nodiscard]] ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE release_players(); - ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NONNULL mutable_players(); - void set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_players(::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE value); - ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE unsafe_arena_release_players(); - - private: - const ::agones::dev::sdk::GameServer_Status_PlayerStatus& _internal_players() const; - ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NONNULL _internal_mutable_players(); - - public: - // map counters = 5; - [[nodiscard]] int counters_size() - const; - private: - int _internal_counters_size() const; - - public: - void clear_counters() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& counters() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL mutable_counters(); - - private: - const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& _internal_counters() const; - ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL _internal_mutable_counters(); - - public: - // map lists = 6; - [[nodiscard]] int lists_size() - const; - private: - int _internal_lists_size() const; - - public: - void clear_lists() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& lists() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL mutable_lists(); - - private: - const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& _internal_lists() const; - ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL _internal_mutable_lists(); - public: // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 7, - 7, 66, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 6, + 6, 66, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3204,39 +2725,45 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status fin ::google::protobuf::internal::HasBits<1> _has_bits_; ::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* PROTOBUF_NULLABLE players_; - ::google::protobuf::internal::MapField counters_; - ::google::protobuf::internal::MapField lists_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : public ::google::protobuf::Message +class AGONES_EXPORT GameServer final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer) */ { public: inline GameServer() : GameServer(nullptr) {} ~GameServer() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(GameServer* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer)); } #endif template - explicit constexpr GameServer(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(GameServer&& from) noexcept + : GameServer(nullptr, ::std::move(from)) {} inline GameServer& operator=(const GameServer& from) { CopyFrom(from); return *this; @@ -3251,29 +2778,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const GameServer& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_globals_); + static const GameServer& default_instance() { + return *reinterpret_cast( + &_GameServer_default_instance_); } - static constexpr int kIndexInFileMessages = 16; + static constexpr int kIndexInFileMessages = 15; friend void swap(GameServer& a, GameServer& b) { a.Swap(&b); } inline void Swap(GameServer* PROTOBUF_NONNULL other) { if (other == this) return; @@ -3291,8 +2818,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu // implements Message ---------------------------------------------- - [[nodiscard]] GameServer* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + GameServer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3305,33 +2831,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3342,6 +2866,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer"; } + protected: explicit GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer& from); GameServer( @@ -3356,11 +2881,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using ObjectMeta = GameServer_ObjectMeta; using Spec = GameServer_Spec; @@ -3373,10 +2896,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu kStatusFieldNumber = 3, }; // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - [[nodiscard]] bool has_object_meta() - const; + bool has_object_meta() const; void clear_object_meta() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta() const; + const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta() const; [[nodiscard]] ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE release_object_meta(); ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL mutable_object_meta(); void set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE value); @@ -3389,10 +2911,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu public: // .agones.dev.sdk.GameServer.Spec spec = 2; - [[nodiscard]] bool has_spec() - const; + bool has_spec() const; void clear_spec() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Spec& spec() const; + const ::agones::dev::sdk::GameServer_Spec& spec() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE release_spec(); ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL mutable_spec(); void set_allocated_spec(::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE value); @@ -3405,10 +2926,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu public: // .agones.dev.sdk.GameServer.Status status = 3; - [[nodiscard]] bool has_status() - const; + bool has_status() const; void clear_status() ; - [[nodiscard]] const ::agones::dev::sdk::GameServer_Status& status() const; + const ::agones::dev::sdk::GameServer_Status& status() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE release_status(); ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL mutable_status(); void set_allocated_status(::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE value); @@ -3423,27 +2943,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<2, 3, - 3, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<2, 3, + 3, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3462,6 +2975,8 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu friend struct ::TableStruct_sdk_2eproto; }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_class_data_; + // =================================================================== @@ -3486,7 +3001,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : pu inline void KeyValue::clear_key() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.key_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& KeyValue::key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3496,13 +3011,12 @@ inline const ::std::string& KeyValue::key() const template PROTOBUF_ALWAYS_INLINE void KeyValue::set_key(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.key) } inline ::std::string* PROTOBUF_NONNULL KeyValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.key) return _s; @@ -3513,19 +3027,21 @@ inline const ::std::string& KeyValue::_internal_key() const { } inline void KeyValue::_internal_set_key(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.key_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL KeyValue::_internal_mutable_key() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.key_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_key() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.key) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.key_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.key_.Set("", GetArena()); @@ -3535,9 +3051,9 @@ inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_key() { inline void KeyValue::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.key_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) { @@ -3550,7 +3066,7 @@ inline void KeyValue::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) inline void KeyValue::clear_value() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& KeyValue::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3560,13 +3076,12 @@ inline const ::std::string& KeyValue::value() const template PROTOBUF_ALWAYS_INLINE void KeyValue::set_value(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.value) } inline ::std::string* PROTOBUF_NONNULL KeyValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.value) return _s; @@ -3577,19 +3092,21 @@ inline const ::std::string& KeyValue::_internal_value() const { } inline void KeyValue::_internal_set_value(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.value_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL KeyValue::_internal_mutable_value() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.value_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_value() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.value) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.value_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.value_.Set("", GetArena()); @@ -3599,9 +3116,9 @@ inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_value() { inline void KeyValue::set_allocated_value(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.value_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { @@ -3618,7 +3135,7 @@ inline void KeyValue::set_allocated_value(::std::string* PROTOBUF_NULLABLE value inline void Duration::clear_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.seconds_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::int64_t Duration::seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.Duration.seconds) @@ -3626,7 +3143,7 @@ inline ::int64_t Duration::seconds() const { } inline void Duration::set_seconds(::int64_t value) { _internal_set_seconds(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:agones.dev.sdk.Duration.seconds) } inline ::int64_t Duration::_internal_seconds() const { @@ -3650,7 +3167,7 @@ inline void Duration::_internal_set_seconds(::int64_t value) { inline void GameServer_ObjectMeta::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& GameServer_ObjectMeta::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3660,13 +3177,12 @@ inline const ::std::string& GameServer_ObjectMeta::name() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.name) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.name) return _s; @@ -3677,19 +3193,21 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_name() const { } inline void GameServer_ObjectMeta::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -3699,9 +3217,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_name() { inline void GameServer_ObjectMeta::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -3714,7 +3232,7 @@ inline void GameServer_ObjectMeta::set_allocated_name(::std::string* PROTOBUF_NU inline void GameServer_ObjectMeta::clear_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.namespace__.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& GameServer_ObjectMeta::namespace_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3724,13 +3242,12 @@ inline const ::std::string& GameServer_ObjectMeta::namespace_() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_namespace_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.namespace) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.namespace) return _s; @@ -3741,19 +3258,21 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_namespace_() const } inline void GameServer_ObjectMeta::_internal_set_namespace_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.namespace__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.namespace__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.namespace) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.namespace__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.namespace__.Set("", GetArena()); @@ -3763,9 +3282,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_namespace inline void GameServer_ObjectMeta::set_allocated_namespace_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.namespace__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.namespace__.IsDefault()) { @@ -3778,7 +3297,7 @@ inline void GameServer_ObjectMeta::set_allocated_namespace_(::std::string* PROTO inline void GameServer_ObjectMeta::clear_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.uid_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& GameServer_ObjectMeta::uid() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3788,13 +3307,12 @@ inline const ::std::string& GameServer_ObjectMeta::uid() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_uid(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.uid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.uid) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_uid() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_uid(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.uid) return _s; @@ -3805,19 +3323,21 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_uid() const { } inline void GameServer_ObjectMeta::_internal_set_uid(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.uid_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.uid_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.uid) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.uid_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.uid_.Set("", GetArena()); @@ -3827,9 +3347,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_uid() { inline void GameServer_ObjectMeta::set_allocated_uid(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.uid_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.uid_.IsDefault()) { @@ -3842,7 +3362,7 @@ inline void GameServer_ObjectMeta::set_allocated_uid(::std::string* PROTOBUF_NUL inline void GameServer_ObjectMeta::clear_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.resource_version_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::std::string& GameServer_ObjectMeta::resource_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3852,13 +3372,12 @@ inline const ::std::string& GameServer_ObjectMeta::resource_version() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_resource_version(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.resource_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_resource_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_resource_version(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.resource_version) return _s; @@ -3869,19 +3388,21 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_resource_version() } inline void GameServer_ObjectMeta::_internal_set_resource_version(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.resource_version_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.resource_version_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.resource_version) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; auto* released = _impl_.resource_version_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.resource_version_.Set("", GetArena()); @@ -3891,9 +3412,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_resource_ inline void GameServer_ObjectMeta::set_allocated_resource_version(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.resource_version_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.resource_version_.IsDefault()) { @@ -3906,7 +3427,7 @@ inline void GameServer_ObjectMeta::set_allocated_resource_version(::std::string* inline void GameServer_ObjectMeta::clear_generation() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.generation_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline ::int64_t GameServer_ObjectMeta::generation() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.generation) @@ -3914,7 +3435,7 @@ inline ::int64_t GameServer_ObjectMeta::generation() const { } inline void GameServer_ObjectMeta::set_generation(::int64_t value) { _internal_set_generation(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.generation) } inline ::int64_t GameServer_ObjectMeta::_internal_generation() const { @@ -3930,7 +3451,7 @@ inline void GameServer_ObjectMeta::_internal_set_generation(::int64_t value) { inline void GameServer_ObjectMeta::clear_creation_timestamp() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.creation_timestamp_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::int64_t GameServer_ObjectMeta::creation_timestamp() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.creation_timestamp) @@ -3938,7 +3459,7 @@ inline ::int64_t GameServer_ObjectMeta::creation_timestamp() const { } inline void GameServer_ObjectMeta::set_creation_timestamp(::int64_t value) { _internal_set_creation_timestamp(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000020u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.creation_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_creation_timestamp() const { @@ -3954,7 +3475,7 @@ inline void GameServer_ObjectMeta::_internal_set_creation_timestamp(::int64_t va inline void GameServer_ObjectMeta::clear_deletion_timestamp() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.deletion_timestamp_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::int64_t GameServer_ObjectMeta::deletion_timestamp() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.deletion_timestamp) @@ -3962,7 +3483,7 @@ inline ::int64_t GameServer_ObjectMeta::deletion_timestamp() const { } inline void GameServer_ObjectMeta::set_deletion_timestamp(::int64_t value) { _internal_set_deletion_timestamp(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000040u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.deletion_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_deletion_timestamp() const { @@ -3984,23 +3505,21 @@ inline int GameServer_ObjectMeta::annotations_size() const { inline void GameServer_ObjectMeta::clear_annotations() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.annotations_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::_internal_annotations() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_annotations() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.annotations_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::annotations() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_annotations() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_annotations() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.annotations_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_annotations() +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_annotations() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.annotations) return _internal_mutable_annotations(); } @@ -4015,23 +3534,21 @@ inline int GameServer_ObjectMeta::labels_size() const { inline void GameServer_ObjectMeta::clear_labels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.labels_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::_internal_labels() const { +inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_labels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.labels_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_labels() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_labels() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.labels_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_labels() +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.labels) return _internal_mutable_labels(); } @@ -4044,7 +3561,7 @@ inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL G inline void GameServer_Spec_Health::clear_disabled() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.disabled_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline bool GameServer_Spec_Health::disabled() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.disabled) @@ -4052,7 +3569,7 @@ inline bool GameServer_Spec_Health::disabled() const { } inline void GameServer_Spec_Health::set_disabled(bool value) { _internal_set_disabled(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.disabled) } inline bool GameServer_Spec_Health::_internal_disabled() const { @@ -4068,7 +3585,7 @@ inline void GameServer_Spec_Health::_internal_set_disabled(bool value) { inline void GameServer_Spec_Health::clear_period_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.period_seconds_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::int32_t GameServer_Spec_Health::period_seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.period_seconds) @@ -4076,7 +3593,7 @@ inline ::int32_t GameServer_Spec_Health::period_seconds() const { } inline void GameServer_Spec_Health::set_period_seconds(::int32_t value) { _internal_set_period_seconds(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.period_seconds) } inline ::int32_t GameServer_Spec_Health::_internal_period_seconds() const { @@ -4092,7 +3609,7 @@ inline void GameServer_Spec_Health::_internal_set_period_seconds(::int32_t value inline void GameServer_Spec_Health::clear_failure_threshold() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failure_threshold_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline ::int32_t GameServer_Spec_Health::failure_threshold() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.failure_threshold) @@ -4100,7 +3617,7 @@ inline ::int32_t GameServer_Spec_Health::failure_threshold() const { } inline void GameServer_Spec_Health::set_failure_threshold(::int32_t value) { _internal_set_failure_threshold(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.failure_threshold) } inline ::int32_t GameServer_Spec_Health::_internal_failure_threshold() const { @@ -4116,7 +3633,7 @@ inline void GameServer_Spec_Health::_internal_set_failure_threshold(::int32_t va inline void GameServer_Spec_Health::clear_initial_delay_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_delay_seconds_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline ::int32_t GameServer_Spec_Health::initial_delay_seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.initial_delay_seconds) @@ -4124,7 +3641,7 @@ inline ::int32_t GameServer_Spec_Health::initial_delay_seconds() const { } inline void GameServer_Spec_Health::set_initial_delay_seconds(::int32_t value) { _internal_set_initial_delay_seconds(value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; // @@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 { @@ -4142,19 +3659,19 @@ inline void GameServer_Spec_Health::_internal_set_initial_delay_seconds(::int32_ // .agones.dev.sdk.GameServer.Spec.Health health = 1; inline bool GameServer_Spec::has_health() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || _impl_.health_ != nullptr); return value; } inline void GameServer_Spec::clear_health() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.health_ != nullptr) _impl_.health_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::_internal_health() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::agones::dev::sdk::GameServer_Spec_Health* p = _impl_.health_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Spec_Health>(&::agones::dev::sdk::GameServer_Spec_Health_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.health) @@ -4168,16 +3685,16 @@ inline void GameServer_Spec::unsafe_arena_set_allocated_health( } _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Spec.health) } inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE GameServer_Spec::release_health() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_Spec_Health* released = _impl_.health_; _impl_.health_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -4197,7 +3714,7 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE GameServer_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Spec.health) - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_Spec_Health* temp = _impl_.health_; _impl_.health_ = nullptr; return temp; @@ -4212,7 +3729,7 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL GameServer_S } inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL GameServer_Spec::mutable_health() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _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; @@ -4229,9 +3746,9 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); @@ -4246,7 +3763,7 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer inline void GameServer_Status_Address::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& GameServer_Status_Address::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4256,13 +3773,12 @@ inline const ::std::string& GameServer_Status_Address::type() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.type) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.type) return _s; @@ -4273,19 +3789,21 @@ inline const ::std::string& GameServer_Status_Address::_internal_type() const { } inline void GameServer_Status_Address::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.type_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.type_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.type_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.type_.Set("", GetArena()); @@ -4295,9 +3813,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_type( inline void GameServer_Status_Address::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { @@ -4310,7 +3828,7 @@ inline void GameServer_Status_Address::set_allocated_type(::std::string* PROTOBU inline void GameServer_Status_Address::clear_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& GameServer_Status_Address::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4320,13 +3838,12 @@ inline const ::std::string& GameServer_Status_Address::address() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.address) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.address) return _s; @@ -4337,19 +3854,21 @@ inline const ::std::string& GameServer_Status_Address::_internal_address() const } inline void GameServer_Status_Address::_internal_set_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::_internal_mutable_address() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.address) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.address_.Set("", GetArena()); @@ -4359,9 +3878,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_addre inline void GameServer_Status_Address::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { @@ -4378,7 +3897,7 @@ inline void GameServer_Status_Address::set_allocated_address(::std::string* PROT inline void GameServer_Status_Port::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& GameServer_Status_Port::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4388,13 +3907,12 @@ inline const ::std::string& GameServer_Status_Port::name() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Port::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.name) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Port::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Port.name) return _s; @@ -4405,19 +3923,21 @@ inline const ::std::string& GameServer_Status_Port::_internal_name() const { } inline void GameServer_Status_Port::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Port::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Port::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Port.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -4427,9 +3947,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Port::release_name() { inline void GameServer_Status_Port::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -4442,7 +3962,7 @@ inline void GameServer_Status_Port::set_allocated_name(::std::string* PROTOBUF_N inline void GameServer_Status_Port::clear_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.port_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::int32_t GameServer_Status_Port::port() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Port.port) @@ -4450,7 +3970,7 @@ inline ::int32_t GameServer_Status_Port::port() const { } inline void GameServer_Status_Port::set_port(::int32_t value) { _internal_set_port(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.port) } inline ::int32_t GameServer_Status_Port::_internal_port() const { @@ -4464,137 +3984,13 @@ inline void GameServer_Status_Port::_internal_set_port(::int32_t value) { // ------------------------------------------------------------------- -// GameServer_Status_PlayerStatus - -// int64 count = 1; -inline void GameServer_Status_PlayerStatus::clear_count() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.count_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); -} -inline ::int64_t GameServer_Status_PlayerStatus::count() const { - // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.PlayerStatus.count) - return _internal_count(); -} -inline void GameServer_Status_PlayerStatus::set_count(::int64_t value) { - _internal_set_count(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.PlayerStatus.count) -} -inline ::int64_t GameServer_Status_PlayerStatus::_internal_count() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.count_; -} -inline void GameServer_Status_PlayerStatus::_internal_set_count(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.count_ = value; -} - -// int64 capacity = 2; -inline void GameServer_Status_PlayerStatus::clear_capacity() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.capacity_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); -} -inline ::int64_t GameServer_Status_PlayerStatus::capacity() const { - // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.PlayerStatus.capacity) - return _internal_capacity(); -} -inline void GameServer_Status_PlayerStatus::set_capacity(::int64_t value) { - _internal_set_capacity(value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); - // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.PlayerStatus.capacity) -} -inline ::int64_t GameServer_Status_PlayerStatus::_internal_capacity() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.capacity_; -} -inline void GameServer_Status_PlayerStatus::_internal_set_capacity(::int64_t value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.capacity_ = value; -} - -// repeated string ids = 3; -inline int GameServer_Status_PlayerStatus::_internal_ids_size() const { - return _internal_ids().size(); -} -inline int GameServer_Status_PlayerStatus::ids_size() const { - return _internal_ids_size(); -} -inline void GameServer_Status_PlayerStatus::clear_ids() { - ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_.ids_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); -} -inline ::std::string* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::add_ids() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_ids()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@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 - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) - return _internal_ids().Get(index); -} -inline ::std::string* PROTOBUF_NONNULL 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); -} -template -inline void GameServer_Status_PlayerStatus::set_ids(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_ids()->Mutable(index), - ::std::forward(value), args... ); - // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) -} -template -inline void GameServer_Status_PlayerStatus::add_ids(Arg_&& value, Args_... args) { - ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_ids(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& 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 ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL -GameServer_Status_PlayerStatus::mutable_ids() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.PlayerStatus.ids) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_ids(); -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -GameServer_Status_PlayerStatus::_internal_ids() const { - ::google::protobuf::internal::TSanRead(&_impl_); - return _impl_.ids_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL -GameServer_Status_PlayerStatus::_internal_mutable_ids() { - ::google::protobuf::internal::TSanRead(&_impl_); - return &_impl_.ids_; -} - -// ------------------------------------------------------------------- - // GameServer_Status_CounterStatus // int64 count = 1; inline void GameServer_Status_CounterStatus::clear_count() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::int64_t GameServer_Status_CounterStatus::count() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.CounterStatus.count) @@ -4602,7 +3998,7 @@ inline ::int64_t GameServer_Status_CounterStatus::count() const { } inline void GameServer_Status_CounterStatus::set_count(::int64_t value) { _internal_set_count(value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.count) } inline ::int64_t GameServer_Status_CounterStatus::_internal_count() const { @@ -4618,7 +4014,7 @@ inline void GameServer_Status_CounterStatus::_internal_set_count(::int64_t value inline void GameServer_Status_CounterStatus::clear_capacity() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.capacity_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline ::int64_t GameServer_Status_CounterStatus::capacity() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.CounterStatus.capacity) @@ -4626,7 +4022,7 @@ inline ::int64_t GameServer_Status_CounterStatus::capacity() const { } inline void GameServer_Status_CounterStatus::set_capacity(::int64_t value) { _internal_set_capacity(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.capacity) } inline ::int64_t GameServer_Status_CounterStatus::_internal_capacity() const { @@ -4646,7 +4042,7 @@ inline void GameServer_Status_CounterStatus::_internal_set_capacity(::int64_t va inline void GameServer_Status_ListStatus::clear_capacity() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.capacity_ = ::int64_t{0}; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline ::int64_t GameServer_Status_ListStatus::capacity() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.ListStatus.capacity) @@ -4654,7 +4050,7 @@ inline ::int64_t GameServer_Status_ListStatus::capacity() const { } inline void GameServer_Status_ListStatus::set_capacity(::int64_t value) { _internal_set_capacity(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.ListStatus.capacity) } inline ::int64_t GameServer_Status_ListStatus::_internal_capacity() const { @@ -4676,15 +4072,11 @@ inline int GameServer_Status_ListStatus::values_size() const { inline void GameServer_Status_ListStatus::clear_values() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.values_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_ListStatus::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_values()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_values()->Add(); // @@protoc_insertion_point(field_add_mutable:agones.dev.sdk.GameServer.Status.ListStatus.values) return _s; } @@ -4700,19 +4092,16 @@ inline ::std::string* PROTOBUF_NONNULL GameServer_Status_ListStatus::mutable_val } template inline void GameServer_Status_ListStatus::set_values(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_values()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_values()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.ListStatus.values) } template inline void GameServer_Status_ListStatus::add_values(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_values(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_values(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& GameServer_Status_ListStatus::values() @@ -4722,7 +4111,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& GameServer_Sta } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL GameServer_Status_ListStatus::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ListStatus.values) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_values(); @@ -4750,7 +4138,7 @@ GameServer_Status_ListStatus::_internal_mutable_values() { inline void GameServer_Status::clear_state() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.state_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& GameServer_Status::state() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4760,13 +4148,12 @@ inline const ::std::string& GameServer_Status::state() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_state(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.state_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.state) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::mutable_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_state(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.state) return _s; @@ -4777,19 +4164,21 @@ inline const ::std::string& GameServer_Status::_internal_state() const { } inline void GameServer_Status::_internal_set_state(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.state_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_state() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.state_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_state() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.state) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.state_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.state_.Set("", GetArena()); @@ -4799,9 +4188,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_state() { inline void GameServer_Status::set_allocated_state(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.state_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.state_.IsDefault()) { @@ -4814,7 +4203,7 @@ inline void GameServer_Status::set_allocated_state(::std::string* PROTOBUF_NULLA inline void GameServer_Status::clear_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& GameServer_Status::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4824,13 +4213,12 @@ inline const ::std::string& GameServer_Status::address() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.address) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.address) return _s; @@ -4841,19 +4229,21 @@ inline const ::std::string& GameServer_Status::_internal_address() const { } inline void GameServer_Status::_internal_set_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_address() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.address) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.address_.Set("", GetArena()); @@ -4863,9 +4253,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_address() { inline void GameServer_Status::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { @@ -4884,25 +4274,27 @@ inline int GameServer_Status::addresses_size() const { inline void GameServer_Status::clear_addresses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.addresses_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); -} -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().Get(index); } inline ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL GameServer_Status::mutable_addresses() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.addresses) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_addresses(); +} +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().Get(index); +} inline ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL GameServer_Status::add_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::agones::dev::sdk::GameServer_Status_Address* _add = - _internal_mutable_addresses()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::agones::dev::sdk::GameServer_Status_Address* _add = _internal_mutable_addresses()->Add(); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.addresses) return _add; } @@ -4911,13 +4303,6 @@ inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.addresses) return _internal_addresses(); } -inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL -GameServer_Status::mutable_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); - // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.addresses) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_addresses(); -} inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& GameServer_Status::_internal_addresses() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -4939,25 +4324,27 @@ inline int GameServer_Status::ports_size() const { inline void GameServer_Status::clear_ports() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ports_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); -} -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().Get(index); } inline ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL GameServer_Status::mutable_ports() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ports) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_ports(); +} +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().Get(index); +} inline ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL GameServer_Status::add_ports() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::agones::dev::sdk::GameServer_Status_Port* _add = - _internal_mutable_ports()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::agones::dev::sdk::GameServer_Status_Port* _add = _internal_mutable_ports()->Add(); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ports) return _add; } @@ -4966,13 +4353,6 @@ inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.ports) return _internal_ports(); } -inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL -GameServer_Status::mutable_ports() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ports) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_ports(); -} inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& GameServer_Status::_internal_ports() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -4984,104 +4364,6 @@ GameServer_Status::_internal_mutable_ports() { return &_impl_.ports_; } -// .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; -inline bool GameServer_Status::has_players() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); - PROTOBUF_ASSUME(!value || _impl_.players_ != nullptr); - return value; -} -inline void GameServer_Status::clear_players() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.players_ != nullptr) _impl_.players_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); -} -inline const ::agones::dev::sdk::GameServer_Status_PlayerStatus& GameServer_Status::_internal_players() const { - ::google::protobuf::internal::TSanRead(&_impl_); - const ::agones::dev::sdk::GameServer_Status_PlayerStatus* p = _impl_.players_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Status_PlayerStatus>(&::agones::dev::sdk::GameServer_Status_PlayerStatus_globals_); -} -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* PROTOBUF_NULLABLE value) { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (GetArena() == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.players_); - } - _impl_.players_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status_PlayerStatus*>(value); - if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Status.players) -} -inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE GameServer_Status::release_players() { - ::google::protobuf::internal::TSanWrite(&_impl_); - - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - ::agones::dev::sdk::GameServer_Status_PlayerStatus* released = _impl_.players_; - _impl_.players_ = nullptr; - if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { - auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released); - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - if (GetArena() == nullptr) { - delete old; - } - } else { - if (GetArena() != nullptr) { - released = ::google::protobuf::internal::DuplicateIfNonNull(released); - } - } - return released; -} -inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NULLABLE GameServer_Status::unsafe_arena_release_players() { - ::google::protobuf::internal::TSanWrite(&_impl_); - // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.players) - - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - ::agones::dev::sdk::GameServer_Status_PlayerStatus* temp = _impl_.players_; - _impl_.players_ = nullptr; - return temp; -} -inline ::agones::dev::sdk::GameServer_Status_PlayerStatus* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_players() { - ::google::protobuf::internal::TSanWrite(&_impl_); - if (_impl_.players_ == nullptr) { - 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* PROTOBUF_NONNULL GameServer_Status::mutable_players() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - ::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* PROTOBUF_NULLABLE value) { - ::google::protobuf::Arena* message_arena = GetArena(); - ::google::protobuf::internal::TSanWrite(&_impl_); - if (message_arena == nullptr) { - delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.players_); - } - - if (value != nullptr) { - ::google::protobuf::Arena* submessage_arena = value->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); - } - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); - } - - _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 _internal_counters().size(); @@ -5092,23 +4374,21 @@ inline int GameServer_Status::counters_size() const { inline void GameServer_Status::clear_counters() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.counters_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } -inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& GameServer_Status::_internal_counters() const { +inline const ::google::protobuf::Map& GameServer_Status::_internal_counters() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.counters_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& GameServer_Status::counters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_counters() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_counters() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.counters_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL GameServer_Status::mutable_counters() +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::mutable_counters() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.counters) return _internal_mutable_counters(); } @@ -5123,23 +4403,21 @@ inline int GameServer_Status::lists_size() const { inline void GameServer_Status::clear_lists() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lists_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } -inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& GameServer_Status::_internal_lists() const { +inline const ::google::protobuf::Map& GameServer_Status::_internal_lists() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.lists_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& GameServer_Status::lists() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_lists() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_lists() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.lists_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL GameServer_Status::mutable_lists() +inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::mutable_lists() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.lists) return _internal_mutable_lists(); } @@ -5150,19 +4428,19 @@ inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Sta // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; inline bool GameServer::has_object_meta() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); + bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; PROTOBUF_ASSUME(!value || _impl_.object_meta_ != nullptr); return value; } inline void GameServer::clear_object_meta() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.object_meta_ != nullptr) _impl_.object_meta_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::_internal_object_meta() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::agones::dev::sdk::GameServer_ObjectMeta* p = _impl_.object_meta_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_ObjectMeta>(&::agones::dev::sdk::GameServer_ObjectMeta_globals_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_); } 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) @@ -5176,16 +4454,16 @@ inline void GameServer::unsafe_arena_set_allocated_object_meta( } _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.object_meta) } inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE GameServer::release_object_meta() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_ObjectMeta* released = _impl_.object_meta_; _impl_.object_meta_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -5205,7 +4483,7 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE GameServer:: ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.object_meta) - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; ::agones::dev::sdk::GameServer_ObjectMeta* temp = _impl_.object_meta_; _impl_.object_meta_ = nullptr; return temp; @@ -5220,7 +4498,7 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL GameServer::_ } inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL GameServer::mutable_object_meta() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _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; @@ -5237,9 +4515,9 @@ inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); @@ -5248,19 +4526,19 @@ inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer // .agones.dev.sdk.GameServer.Spec spec = 2; inline bool GameServer::has_spec() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.spec_ != nullptr); return value; } inline void GameServer::clear_spec() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.spec_ != nullptr) _impl_.spec_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::_internal_spec() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::agones::dev::sdk::GameServer_Spec* p = _impl_.spec_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Spec>(&::agones::dev::sdk::GameServer_Spec_globals_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Spec_default_instance_); } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::spec() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.spec) @@ -5274,16 +4552,16 @@ inline void GameServer::unsafe_arena_set_allocated_spec( } _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.spec) } inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE GameServer::release_spec() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::agones::dev::sdk::GameServer_Spec* released = _impl_.spec_; _impl_.spec_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -5303,7 +4581,7 @@ inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE GameServer::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.spec) - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::agones::dev::sdk::GameServer_Spec* temp = _impl_.spec_; _impl_.spec_ = nullptr; return temp; @@ -5318,7 +4596,7 @@ inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL GameServer::_intern } inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL GameServer::mutable_spec() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _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; @@ -5335,9 +4613,9 @@ inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); @@ -5346,19 +4624,19 @@ inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* // .agones.dev.sdk.GameServer.Status status = 3; inline bool GameServer::has_status() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); return value; } inline void GameServer::clear_status() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::agones::dev::sdk::GameServer_Status& GameServer::_internal_status() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::agones::dev::sdk::GameServer_Status* p = _impl_.status_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Status>(&::agones::dev::sdk::GameServer_Status_globals_); + return p != nullptr ? *p : reinterpret_cast(::agones::dev::sdk::_GameServer_Status_default_instance_); } inline const ::agones::dev::sdk::GameServer_Status& GameServer::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.status) @@ -5372,16 +4650,16 @@ inline void GameServer::unsafe_arena_set_allocated_status( } _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.status) } inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE GameServer::release_status() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; ::agones::dev::sdk::GameServer_Status* released = _impl_.status_; _impl_.status_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -5401,7 +4679,7 @@ inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE GameServer::unsa ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.status) - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; ::agones::dev::sdk::GameServer_Status* temp = _impl_.status_; _impl_.status_ = nullptr; return temp; @@ -5416,7 +4694,7 @@ inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL GameServer::_inte } inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL GameServer::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _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; @@ -5433,9 +4711,9 @@ inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Stat if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); @@ -5455,6 +4733,5 @@ inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Stat // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -// clang-format on #endif // sdk_2eproto_2epb_2eh diff --git a/sdks/cpp/src/agones/sdk.pb.cc b/sdks/cpp/src/agones/sdk.pb.cc index 888c503dce..480bad09df 100644 --- a/sdks/cpp/src/agones/sdk.pb.cc +++ b/sdks/cpp/src/agones/sdk.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: sdk.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #include "sdk.pb.h" @@ -24,7 +24,6 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -40,105 +39,11 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; -#ifdef PROTOBUF_MESSAGE_GLOBALS -namespace { -PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData - file_reflection_data[] = { - // ::agones::dev::sdk::Empty - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::KeyValue - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::Duration - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_ObjectMeta - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Spec_Health - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Spec - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_Address - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_Port - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_PlayerStatus - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_CounterStatus - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_ListStatus - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer_Status - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, - // ::agones::dev::sdk::GameServer - {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, -}; -} // namespace -#endif namespace agones { namespace dev { namespace sdk { -class KeyValue::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_); -}; - -constexpr KeyValue::ParseTableT_ KeyValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\3\5\0\0\0\0\0" - "agones.dev.sdk.KeyValue" - "key" - "value" - }}, - }; -} - inline constexpr KeyValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( @@ -149,151 +54,26 @@ inline constexpr KeyValue::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr KeyValue::KeyValue(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL KeyValue::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) KeyValue(arena); -} -constexpr auto KeyValue::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(KeyValue), alignof(KeyValue)); -} -constexpr auto KeyValue::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &KeyValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR KeyValue::KeyValue(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &KeyValue::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &KeyValue::ByteSizeLong, - &KeyValue::_InternalSerialize, + : ::google::protobuf::Message(KeyValue_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[1], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct KeyValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr KeyValueGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - KeyValue_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(KeyValue::InternalGenerateClassData_( - _default, &KeyValue_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~KeyValueGlobalsTypeInternal() {} +struct KeyValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR KeyValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~KeyValueDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) KeyValue _default; + KeyValue _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(KeyValueGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST KeyValueGlobalsTypeInternal KeyValue_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* KeyValue_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return KeyValue_globals_.GetClassData(); -#else - return KeyValue_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status_Port::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_); -}; - -constexpr GameServer_Status_Port::ParseTableT_ GameServer_Status_Port::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\45\4\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.Port" - "name" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_; inline constexpr GameServer_Status_Port::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( @@ -302,1952 +82,280 @@ inline constexpr GameServer_Status_Port::Impl_::Impl_( port_{0} {} template -constexpr GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_Port::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_Port(arena); -} -constexpr auto GameServer_Status_Port::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Port), alignof(GameServer_Status_Port)); -} -constexpr auto GameServer_Status_Port::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_Port::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_Port::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Port::ByteSizeLong, - &GameServer_Status_Port::_InternalSerialize, + : ::google::protobuf::Message(GameServer_Status_Port_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[9], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct GameServer_Status_PortGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_PortGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_Port_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_Port::InternalGenerateClassData_( - _default, &GameServer_Status_Port_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_PortGlobalsTypeInternal() {} +struct GameServer_Status_PortDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_PortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_PortDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_Port _default; + GameServer_Status_Port _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_PortGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; + +inline constexpr GameServer_Status_ListStatus::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + values_{}, + capacity_{::int64_t{0}} {} + +template +PROTOBUF_CONSTEXPR GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_Port_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_Port_globals_.GetClassData(); -#else - return GameServer_Status_Port_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace + : ::google::protobuf::Message(GameServer_Status_ListStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status_PlayerStatus::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._has_bits_); -}; - -constexpr GameServer_Status_PlayerStatus::ParseTableT_ GameServer_Status_PlayerStatus::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967288, // skipmap - offsetof(ParseTableT_, field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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_), 1>(), - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_)}}, - // int64 capacity = 2; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_PlayerStatus, _impl_.capacity_), 2>(), - {16, 2, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_)}}, - // repeated string ids = 3; - {::_pbi::TcParser::FastUR1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 count = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.count_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 capacity = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // repeated string ids = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_.ids_), _Internal::kHasBitsOffset + 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" - }}, - }; + _impl_(::_pbi::ConstantInitialized()) { } +struct GameServer_Status_ListStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_ListStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_ListStatusDefaultTypeInternal() {} + union { + GameServer_Status_ListStatus _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; -inline constexpr GameServer_Status_PlayerStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr GameServer_Status_CounterStatus::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - ids_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_PlayerStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_)>() - } - , count_{::int64_t{0}}, capacity_{::int64_t{0}} {} template -constexpr GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_PlayerStatus(arena); -} -constexpr auto GameServer_Status_PlayerStatus::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_PlayerStatus), alignof(GameServer_Status_PlayerStatus)); -} -constexpr auto GameServer_Status_PlayerStatus::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_PlayerStatus::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_PlayerStatus::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_PlayerStatus::ByteSizeLong, - &GameServer_Status_PlayerStatus::_InternalSerialize, + : ::google::protobuf::Message(GameServer_Status_CounterStatus_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatus, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[10], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct GameServer_Status_PlayerStatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_PlayerStatusGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_PlayerStatus_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_PlayerStatus::InternalGenerateClassData_( - _default, &GameServer_Status_PlayerStatus_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_PlayerStatusGlobalsTypeInternal() {} +struct GameServer_Status_CounterStatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_CounterStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_CounterStatusDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_PlayerStatus _default; + GameServer_Status_CounterStatus _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_PlayerStatusGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_PlayerStatusGlobalsTypeInternal GameServer_Status_PlayerStatus_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; + +inline constexpr GameServer_Status_Address::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + type_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()), + address_( + &::google::protobuf::internal::fixed_address_empty_string, + ::_pbi::ConstantInitialized()) {} + +template +PROTOBUF_CONSTEXPR GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_PlayerStatus_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_PlayerStatus_globals_.GetClassData(); -#else - return GameServer_Status_PlayerStatus_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace + : ::google::protobuf::Message(GameServer_Status_Address_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status_ListStatus::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_); -}; - -constexpr GameServer_Status_ListStatus::ParseTableT_ GameServer_Status_ListStatus::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_)}}, - // int64 capacity = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_ListStatus, _impl_.capacity_), 1>(), - {8, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 capacity = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // repeated string values = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), _Internal::kHasBitsOffset + 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" - }}, - }; + _impl_(::_pbi::ConstantInitialized()) { } +struct GameServer_Status_AddressDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_AddressDefaultTypeInternal() {} + union { + GameServer_Status_Address _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; -inline constexpr GameServer_Status_ListStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr GameServer_Spec_Health::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - values_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_ListStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() - } - , - capacity_{::int64_t{0}} {} + disabled_{false}, + period_seconds_{0}, + failure_threshold_{0}, + initial_delay_seconds_{0} {} template -constexpr GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data + : ::google::protobuf::Message(GameServer_Spec_Health_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_ListStatus::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_ListStatus(arena); -} -constexpr auto GameServer_Status_ListStatus::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListStatus), alignof(GameServer_Status_ListStatus)); + _impl_(::_pbi::ConstantInitialized()) { } -constexpr auto GameServer_Status_ListStatus::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_ListStatus::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_ListStatus::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_ListStatus::ByteSizeLong, - &GameServer_Status_ListStatus::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[12], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS +struct GameServer_Spec_HealthDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Spec_HealthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Spec_HealthDefaultTypeInternal() {} + union { + GameServer_Spec_Health _instance; }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; +template +PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry() { } -struct GameServer_Status_ListStatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_ListStatusGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_ListStatus_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_ListStatus::InternalGenerateClassData_( - _default, &GameServer_Status_ListStatus_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_ListStatusGlobalsTypeInternal() {} +#endif // PROTOBUF_CUSTOM_VTABLE +struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_ListStatus _default; + GameServer_ObjectMeta_LabelsEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatusGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); + 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) #if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_ListStatus_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_ListStatus_globals_.GetClassData(); -#else - return GameServer_Status_ListStatus_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status_CounterStatus::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_); +struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} + union { + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _instance; + }; }; -constexpr GameServer_Status_CounterStatus::ParseTableT_ GameServer_Status_CounterStatus::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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_), 1>(), - {16, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, - // int64 count = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 count = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 capacity = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : ::google::protobuf::internal::ZeroFieldsBase(Empty_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::internal::ZeroFieldsBase() { } +#endif // PROTOBUF_CUSTOM_VTABLE +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_; -inline constexpr GameServer_Status_CounterStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr Duration::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - count_{::int64_t{0}}, - capacity_{::int64_t{0}} {} + seconds_{::int64_t{0}} {} template -constexpr GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR Duration::Duration(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data + : ::google::protobuf::Message(Duration_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_CounterStatus::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_CounterStatus(arena); -} -constexpr auto GameServer_Status_CounterStatus::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Status_CounterStatus), alignof(GameServer_Status_CounterStatus)); + _impl_(::_pbi::ConstantInitialized()) { } -constexpr auto GameServer_Status_CounterStatus::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_CounterStatus::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_CounterStatus::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_CounterStatus::ByteSizeLong, - &GameServer_Status_CounterStatus::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[11], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS +struct DurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR DurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~DurationDefaultTypeInternal() {} + union { + Duration _instance; }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DurationDefaultTypeInternal _Duration_default_instance_; +template +PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : GameServer_Status_ListsEntry_DoNotUse::MapEntry(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : GameServer_Status_ListsEntry_DoNotUse::MapEntry() { } -struct GameServer_Status_CounterStatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_CounterStatusGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_CounterStatus_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_CounterStatus::InternalGenerateClassData_( - _default, &GameServer_Status_CounterStatus_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_CounterStatusGlobalsTypeInternal() {} +#endif // PROTOBUF_CUSTOM_VTABLE +struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_CounterStatus _default; + GameServer_Status_ListsEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatusGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); + 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) #if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_CounterStatus_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_CounterStatus_globals_.GetClassData(); -#else - return GameServer_Status_CounterStatus_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + : GameServer_Status_CountersEntry_DoNotUse::MapEntry(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : GameServer_Status_CountersEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status_Address::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_); +struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() {} + union { + GameServer_Status_CountersEntry_DoNotUse _instance; + }; }; -constexpr GameServer_Status_Address::ParseTableT_ GameServer_Status_Address::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, - // string type = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string address = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\4\7\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.Address" - "type" - "address" - }}, - }; -} - - -inline constexpr GameServer_Status_Address::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - type_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - address_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} - -template -constexpr GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_Address::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_Address(arena); -} -constexpr auto GameServer_Status_Address::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Address), alignof(GameServer_Status_Address)); -} -constexpr auto GameServer_Status_Address::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_Address::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_Address::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Address::ByteSizeLong, - &GameServer_Status_Address::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[8], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_Status_AddressGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_AddressGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_Address_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_Address::InternalGenerateClassData_( - _default, &GameServer_Status_Address_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_AddressGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_Address _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_AddressGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_Address_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_Address_globals_.GetClassData(); -#else - return GameServer_Status_Address_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Spec_Health::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_); -}; - -constexpr GameServer_Spec_Health::ParseTableT_ GameServer_Spec_Health::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_), - 0, // no _extensions_ - 4, 24, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967280, // skipmap - offsetof(ParseTableT_, field_entries), - 4, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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_), 3>(), - {32, 3, 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, 0, 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_), 1>(), - {16, 1, 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_), 2>(), - {24, 2, 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 period_seconds = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 failure_threshold = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 initial_delay_seconds = 4; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, - }; -} - - -inline constexpr GameServer_Spec_Health::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - disabled_{false}, - period_seconds_{0}, - failure_threshold_{0}, - initial_delay_seconds_{0} {} - -template -constexpr GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Spec_Health::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Spec_Health(arena); -} -constexpr auto GameServer_Spec_Health::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec_Health), alignof(GameServer_Spec_Health)); -} -constexpr auto GameServer_Spec_Health::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Spec_Health::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Spec_Health::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec_Health::ByteSizeLong, - &GameServer_Spec_Health::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[6], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_Spec_HealthGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Spec_HealthGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Spec_Health_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Spec_Health::InternalGenerateClassData_( - _default, &GameServer_Spec_Health_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Spec_HealthGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Spec_Health _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Spec_HealthGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Spec_Health_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Spec_Health_globals_.GetClassData(); -#else - return GameServer_Spec_Health_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse::ParseTableT_ GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\60\3\5\0\0\0\0\0" - "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry" - "key" - "value" - }}, - }; -} - -template -constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta_LabelsEntry_DoNotUse(arena); -} -constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_LabelsEntry_DoNotUse), alignof(GameServer_ObjectMeta_LabelsEntry_DoNotUse)); -} -constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta_LabelsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_ObjectMeta_LabelsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[4], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_( - _default, &GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta_LabelsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_.GetClassData(); -#else - return GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ParseTableT_ GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\65\3\5\0\0\0\0\0" - "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry" - "key" - "value" - }}, - }; -} - -template -constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(arena); -} -constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse), alignof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)); -} -constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[3], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_( - _default, &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_.GetClassData(); -#else - return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Empty::_Internal { - public: -}; - -constexpr Empty::ParseTableT_ Empty::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Empty, - _impl_._cached_size_), // no hasbits - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967295, // skipmap - offsetof(ParseTableT_, field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::Empty>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, - }; -} - -template -constexpr Empty::Empty(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::internal::ZeroFieldsBase( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Empty::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Empty(arena); -} -constexpr auto Empty::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), alignof(Empty)); -} -constexpr auto Empty::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Empty::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Empty::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, - &Empty::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[0], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct EmptyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr EmptyGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Empty_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Empty::InternalGenerateClassData_( - _default, &Empty_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~EmptyGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Empty _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(EmptyGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST EmptyGlobalsTypeInternal Empty_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Empty_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Empty_globals_.GetClassData(); -#else - return Empty_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Duration::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_); -}; - -constexpr Duration::ParseTableT_ Duration::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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_), 0>(), - {8, 0, 0, - PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 seconds = 1; - {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, - }; -} - - -inline constexpr Duration::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - seconds_{::int64_t{0}} {} - -template -constexpr Duration::Duration(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Duration::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Duration(arena); -} -constexpr auto Duration::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration), alignof(Duration)); -} -constexpr auto Duration::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Duration::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Duration::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Duration::ByteSizeLong, - &Duration::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[2], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct DurationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr DurationGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Duration_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Duration::InternalGenerateClassData_( - _default, &Duration_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~DurationGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Duration _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(DurationGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST DurationGlobalsTypeInternal Duration_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Duration_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Duration_globals_.GetClassData(); -#else - return Duration_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr GameServer_Status_ListsEntry_DoNotUse::ParseTableT_ GameServer_Status_ListsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_ListStatus_globals_}, - #endif - }}, - {{ - "\53\3\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.ListsEntry" - "key" - }}, - }; -} - -template -constexpr GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : GameServer_Status_ListsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_ListsEntry_DoNotUse(arena); -} -constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListsEntry_DoNotUse), alignof(GameServer_Status_ListsEntry_DoNotUse)); -} -constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_ListsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_ListsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_Status_ListsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[14], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_( - _default, &GameServer_Status_ListsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_ListsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_ListsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_ListsEntry_DoNotUse_globals_.GetClassData(); -#else - return GameServer_Status_ListsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr GameServer_Status_CountersEntry_DoNotUse::ParseTableT_ GameServer_Status_CountersEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_}, - #endif - }}, - {{ - "\56\3\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.CountersEntry" - "key" - }}, - }; -} - -template -constexpr GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : GameServer_Status_CountersEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_CountersEntry_DoNotUse(arena); -} -constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_CountersEntry_DoNotUse), alignof(GameServer_Status_CountersEntry_DoNotUse)); -} -constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status_CountersEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_CountersEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_Status_CountersEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[13], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_( - _default, &GameServer_Status_CountersEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_CountersEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_CountersEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_CountersEntry_DoNotUse_globals_.GetClassData(); -#else - return GameServer_Status_CountersEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Spec::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); -}; - -constexpr GameServer_Spec::ParseTableT_ GameServer_Spec::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Spec_Health_globals_}, - #endif - }}, - {{ - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal _GameServer_Status_CountersEntry_DoNotUse_default_instance_; inline constexpr GameServer_Spec::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, health_{nullptr} {} template -constexpr GameServer_Spec::GameServer_Spec(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR GameServer_Spec::GameServer_Spec(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Spec::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Spec(arena); -} -constexpr auto GameServer_Spec::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec), alignof(GameServer_Spec)); -} -constexpr auto GameServer_Spec::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Spec::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Spec::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec::ByteSizeLong, - &GameServer_Spec::_InternalSerialize, + : ::google::protobuf::Message(GameServer_Spec_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[7], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct GameServer_SpecGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_SpecGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Spec_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Spec::InternalGenerateClassData_( - _default, &GameServer_Spec_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_SpecGlobalsTypeInternal() {} +struct GameServer_SpecDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_SpecDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_SpecDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Spec _default; + GameServer_Spec _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_SpecGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Spec_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Spec_globals_.GetClassData(); -#else - return GameServer_Spec_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_ObjectMeta::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_); -}; - -constexpr GameServer_ObjectMeta::ParseTableT_ GameServer_ObjectMeta::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_), - 0, // no _extensions_ - 9, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294966784, // skipmap - offsetof(ParseTableT_, field_entries), - 9, // num_field_entries - 2, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, - // string namespace = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, - // string uid = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, - // string resource_version = 4; - {::_pbi::TcParser::FastUS1, - {34, 3, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, - // int64 generation = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 4>(), - {40, 4, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, - // int64 creation_timestamp = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 5>(), - {48, 5, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, - // int64 deletion_timestamp = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 6>(), - {56, 6, 0, - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string namespace = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string uid = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_version = 4; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 generation = 5; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 creation_timestamp = 6; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 deletion_timestamp = 7; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // map annotations = 8; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map labels = 9; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 9, 0)}, - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 9, 0)}, - }}, - {{ - "\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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; inline constexpr GameServer_ObjectMeta::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, + annotations_{}, + labels_{}, name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -2262,418 +370,63 @@ inline constexpr GameServer_ObjectMeta::Impl_::Impl_( ::_pbi::ConstantInitialized()), generation_{::int64_t{0}}, creation_timestamp_{::int64_t{0}}, - deletion_timestamp_{::int64_t{0}}, - annotations_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() - } - , - labels_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() - } - {} + deletion_timestamp_{::int64_t{0}} {} template -constexpr GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta(arena); -} -constexpr auto GameServer_ObjectMeta::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta), alignof(GameServer_ObjectMeta)); -} -constexpr auto GameServer_ObjectMeta::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_ObjectMeta::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_ObjectMeta::ByteSizeLong, - &GameServer_ObjectMeta::_InternalSerialize, + : ::google::protobuf::Message(GameServer_ObjectMeta_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[5], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct GameServer_ObjectMetaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_ObjectMetaGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_ObjectMeta_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_ObjectMeta::InternalGenerateClassData_( - _default, &GameServer_ObjectMeta_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_ObjectMetaGlobalsTypeInternal() {} + _impl_(::_pbi::ConstantInitialized()) { +} +struct GameServer_ObjectMetaDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_ObjectMetaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_ObjectMetaDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta _default; + GameServer_ObjectMeta _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMetaGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_ObjectMeta_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_ObjectMeta_globals_.GetClassData(); -#else - return GameServer_ObjectMeta_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer_Status::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); -}; - -constexpr GameServer_Status::ParseTableT_ GameServer_Status::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967168, // skipmap - offsetof(ParseTableT_, field_entries), - 7, // num_field_entries - 7, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 2, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, - // string address = 2; - {::_pbi::TcParser::FastUS1, - {18, 3, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_)}}, - // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - {::_pbi::TcParser::FastMtR1, - {26, 0, 0, - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_)}}, - // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; - {::_pbi::TcParser::FastMtS1, - {34, 4, 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, 1, 2, - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string state = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string address = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_), _Internal::kHasBitsOffset + 0, 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 + 4, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map counters = 5; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_), _Internal::kHasBitsOffset + 5, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map lists = 6; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_), _Internal::kHasBitsOffset + 6, 5, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_), _Internal::kHasBitsOffset + 1, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_Port_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_PlayerStatus>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_PlayerStatus_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_Address_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_ListStatus_globals_}, - #endif - }}, - {{ - "\40\5\7\0\0\10\5\0" - "agones.dev.sdk.GameServer.Status" - "state" - "address" - "counters" - "lists" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; inline constexpr GameServer_Status::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - ports_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() - } - , - addresses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() - } - , + 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}, - counters_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() - } - , - lists_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() - } - {} + ::_pbi::ConstantInitialized()) {} template -constexpr GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer_Status::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status(arena); -} -constexpr auto GameServer_Status::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status), alignof(GameServer_Status)); -} -constexpr auto GameServer_Status::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer_Status::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status::ByteSizeLong, - &GameServer_Status::_InternalSerialize, + : ::google::protobuf::Message(GameServer_Status_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[15], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct GameServer_StatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServer_StatusGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_Status_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer_Status::InternalGenerateClassData_( - _default, &GameServer_Status_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServer_StatusGlobalsTypeInternal() {} +struct GameServer_StatusDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServer_StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServer_StatusDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer_Status _default; + GameServer_Status _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServer_StatusGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_Status_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_Status_globals_.GetClassData(); -#else - return GameServer_Status_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class GameServer::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); -}; - -constexpr GameServer::ParseTableT_ GameServer::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967288, // skipmap - offsetof(ParseTableT_, field_entries), - 3, // num_field_entries - 3, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_ObjectMeta_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Spec_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_globals_}, - #endif - }}, - {{ - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; inline constexpr GameServer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, object_meta_{nullptr}, @@ -2681,103 +434,30 @@ inline constexpr GameServer::Impl_::Impl_( status_{nullptr} {} template -constexpr GameServer::GameServer(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL GameServer::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer(arena); -} -constexpr auto GameServer::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer), alignof(GameServer)); -} -constexpr auto GameServer::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &GameServer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR GameServer::GameServer(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer::ByteSizeLong, - &GameServer::_InternalSerialize, + : ::google::protobuf::Message(GameServer_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[16], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct GameServerGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr GameServerGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - GameServer_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(GameServer::InternalGenerateClassData_( - _default, &GameServer_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~GameServerGlobalsTypeInternal() {} +struct GameServerDefaultTypeInternal { + PROTOBUF_CONSTEXPR GameServerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~GameServerDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) GameServer _default; + GameServer _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(GameServerGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServerGlobalsTypeInternal GameServer_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* GameServer_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return GameServer_globals_.GetClassData(); -#else - return GameServer_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServerDefaultTypeInternal _GameServer_default_instance_; } // namespace sdk } // namespace dev } // namespace agones -static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_sdk_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_sdk_2eproto = nullptr; const ::uint32_t TableStruct_sdk_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -2828,8 +508,8 @@ const ::uint32_t 4, 5, 6, - 7, - 8, + ~0u, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_._has_bits_), 7, // hasbit index offset @@ -2861,15 +541,6 @@ const ::uint32_t 0, 1, 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_._has_bits_), - 6, // hasbit index offset - 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_), - 1, - 2, - 0, - 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_._has_bits_), 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CounterStatus, _impl_.count_), @@ -2881,8 +552,8 @@ const ::uint32_t 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.capacity_), PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_), - 1, 0, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -2899,21 +570,19 @@ const ::uint32_t 1, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_._has_bits_), - 10, // hasbit index offset + 9, // hasbit index offset 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_), - 2, - 3, - 1, 0, - 4, - 5, - 6, + 1, + ~0u, + ~0u, + ~0u, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_._has_bits_), 6, // hasbit index offset @@ -2937,33 +606,30 @@ static const ::_pbi::MigrationSchema {59, sizeof(::agones::dev::sdk::GameServer_Spec)}, {64, sizeof(::agones::dev::sdk::GameServer_Status_Address)}, {71, sizeof(::agones::dev::sdk::GameServer_Status_Port)}, - {78, sizeof(::agones::dev::sdk::GameServer_Status_PlayerStatus)}, - {87, sizeof(::agones::dev::sdk::GameServer_Status_CounterStatus)}, - {94, sizeof(::agones::dev::sdk::GameServer_Status_ListStatus)}, - {101, sizeof(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse)}, - {108, sizeof(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse)}, - {115, sizeof(::agones::dev::sdk::GameServer_Status)}, - {132, sizeof(::agones::dev::sdk::GameServer)}, + {78, sizeof(::agones::dev::sdk::GameServer_Status_CounterStatus)}, + {85, sizeof(::agones::dev::sdk::GameServer_Status_ListStatus)}, + {92, sizeof(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse)}, + {99, sizeof(::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse)}, + {106, sizeof(::agones::dev::sdk::GameServer_Status)}, + {121, sizeof(::agones::dev::sdk::GameServer)}, }; -static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const - file_message_globals[] = { - &::agones::dev::sdk::Empty_globals_, - &::agones::dev::sdk::KeyValue_globals_, - &::agones::dev::sdk::Duration_globals_, - &::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_, - &::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_, - &::agones::dev::sdk::GameServer_ObjectMeta_globals_, - &::agones::dev::sdk::GameServer_Spec_Health_globals_, - &::agones::dev::sdk::GameServer_Spec_globals_, - &::agones::dev::sdk::GameServer_Status_Address_globals_, - &::agones::dev::sdk::GameServer_Status_Port_globals_, - &::agones::dev::sdk::GameServer_Status_PlayerStatus_globals_, - &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_, - &::agones::dev::sdk::GameServer_Status_ListStatus_globals_, - &::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse_globals_, - &::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse_globals_, - &::agones::dev::sdk::GameServer_Status_globals_, - &::agones::dev::sdk::GameServer_globals_, +static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { + &::agones::dev::sdk::_Empty_default_instance_._instance, + &::agones::dev::sdk::_KeyValue_default_instance_._instance, + &::agones::dev::sdk::_Duration_default_instance_._instance, + &::agones::dev::sdk::_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, + &::agones::dev::sdk::_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, + &::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Spec_Health_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Spec_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_Address_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_Port_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_CounterStatus_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_ListStatus_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, + &::agones::dev::sdk::_GameServer_Status_default_instance_._instance, + &::agones::dev::sdk::_GameServer_default_instance_._instance, }; const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -2971,7 +637,7 @@ const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIAB "annotations.proto\032.protoc-gen-openapiv2/" "options/annotations.proto\"\007\n\005Empty\"&\n\010Ke" "yValue\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\033\n\010Du" - "ration\022\017\n\007seconds\030\001 \001(\003\"\213\014\n\nGameServer\022:" + "ration\022\017\n\007seconds\030\001 \001(\003\"\233\013\n\nGameServer\022:" "\n\013object_meta\030\001 \001(\0132%.agones.dev.sdk.Gam" "eServer.ObjectMeta\022-\n\004spec\030\002 \001(\0132\037.agone" "s.dev.sdk.GameServer.Spec\0221\n\006status\030\003 \001(" @@ -2990,48 +656,46 @@ const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIAB ".sdk.GameServer.Spec.Health\032{\n\006Health\022\037\n" "\010disabled\030\001 \001(\010B\r\222A\n\242\002\007boolean\022\026\n\016period" "_seconds\030\002 \001(\005\022\031\n\021failure_threshold\030\003 \001(" - "\005\022\035\n\025initial_delay_seconds\030\004 \001(\005\032\212\006\n\006Sta" + "\005\022\035\n\025initial_delay_seconds\030\004 \001(\005\032\232\005\n\006Sta" "tus\022\r\n\005state\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\022<\n\ta" "ddresses\030\007 \003(\0132).agones.dev.sdk.GameServ" "er.Status.Address\0225\n\005ports\030\003 \003(\0132&.agone" - "s.dev.sdk.GameServer.Status.Port\022\?\n\007play" - "ers\030\004 \001(\0132..agones.dev.sdk.GameServer.St" - "atus.PlayerStatus\022A\n\010counters\030\005 \003(\0132/.ag" - "ones.dev.sdk.GameServer.Status.CountersE" - "ntry\022;\n\005lists\030\006 \003(\0132,.agones.dev.sdk.Gam" - "eServer.Status.ListsEntry\032(\n\007Address\022\014\n\004" - "type\030\001 \001(\t\022\017\n\007address\030\002 \001(\t\032\"\n\004Port\022\014\n\004n" - "ame\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\032<\n\014PlayerStatus\022" - "\r\n\005count\030\001 \001(\003\022\020\n\010capacity\030\002 \001(\003\022\013\n\003ids\030" - "\003 \003(\t\0320\n\rCounterStatus\022\r\n\005count\030\001 \001(\003\022\020\n" - "\010capacity\030\002 \001(\003\032.\n\nListStatus\022\020\n\010capacit" - "y\030\001 \001(\003\022\016\n\006values\030\002 \003(\t\032`\n\rCountersEntry" - "\022\013\n\003key\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.agones.de" - "v.sdk.GameServer.Status.CounterStatus:\0028" - "\001\032Z\n\nListsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 " - "\001(\0132,.agones.dev.sdk.GameServer.Status.L" - "istStatus:\0028\0012\206\006\n\003SDK\022H\n\005Ready\022\025.agones." - "dev.sdk.Empty\032\025.agones.dev.sdk.Empty\"\021\202\323" - "\344\223\002\013\"\006/ready:\001*\022N\n\010Allocate\022\025.agones.dev" - ".sdk.Empty\032\025.agones.dev.sdk.Empty\"\024\202\323\344\223\002" - "\016\"\t/allocate:\001*\022N\n\010Shutdown\022\025.agones.dev" - ".sdk.Empty\032\025.agones.dev.sdk.Empty\"\024\202\323\344\223\002" - "\016\"\t/shutdown:\001*\022L\n\006Health\022\025.agones.dev.s" - "dk.Empty\032\025.agones.dev.sdk.Empty\"\022\202\323\344\223\002\014\"" - "\007/health:\001*(\001\022W\n\rGetGameServer\022\025.agones." - "dev.sdk.Empty\032\032.agones.dev.sdk.GameServe" - "r\"\023\202\323\344\223\002\r\022\013/gameserver\022a\n\017WatchGameServe" - "r\022\025.agones.dev.sdk.Empty\032\032.agones.dev.sd" - "k.GameServer\"\031\202\323\344\223\002\023\022\021/watch/gameserver0" - "\001\022W\n\010SetLabel\022\030.agones.dev.sdk.KeyValue\032" - "\025.agones.dev.sdk.Empty\"\032\202\323\344\223\002\024\032\017/metadat" - "a/label:\001*\022a\n\rSetAnnotation\022\030.agones.dev" - ".sdk.KeyValue\032\025.agones.dev.sdk.Empty\"\037\202\323" - "\344\223\002\031\032\024/metadata/annotation:\001*\022O\n\007Reserve" - "\022\030.agones.dev.sdk.Duration\032\025.agones.dev." - "sdk.Empty\"\023\202\323\344\223\002\r\"\010/reserve:\001*BOZ\005./sdk\222" - "AE\022\034\n\tsdk.proto2\017version not set*\001\0012\020app" - "lication/json:\020application/jsonb\006proto3" + "s.dev.sdk.GameServer.Status.Port\022A\n\010coun" + "ters\030\005 \003(\0132/.agones.dev.sdk.GameServer.S" + "tatus.CountersEntry\022;\n\005lists\030\006 \003(\0132,.ago" + "nes.dev.sdk.GameServer.Status.ListsEntry" + "\032(\n\007Address\022\014\n\004type\030\001 \001(\t\022\017\n\007address\030\002 \001" + "(\t\032\"\n\004Port\022\014\n\004name\030\001 \001(\t\022\014\n\004port\030\002 \001(\005\0320" + "\n\rCounterStatus\022\r\n\005count\030\001 \001(\003\022\020\n\010capaci" + "ty\030\002 \001(\003\032.\n\nListStatus\022\020\n\010capacity\030\001 \001(\003" + "\022\016\n\006values\030\002 \003(\t\032`\n\rCountersEntry\022\013\n\003key" + "\030\001 \001(\t\022>\n\005value\030\002 \001(\0132/.agones.dev.sdk.G" + "ameServer.Status.CounterStatus:\0028\001\032Z\n\nLi" + "stsEntry\022\013\n\003key\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.a" + "gones.dev.sdk.GameServer.Status.ListStat" + "us:\0028\001J\004\010\004\020\005R\007players2\206\006\n\003SDK\022H\n\005Ready\022\025" + ".agones.dev.sdk.Empty\032\025.agones.dev.sdk.E" + "mpty\"\021\202\323\344\223\002\013\"\006/ready:\001*\022N\n\010Allocate\022\025.ag" + "ones.dev.sdk.Empty\032\025.agones.dev.sdk.Empt" + "y\"\024\202\323\344\223\002\016\"\t/allocate:\001*\022N\n\010Shutdown\022\025.ag" + "ones.dev.sdk.Empty\032\025.agones.dev.sdk.Empt" + "y\"\024\202\323\344\223\002\016\"\t/shutdown:\001*\022L\n\006Health\022\025.agon" + "es.dev.sdk.Empty\032\025.agones.dev.sdk.Empty\"" + "\022\202\323\344\223\002\014\"\007/health:\001*(\001\022W\n\rGetGameServer\022\025" + ".agones.dev.sdk.Empty\032\032.agones.dev.sdk.G" + "ameServer\"\023\202\323\344\223\002\r\022\013/gameserver\022a\n\017WatchG" + "ameServer\022\025.agones.dev.sdk.Empty\032\032.agone" + "s.dev.sdk.GameServer\"\031\202\323\344\223\002\023\022\021/watch/gam" + "eserver0\001\022W\n\010SetLabel\022\030.agones.dev.sdk.K" + "eyValue\032\025.agones.dev.sdk.Empty\"\032\202\323\344\223\002\024\032\017" + "/metadata/label:\001*\022a\n\rSetAnnotation\022\030.ag" + "ones.dev.sdk.KeyValue\032\025.agones.dev.sdk.E" + "mpty\"\037\202\323\344\223\002\031\032\024/metadata/annotation:\001*\022O\n" + "\007Reserve\022\030.agones.dev.sdk.Duration\032\025.ago" + "nes.dev.sdk.Empty\"\023\202\323\344\223\002\r\"\010/reserve:\001*BO" + "Z\005./sdk\222AE\022\034\n\tsdk.proto2\017version not set" + "*\001\0012\020application/json:\020application/jsonb" + "\006proto3" }; static const ::_pbi::DescriptorTable* PROTOBUF_NONNULL const descriptor_table_sdk_2eproto_deps[2] = { @@ -3042,15 +706,15 @@ static ::absl::once_flag descriptor_table_sdk_2eproto_once; PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_sdk_2eproto = { false, false, - 2599, + 2487, descriptor_table_protodef_sdk_2eproto, "sdk.proto", &descriptor_table_sdk_2eproto_once, descriptor_table_sdk_2eproto_deps, 2, - 17, + 16, schemas, - file_message_globals, + file_default_instances, TableStruct_sdk_2eproto::offsets, file_level_enum_descriptors_sdk_2eproto, file_level_service_descriptors_sdk_2eproto, @@ -3060,9 +724,13 @@ namespace dev { namespace sdk { // =================================================================== +class Empty::_Internal { + public: +}; + Empty::Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_get_class_data()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3072,8 +740,7 @@ Empty::Empty( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_get_class_data()) { - + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3085,10 +752,41 @@ Empty::Empty( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Empty) } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Empty::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Empty(arena); +} +constexpr auto Empty::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), + alignof(Empty)); +} +constexpr auto Empty::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Empty_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Empty::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Empty::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, + &Empty::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), + false, + }, + &Empty::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Empty_class_data_ = - Empty::InternalGenerateClassData_(Empty_globals_._default); + Empty::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Empty::GetClassData() const { @@ -3096,21 +794,33 @@ Empty::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Empty_class_data_.tc_table); return Empty_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Empty::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Empty_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Empty_globals_)); - return Empty_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Empty::ParseTableT_ - Empty::_table_ = - Empty::InternalGenerateParseTable_(Empty_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 0, 0, 0, 2> +Empty::_table_ = { + { + 0, // no _has_bits_ + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(decltype(_table_), field_lookup_table), + 4294967295, // skipmap + offsetof(decltype(_table_), field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Empty_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::Empty>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, +}; @@ -3123,9 +833,17 @@ ::google::protobuf::Metadata Empty::GetMetadata() const { } // =================================================================== +class KeyValue::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_); +}; + KeyValue::KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, KeyValue_get_class_data()) { + : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3133,9 +851,9 @@ KeyValue::KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.KeyValue) } PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::KeyValue& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::KeyValue& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_), @@ -3145,8 +863,7 @@ KeyValue::KeyValue( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeyValue& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, KeyValue_get_class_data()) { - + : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3159,8 +876,8 @@ KeyValue::KeyValue( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.KeyValue) } PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena), value_(arena) {} @@ -3174,9 +891,6 @@ KeyValue::~KeyValue() { } inline void KeyValue::SharedDtor(MessageLite& self) { KeyValue& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); @@ -3184,10 +898,41 @@ inline void KeyValue::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL KeyValue::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) KeyValue(arena); +} +constexpr auto KeyValue::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(KeyValue), + alignof(KeyValue)); +} +constexpr auto KeyValue::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_KeyValue_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &KeyValue::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KeyValue::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &KeyValue::ByteSizeLong, + &KeyValue::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), + false, + }, + &KeyValue::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_ = - KeyValue::InternalGenerateClassData_(KeyValue_globals_._default); + KeyValue::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL KeyValue::GetClassData() const { @@ -3195,21 +940,50 @@ KeyValue::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(KeyValue_class_data_.tc_table); return KeyValue_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -KeyValue::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&KeyValue_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&KeyValue_globals_)); - return KeyValue_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const KeyValue::ParseTableT_ - KeyValue::_table_ = - KeyValue::InternalGenerateParseTable_(KeyValue_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 40, 2> +KeyValue::_table_ = { + { + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\3\5\0\0\0\0\0" + "agones.dev.sdk.KeyValue" + "key" + "value" + }}, +}; PROTOBUF_NOINLINE void KeyValue::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.KeyValue) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3218,11 +992,11 @@ PROTOBUF_NOINLINE void KeyValue::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.key_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.value_.ClearNonDefaultToEmpty(); } } @@ -3241,16 +1015,12 @@ ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const KeyValue& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.KeyValue) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3260,7 +1030,7 @@ ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( } // string value = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_value().empty()) { const ::std::string& _s = this_._internal_value(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3294,16 +1064,16 @@ ::size_t KeyValue::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string key = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_key()); } } // string value = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_value().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_value()); @@ -3314,21 +1084,17 @@ ::size_t KeyValue::ByteSizeLong() const { &this_._impl_._cached_size_); } -void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.KeyValue) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { @@ -3337,7 +1103,7 @@ void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } else { @@ -3348,12 +1114,11 @@ void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void KeyValue::CopyFrom(const KeyValue& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.KeyValue) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.KeyValue) if (&from == this) return; Clear(); MergeFrom(from); @@ -3375,9 +1140,17 @@ ::google::protobuf::Metadata KeyValue::GetMetadata() const { } // =================================================================== +class Duration::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_); +}; + Duration::Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Duration_get_class_data()) { + : ::google::protobuf::Message(arena, Duration_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3387,7 +1160,7 @@ Duration::Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) Duration::Duration( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Duration& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Duration_get_class_data()), + : ::google::protobuf::Message(arena, Duration_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -3396,8 +1169,8 @@ Duration::Duration( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE Duration::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void Duration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { @@ -3410,18 +1183,46 @@ Duration::~Duration() { } inline void Duration::SharedDtor(MessageLite& self) { Duration& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Duration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Duration(arena); +} +constexpr auto Duration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration), + alignof(Duration)); +} +constexpr auto Duration::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Duration_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Duration::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Duration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Duration::ByteSizeLong, + &Duration::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), + false, + }, + &Duration::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Duration_class_data_ = - Duration::InternalGenerateClassData_(Duration_globals_._default); + Duration::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Duration::GetClassData() const { @@ -3429,21 +1230,40 @@ Duration::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Duration_class_data_.tc_table); return Duration_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Duration::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Duration_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Duration_globals_)); - return Duration_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Duration::ParseTableT_ - Duration::_table_ = - Duration::InternalGenerateParseTable_(Duration_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 0, 2> +Duration::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Duration, _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 + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Duration_class_data_.base(), + nullptr, // post_loop_handler + ::_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_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 seconds = 1; + {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; PROTOBUF_NOINLINE void Duration::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.Duration) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3467,16 +1287,12 @@ ::uint8_t* PROTOBUF_NONNULL Duration::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Duration& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.Duration) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // int64 seconds = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (this_._internal_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -3510,7 +1326,7 @@ ::size_t Duration::ByteSizeLong() const { { // int64 seconds = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (this_._internal_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_seconds()); @@ -3521,31 +1337,26 @@ ::size_t Duration::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Duration::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Duration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (from._internal_seconds() != 0) { _this->_impl_.seconds_ = from._impl_.seconds_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Duration::CopyFrom(const Duration& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.Duration) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.Duration) if (&from == this) return; Clear(); MergeFrom(from); @@ -3565,84 +1376,212 @@ ::google::protobuf::Metadata Duration::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() : SuperType(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data()) {} +GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() + : SuperType(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() : SuperType() {} GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(arena); +} +constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse), + alignof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)); +} +constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_ = - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_._default); + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.tc_table); return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_)); - return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ParseTableT_ - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::_table_ = - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 70, 2> +GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._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_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\65\3\5\0\0\0\0\0" + "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry" + "key" + "value" + }}, +}; // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() : SuperType(GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data()) {} +GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() + : SuperType(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() : SuperType() {} GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta_LabelsEntry_DoNotUse(arena); +} +constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_LabelsEntry_DoNotUse), + alignof(GameServer_ObjectMeta_LabelsEntry_DoNotUse)); +} +constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta_LabelsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_ObjectMeta_LabelsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &GameServer_ObjectMeta_LabelsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_ = - GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_(GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_._default); + GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.tc_table); return GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_)); - return GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta_LabelsEntry_DoNotUse::ParseTableT_ - GameServer_ObjectMeta_LabelsEntry_DoNotUse::_table_ = - GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 65, 2> +GameServer_ObjectMeta_LabelsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._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_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\60\3\5\0\0\0\0\0" + "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry" + "key" + "value" + }}, +}; // =================================================================== +class GameServer_ObjectMeta::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_); +}; + GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_ObjectMeta_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3650,36 +1589,23 @@ GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.ObjectMeta) } PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_ObjectMeta& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_ObjectMeta& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, + 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_), - annotations_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() - , from.annotations_ - } - , - labels_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() - , from.labels_ - } - {} + resource_version_(arena, from.resource_version_) {} GameServer_ObjectMeta::GameServer_ObjectMeta( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_ObjectMeta& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_ObjectMeta_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3688,9 +1614,9 @@ GameServer_ObjectMeta::GameServer_ObjectMeta( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, generation_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, generation_), offsetof(Impl_, deletion_timestamp_) - offsetof(Impl_, generation_) + @@ -3699,27 +1625,19 @@ GameServer_ObjectMeta::GameServer_ObjectMeta( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.ObjectMeta) } PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, + annotations_{visibility, arena}, + labels_{visibility, arena}, name_(arena), namespace__(arena), uid_(arena), - resource_version_(arena), - annotations_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() - } - , - labels_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_ObjectMeta, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() - } - {} + resource_version_(arena) {} inline void GameServer_ObjectMeta::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, generation_), 0, offsetof(Impl_, deletion_timestamp_) - @@ -3732,9 +1650,6 @@ GameServer_ObjectMeta::~GameServer_ObjectMeta() { } inline void GameServer_ObjectMeta::SharedDtor(MessageLite& self) { GameServer_ObjectMeta& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -3744,10 +1659,65 @@ inline void GameServer_ObjectMeta::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta(arena); +} +constexpr auto GameServer_ObjectMeta::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + + decltype(GameServer_ObjectMeta::_impl_.annotations_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + + decltype(GameServer_ObjectMeta::_impl_.annotations_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + + decltype(GameServer_ObjectMeta::_impl_.labels_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + + decltype(GameServer_ObjectMeta::_impl_.labels_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GameServer_ObjectMeta), alignof(GameServer_ObjectMeta), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GameServer_ObjectMeta::PlacementNew_, + sizeof(GameServer_ObjectMeta), + alignof(GameServer_ObjectMeta)); + } +} +constexpr auto GameServer_ObjectMeta::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_ObjectMeta_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_ObjectMeta::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_ObjectMeta::ByteSizeLong, + &GameServer_ObjectMeta::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), + false, + }, + &GameServer_ObjectMeta::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_ = - GameServer_ObjectMeta::InternalGenerateClassData_(GameServer_ObjectMeta_globals_._default); + GameServer_ObjectMeta::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta::GetClassData() const { @@ -3755,21 +1725,98 @@ GameServer_ObjectMeta::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_class_data_.tc_table); return GameServer_ObjectMeta_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_ObjectMeta::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_globals_)); - return GameServer_ObjectMeta_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta::ParseTableT_ - GameServer_ObjectMeta::_table_ = - GameServer_ObjectMeta::InternalGenerateParseTable_(GameServer_ObjectMeta_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 9, 2, 102, 2> +GameServer_ObjectMeta::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _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 + 2, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GameServer_ObjectMeta_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, + // string namespace = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, + // string uid = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, + // string resource_version = 4; + {::_pbi::TcParser::FastUS1, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, + // int64 generation = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 4>(), + {40, 4, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, + // int64 creation_timestamp = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 5>(), + {48, 5, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, + // int64 deletion_timestamp = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 6>(), + {56, 6, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string namespace = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string uid = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string resource_version = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 generation = 5; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 creation_timestamp = 6; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 deletion_timestamp = 7; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // map annotations = 8; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map labels = 9; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 9, + 0)}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 9, + 0)}, + }}, + {{ + "\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" + }}, +}; PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.ObjectMeta) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3777,31 +1824,27 @@ PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.annotations_.Clear(); + _impl_.labels_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.namespace__.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.uid_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.resource_version_.ClearNonDefaultToEmpty(); } } - if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { + if ((cached_has_bits & 0x00000070u) != 0) { ::memset(&_impl_.generation_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deletion_timestamp_) - reinterpret_cast(&_impl_.generation_)) + sizeof(_impl_.deletion_timestamp_)); - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - _impl_.annotations_.Clear(); - } - } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _impl_.labels_.Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -3818,16 +1861,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_ObjectMeta& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.ObjectMeta) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3837,7 +1876,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string namespace = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_namespace_().empty()) { const ::std::string& _s = this_._internal_namespace_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3847,7 +1886,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string uid = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_uid().empty()) { const ::std::string& _s = this_._internal_uid(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3857,7 +1896,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string resource_version = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { if (!this_._internal_resource_version().empty()) { const ::std::string& _s = this_._internal_resource_version(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3867,7 +1906,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 generation = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { if (this_._internal_generation() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( @@ -3876,7 +1915,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 creation_timestamp = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { if (this_._internal_creation_timestamp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( @@ -3885,7 +1924,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 deletion_timestamp = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { if (this_._internal_deletion_timestamp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( @@ -3894,71 +1933,67 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // map annotations = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (!this_._internal_annotations().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::std::string>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>; - const auto& field = this_._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()), + if (!this_._internal_annotations().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 8, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.annotations"); - } } } } // map labels = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (!this_._internal_labels().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::std::string>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>; - const auto& field = this_._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()), + if (!this_._internal_labels().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); - } } } } @@ -3987,99 +2022,97 @@ ::size_t GameServer_ObjectMeta::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map annotations = 8; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_annotations_size()); + for (const auto& entry : this_._internal_annotations()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // map labels = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_labels_size()); + for (const auto& entry : this_._internal_labels()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if ((cached_has_bits & 0x0000007fu) != 0) { // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string namespace = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_namespace_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_namespace_()); } } // string uid = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_uid().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_uid()); } } // string resource_version = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_resource_version().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_resource_version()); } } // int64 generation = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (this_._internal_generation() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_generation()); } } // int64 creation_timestamp = 6; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (this_._internal_creation_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_creation_timestamp()); } } // int64 deletion_timestamp = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (this_._internal_deletion_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_deletion_timestamp()); } } - // map annotations = 8; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_annotations_size()); - for (const auto& entry : this_._internal_annotations()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); - } - } - } - { - // map labels = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_labels_size()); - for (const auto& entry : this_._internal_labels()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.ObjectMeta) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000007fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -4088,7 +2121,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_namespace_().empty()) { _this->_internal_set_namespace_(from._internal_namespace_()); } else { @@ -4097,7 +2130,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_uid().empty()) { _this->_internal_set_uid(from._internal_uid()); } else { @@ -4106,7 +2139,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!from._internal_resource_version().empty()) { _this->_internal_set_resource_version(from._internal_resource_version()); } else { @@ -4115,35 +2148,28 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (from._internal_generation() != 0) { _this->_impl_.generation_ = from._impl_.generation_; } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (from._internal_creation_timestamp() != 0) { _this->_impl_.creation_timestamp_ = from._impl_.creation_timestamp_; } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (from._internal_deletion_timestamp() != 0) { _this->_impl_.deletion_timestamp_ = from._impl_.deletion_timestamp_; } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _this->_impl_.labels_.MergeFrom(from._impl_.labels_); } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_ObjectMeta::CopyFrom(const GameServer_ObjectMeta& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.ObjectMeta) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.ObjectMeta) if (&from == this) return; Clear(); MergeFrom(from); @@ -4156,6 +2182,8 @@ void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRIC ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); + _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); + _impl_.labels_.InternalSwap(&other->_impl_.labels_); ::_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); @@ -4166,8 +2194,6 @@ void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRIC - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)>( reinterpret_cast(&_impl_.generation_), reinterpret_cast(&other->_impl_.generation_)); - _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); - _impl_.labels_.InternalSwap(&other->_impl_.labels_); } ::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { @@ -4175,9 +2201,17 @@ ::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { } // =================================================================== +class GameServer_Spec_Health::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_); +}; + GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_Health_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4187,7 +2221,7 @@ GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* PROTOB GameServer_Spec_Health::GameServer_Spec_Health( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec_Health& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_Health_get_class_data()), + : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -4196,13 +2230,13 @@ GameServer_Spec_Health::GameServer_Spec_Health( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE GameServer_Spec_Health::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Spec_Health::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, disabled_), 0, offsetof(Impl_, initial_delay_seconds_) - @@ -4215,18 +2249,46 @@ GameServer_Spec_Health::~GameServer_Spec_Health() { } inline void GameServer_Spec_Health::SharedDtor(MessageLite& self) { GameServer_Spec_Health& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Spec_Health::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Spec_Health(arena); +} +constexpr auto GameServer_Spec_Health::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec_Health), + alignof(GameServer_Spec_Health)); +} +constexpr auto GameServer_Spec_Health::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Spec_Health_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Spec_Health::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Spec_Health::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec_Health::ByteSizeLong, + &GameServer_Spec_Health::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), + false, + }, + &GameServer_Spec_Health::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_ = - GameServer_Spec_Health::InternalGenerateClassData_(GameServer_Spec_Health_globals_._default); + GameServer_Spec_Health::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Spec_Health::GetClassData() const { @@ -4234,21 +2296,58 @@ GameServer_Spec_Health::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_Health_class_data_.tc_table); return GameServer_Spec_Health_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Spec_Health::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_Health_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Spec_Health_globals_)); - return GameServer_Spec_Health_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Spec_Health::ParseTableT_ - GameServer_Spec_Health::_table_ = - GameServer_Spec_Health::InternalGenerateParseTable_(GameServer_Spec_Health_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 4, 0, 0, 2> +GameServer_Spec_Health::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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_), 3>(), + {32, 3, 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, 0, 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_), 1>(), + {16, 1, 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_), 2>(), + {24, 2, 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_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // int32 period_seconds = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 failure_threshold = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 initial_delay_seconds = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, +}; PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec.Health) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4257,7 +2356,7 @@ PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if ((cached_has_bits & 0x0000000fu) != 0) { ::memset(&_impl_.disabled_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.initial_delay_seconds_) - reinterpret_cast(&_impl_.disabled_)) + sizeof(_impl_.initial_delay_seconds_)); @@ -4277,16 +2376,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Spec_Health& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec.Health) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (this_._internal_disabled() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -4295,7 +2390,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 period_seconds = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (this_._internal_period_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( @@ -4304,7 +2399,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 failure_threshold = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (this_._internal_failure_threshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( @@ -4313,7 +2408,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 initial_delay_seconds = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { if (this_._internal_initial_delay_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( @@ -4346,29 +2441,29 @@ ::size_t GameServer_Spec_Health::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if ((cached_has_bits & 0x0000000fu) != 0) { // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (this_._internal_disabled() != 0) { total_size += 2; } } // int32 period_seconds = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (this_._internal_period_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_period_seconds()); } } // int32 failure_threshold = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (this_._internal_failure_threshold() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_failure_threshold()); } } // int32 initial_delay_seconds = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (this_._internal_initial_delay_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_initial_delay_seconds()); @@ -4379,48 +2474,43 @@ ::size_t GameServer_Spec_Health::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Spec_Health::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec.Health) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (from._internal_disabled() != 0) { _this->_impl_.disabled_ = from._impl_.disabled_; } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (from._internal_period_seconds() != 0) { _this->_impl_.period_seconds_ = from._impl_.period_seconds_; } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (from._internal_failure_threshold() != 0) { _this->_impl_.failure_threshold_ = from._impl_.failure_threshold_; } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (from._internal_initial_delay_seconds() != 0) { _this->_impl_.initial_delay_seconds_ = from._impl_.initial_delay_seconds_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Spec_Health::CopyFrom(const GameServer_Spec_Health& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec.Health) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec.Health) if (&from == this) return; Clear(); MergeFrom(from); @@ -4444,9 +2534,17 @@ ::google::protobuf::Metadata GameServer_Spec_Health::GetMetadata() const { } // =================================================================== +class GameServer_Spec::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); +}; + GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4454,9 +2552,9 @@ GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE ar // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec) } PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Spec& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_Spec& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} @@ -4464,8 +2562,7 @@ GameServer_Spec::GameServer_Spec( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4475,15 +2572,15 @@ GameServer_Spec::GameServer_Spec( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.health_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + _impl_.health_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_) : nullptr; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Spec) } PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Spec::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { @@ -4496,19 +2593,47 @@ GameServer_Spec::~GameServer_Spec() { } inline void GameServer_Spec::SharedDtor(MessageLite& self) { GameServer_Spec& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.health_; this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Spec::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Spec(arena); +} +constexpr auto GameServer_Spec::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec), + alignof(GameServer_Spec)); +} +constexpr auto GameServer_Spec::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Spec_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Spec::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Spec::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec::ByteSizeLong, + &GameServer_Spec::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), + false, + }, + &GameServer_Spec::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_ = - GameServer_Spec::InternalGenerateClassData_(GameServer_Spec_globals_._default); + GameServer_Spec::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Spec::GetClassData() const { @@ -4516,21 +2641,42 @@ GameServer_Spec::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_class_data_.tc_table); return GameServer_Spec_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Spec::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Spec_globals_)); - return GameServer_Spec_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Spec::ParseTableT_ - GameServer_Spec::_table_ = - GameServer_Spec::InternalGenerateParseTable_(GameServer_Spec_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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>()}, + }}, + {{ + }}, +}; PROTOBUF_NOINLINE void GameServer_Spec::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4539,7 +2685,7 @@ PROTOBUF_NOINLINE void GameServer_Spec::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.health_ != nullptr); _impl_.health_->Clear(); } @@ -4558,16 +2704,13 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Spec& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.Spec.Health health = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.health_, this_._impl_.health_->GetCachedSize(), target, stream); @@ -4599,7 +2742,7 @@ ::size_t GameServer_Spec::ByteSizeLong() const { { // .agones.dev.sdk.GameServer.Spec.Health health = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.health_); } @@ -4608,21 +2751,17 @@ ::size_t GameServer_Spec::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.health_ != nullptr); if (_this->_impl_.health_ == nullptr) { _this->_impl_.health_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_); @@ -4631,12 +2770,11 @@ void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Spec::CopyFrom(const GameServer_Spec& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec) if (&from == this) return; Clear(); MergeFrom(from); @@ -4655,9 +2793,17 @@ ::google::protobuf::Metadata GameServer_Spec::GetMetadata() const { } // =================================================================== +class GameServer_Status_Address::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_); +}; + GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Address_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4665,9 +2811,9 @@ GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Address) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_Address& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_Status_Address& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, type_(arena, from.type_), @@ -4677,8 +2823,7 @@ GameServer_Status_Address::GameServer_Status_Address( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Address& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Address_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4691,8 +2836,8 @@ GameServer_Status_Address::GameServer_Status_Address( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Address) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, type_(arena), address_(arena) {} @@ -4706,9 +2851,6 @@ GameServer_Status_Address::~GameServer_Status_Address() { } inline void GameServer_Status_Address::SharedDtor(MessageLite& self) { GameServer_Status_Address& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.type_.Destroy(); @@ -4716,10 +2858,41 @@ inline void GameServer_Status_Address::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_Address::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_Address(arena); +} +constexpr auto GameServer_Status_Address::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Address), + alignof(GameServer_Status_Address)); +} +constexpr auto GameServer_Status_Address::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_Address_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_Address::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_Address::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Address::ByteSizeLong, + &GameServer_Status_Address::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), + false, + }, + &GameServer_Status_Address::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_ = - GameServer_Status_Address::InternalGenerateClassData_(GameServer_Status_Address_globals_._default); + GameServer_Status_Address::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_Address::GetClassData() const { @@ -4727,21 +2900,50 @@ GameServer_Status_Address::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Address_class_data_.tc_table); return GameServer_Status_Address_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_Address::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Address_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_Address_globals_)); - return GameServer_Status_Address_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_Address::ParseTableT_ - GameServer_Status_Address::_table_ = - GameServer_Status_Address::InternalGenerateParseTable_(GameServer_Status_Address_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 60, 2> +GameServer_Status_Address::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, + // string type = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string type = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\50\4\7\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Address" + "type" + "address" + }}, +}; PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Address) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4750,11 +2952,11 @@ PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.type_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.address_.ClearNonDefaultToEmpty(); } } @@ -4773,16 +2975,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_Address& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Address) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string type = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_type().empty()) { const ::std::string& _s = this_._internal_type(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4792,7 +2990,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( } // string address = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_address().empty()) { const ::std::string& _s = this_._internal_address(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4826,16 +3024,16 @@ ::size_t GameServer_Status_Address::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string type = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_type().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type()); } } // string address = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_address().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_address()); @@ -4846,21 +3044,17 @@ ::size_t GameServer_Status_Address::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Address) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_type().empty()) { _this->_internal_set_type(from._internal_type()); } else { @@ -4869,7 +3063,7 @@ void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_ms } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } else { @@ -4880,12 +3074,11 @@ void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_ms } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_Address::CopyFrom(const GameServer_Status_Address& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Address) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Address) if (&from == this) return; Clear(); MergeFrom(from); @@ -4907,9 +3100,17 @@ ::google::protobuf::Metadata GameServer_Status_Address::GetMetadata() const { } // =================================================================== +class GameServer_Status_Port::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_); +}; + GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Port_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4917,9 +3118,9 @@ GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* PROTOB // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Port) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_Port& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_Status_Port& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_) {} @@ -4928,8 +3129,7 @@ GameServer_Status_Port::GameServer_Status_Port( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Port& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Port_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4942,383 +3142,160 @@ GameServer_Status_Port::GameServer_Status_Port( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Port) } -PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - name_(arena) {} - -inline void GameServer_Status_Port::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { - new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.port_ = {}; -} -GameServer_Status_Port::~GameServer_Status_Port() { - // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Port) - SharedDtor(*this); -} -inline void GameServer_Status_Port::SharedDtor(MessageLite& self) { - GameServer_Status_Port& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.name_.Destroy(); - this_._impl_.~Impl_(); -} - -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_ = - GameServer_Status_Port::InternalGenerateClassData_(GameServer_Status_Port_globals_._default); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_Port::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Port_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Port_class_data_.tc_table); - return GameServer_Status_Port_class_data_.base(); -} -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_Port::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Port_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_Port_globals_)); - return GameServer_Status_Port_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_Port::ParseTableT_ - GameServer_Status_Port::_table_ = - GameServer_Status_Port::InternalGenerateParseTable_(GameServer_Status_Port_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { -// @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Port) - ::google::protobuf::internal::TSanWrite(&_impl_); - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.name_.ClearNonDefaultToEmpty(); - } - _impl_.port_ = 0; - _impl_._has_bits_.Clear(); - _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( - const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GameServer_Status_Port& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( - ::uint8_t* PROTOBUF_NONNULL target, - ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GameServer_Status_Port& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Port) - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = this_._impl_._has_bits_[0]; - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - const ::std::string& _s = this_._internal_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 (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( - stream, this_._internal_port(), target); - } - } - - if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { - target = - ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - this_._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; -} - -#if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GameServer_Status_Port::ByteSizeLong(const MessageLite& base) { - const GameServer_Status_Port& this_ = static_cast(base); -#else // PROTOBUF_CUSTOM_VTABLE -::size_t GameServer_Status_Port::ByteSizeLong() const { - const GameServer_Status_Port& this_ = *this; -#endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.Port) - ::size_t total_size = 0; - - ::uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void)cached_has_bits; - - ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_name().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_name()); - } - } - // int32 port = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_port() != 0) { - total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( - this_._internal_port()); - } - } - } - return this_.MaybeComputeUnknownFieldsSize(total_size, - &this_._impl_._cached_size_); -} - -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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Port) - ABSL_DCHECK_NE(&from, _this); - ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; - - cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } else { - if (_this->_impl_.name_.IsDefault()) { - _this->_internal_set_name(""); - } - } - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_port() != 0) { - _this->_impl_.port_ = from._impl_.port_; - } - } - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); -} - -void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Port) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - - -void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - using ::std::swap; - 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_.name_, &other->_impl_.name_, arena); - swap(_impl_.port_, other->_impl_.port_); -} - -::google::protobuf::Metadata GameServer_Status_Port::GetMetadata() const { - return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); -} -// =================================================================== - -GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_PlayerStatus_get_class_data()) { -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - SharedCtor(arena); - // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) -} -PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_PlayerStatus& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - ids_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_PlayerStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_)>() - , from.ids_ - } - {} - -GameServer_Status_PlayerStatus::GameServer_Status_PlayerStatus( - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, - const GameServer_Status_PlayerStatus& from) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_PlayerStatus_get_class_data()) { - -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(arena) { -#endif // PROTOBUF_CUSTOM_VTABLE - 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_, from); - ::memcpy(reinterpret_cast(&_impl_) + - offsetof(Impl_, count_), - reinterpret_cast(&from._impl_) + - offsetof(Impl_, count_), - offsetof(Impl_, capacity_) - - offsetof(Impl_, count_) + - sizeof(Impl_::capacity_)); - - // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.PlayerStatus) -} -PROTOBUF_NDEBUG_INLINE GameServer_Status_PlayerStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) +PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - ids_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_PlayerStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_PlayerStatus, _impl_.ids_)>() - } - {} + name_(arena) {} -inline void GameServer_Status_PlayerStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { +inline void GameServer_Status_Port::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + - offsetof(Impl_, count_), - 0, - offsetof(Impl_, capacity_) - - offsetof(Impl_, count_) + - sizeof(Impl_::capacity_)); + _impl_.port_ = {}; } -GameServer_Status_PlayerStatus::~GameServer_Status_PlayerStatus() { - // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.PlayerStatus) +GameServer_Status_Port::~GameServer_Status_Port() { + // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status.Port) SharedDtor(*this); } -inline void GameServer_Status_PlayerStatus::SharedDtor(MessageLite& self) { - GameServer_Status_PlayerStatus& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } +inline void GameServer_Status_Port::SharedDtor(MessageLite& self) { + GameServer_Status_Port& this_ = static_cast(self); this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.name_.Destroy(); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_Port::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_Port(arena); +} +constexpr auto GameServer_Status_Port::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Port), + alignof(GameServer_Status_Port)); +} +constexpr auto GameServer_Status_Port::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_Port_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_Port::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_Port::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Port::ByteSizeLong, + &GameServer_Status_Port::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), + false, + }, + &GameServer_Status_Port::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const - ::google::protobuf::internal::ClassDataFull GameServer_Status_PlayerStatus_class_data_ = - GameServer_Status_PlayerStatus::InternalGenerateClassData_(GameServer_Status_PlayerStatus_globals_._default); + ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_ = + GameServer_Status_Port::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_PlayerStatus::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_PlayerStatus_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_PlayerStatus_class_data_.tc_table); - return GameServer_Status_PlayerStatus_class_data_.base(); +GameServer_Status_Port::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Port_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Port_class_data_.tc_table); + return GameServer_Status_Port_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_PlayerStatus::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_PlayerStatus_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_PlayerStatus_globals_)); - return GameServer_Status_PlayerStatus_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_PlayerStatus::ParseTableT_ - GameServer_Status_PlayerStatus::_table_ = - GameServer_Status_PlayerStatus::InternalGenerateParseTable_(GameServer_Status_PlayerStatus_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_NOINLINE void GameServer_Status_PlayerStatus::Clear() { -// @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.PlayerStatus) +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 50, 2> +GameServer_Status_Port::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 port = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\45\4\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Port" + "name" + }}, +}; +PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { +// @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Port) ::google::protobuf::internal::TSanWrite(&_impl_); ::uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.ids_.Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000006U)) { - ::memset(&_impl_.count_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.capacity_) - - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); + if ((cached_has_bits & 0x00000001u) != 0) { + _impl_.name_.ClearNonDefaultToEmpty(); } + _impl_.port_ = 0; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } #if defined(PROTOBUF_CUSTOM_VTABLE) -::uint8_t* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::_InternalSerialize( +::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) { - const GameServer_Status_PlayerStatus& this_ = static_cast(base); + const GameServer_Status_Port& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE -::uint8_t* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::_InternalSerialize( +::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { - const GameServer_Status_PlayerStatus& this_ = *this; + const GameServer_Status_Port& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.PlayerStatus) + // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Port) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; - // int64 count = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_count() != 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( - stream, this_._internal_count(), target); + // string name = 1; + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (!this_._internal_name().empty()) { + const ::std::string& _s = this_._internal_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); } } - // int64 capacity = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_capacity() != 0) { + // int32 port = 2; + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (this_._internal_port() != 0) { target = - ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( - stream, this_._internal_capacity(), target); - } - } - - // repeated string ids = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_ids_size(); i < n; ++i) { - 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); + ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( + stream, this_._internal_port(), target); } } @@ -5327,18 +3304,18 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_PlayerStatus::_InternalSerialize( ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( this_._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) + // @@protoc_insertion_point(serialize_to_array_end:agones.dev.sdk.GameServer.Status.Port) return target; } #if defined(PROTOBUF_CUSTOM_VTABLE) -::size_t GameServer_Status_PlayerStatus::ByteSizeLong(const MessageLite& base) { - const GameServer_Status_PlayerStatus& this_ = static_cast(base); +::size_t GameServer_Status_Port::ByteSizeLong(const MessageLite& base) { + const GameServer_Status_Port& this_ = static_cast(base); #else // PROTOBUF_CUSTOM_VTABLE -::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { - const GameServer_Status_PlayerStatus& this_ = *this; +::size_t GameServer_Status_Port::ByteSizeLong() const { + const GameServer_Status_Port& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.PlayerStatus) + // @@protoc_insertion_point(message_byte_size_start:agones.dev.sdk.GameServer.Status.Port) ::size_t total_size = 0; ::uint32_t cached_has_bits = 0; @@ -5347,28 +3324,19 @@ ::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - // repeated string ids = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_ids().size()); - for (int i = 0, n = this_._internal_ids().size(); i < n; ++i) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_ids().Get(i)); - } - } - // int64 count = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (this_._internal_count() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_count()); + if ((cached_has_bits & 0x00000003u) != 0) { + // string name = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_name().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_name()); } } - // int64 capacity = 2; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (this_._internal_capacity() != 0) { - total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( - this_._internal_capacity()); + // int32 port = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + if (this_._internal_port() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( + this_._internal_port()); } } } @@ -5376,71 +3344,69 @@ ::size_t GameServer_Status_PlayerStatus::ByteSizeLong() const { &this_._impl_._cached_size_); } -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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); - // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) +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) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_ids()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_ids()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_count() != 0) { - _this->_impl_.count_ = from._impl_.count_; + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } else { + if (_this->_impl_.name_.IsDefault()) { + _this->_internal_set_name(""); + } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (from._internal_capacity() != 0) { - _this->_impl_.capacity_ = from._impl_.capacity_; + if ((cached_has_bits & 0x00000002u) != 0) { + if (from._internal_port() != 0) { + _this->_impl_.port_ = from._impl_.port_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } -void GameServer_Status_PlayerStatus::CopyFrom(const GameServer_Status_PlayerStatus& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.PlayerStatus) +void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Port) if (&from == this) return; Clear(); MergeFrom(from); } -void GameServer_Status_PlayerStatus::InternalSwap(GameServer_Status_PlayerStatus* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { +void GameServer_Status_Port::InternalSwap(GameServer_Status_Port* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; + 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_.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_)>( - reinterpret_cast(&_impl_.count_), - reinterpret_cast(&other->_impl_.count_)); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); + swap(_impl_.port_, other->_impl_.port_); } -::google::protobuf::Metadata GameServer_Status_PlayerStatus::GetMetadata() const { +::google::protobuf::Metadata GameServer_Status_Port::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } // =================================================================== +class GameServer_Status_CounterStatus::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_); +}; + GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5450,7 +3416,7 @@ GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::proto GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_CounterStatus& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_get_class_data()), + : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -5459,13 +3425,13 @@ GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE GameServer_Status_CounterStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Status_CounterStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, count_), 0, offsetof(Impl_, capacity_) - @@ -5478,18 +3444,46 @@ GameServer_Status_CounterStatus::~GameServer_Status_CounterStatus() { } inline void GameServer_Status_CounterStatus::SharedDtor(MessageLite& self) { GameServer_Status_CounterStatus& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_CounterStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_CounterStatus(arena); +} +constexpr auto GameServer_Status_CounterStatus::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Status_CounterStatus), + alignof(GameServer_Status_CounterStatus)); +} +constexpr auto GameServer_Status_CounterStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_CounterStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_CounterStatus::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_CounterStatus::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_CounterStatus::ByteSizeLong, + &GameServer_Status_CounterStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), + false, + }, + &GameServer_Status_CounterStatus::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_ = - GameServer_Status_CounterStatus::InternalGenerateClassData_(GameServer_Status_CounterStatus_globals_._default); + GameServer_Status_CounterStatus::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_CounterStatus::GetClassData() const { @@ -5497,21 +3491,46 @@ GameServer_Status_CounterStatus::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CounterStatus_class_data_.tc_table); return GameServer_Status_CounterStatus_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_CounterStatus::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CounterStatus_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_CounterStatus_globals_)); - return GameServer_Status_CounterStatus_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_CounterStatus::ParseTableT_ - GameServer_Status_CounterStatus::_table_ = - GameServer_Status_CounterStatus::InternalGenerateParseTable_(GameServer_Status_CounterStatus_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 0, 2> +GameServer_Status_CounterStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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_), 1>(), + {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, + // int64 count = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 count = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 capacity = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, +}; PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.CounterStatus) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5520,7 +3539,7 @@ PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { ::memset(&_impl_.count_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.capacity_) - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); @@ -5540,16 +3559,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_CounterStatus& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.CounterStatus) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // int64 count = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (this_._internal_count() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -5558,7 +3573,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( } // int64 capacity = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (this_._internal_capacity() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( @@ -5591,16 +3606,16 @@ ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // int64 count = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (this_._internal_count() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_count()); } } // int64 capacity = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (this_._internal_capacity() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_capacity()); @@ -5611,38 +3626,33 @@ ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_CounterStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (from._internal_count() != 0) { _this->_impl_.count_ = from._impl_.count_; } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (from._internal_capacity() != 0) { _this->_impl_.capacity_ = from._impl_.capacity_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_CounterStatus::CopyFrom(const GameServer_Status_CounterStatus& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) if (&from == this) return; Clear(); MergeFrom(from); @@ -5666,9 +3676,17 @@ ::google::protobuf::Metadata GameServer_Status_CounterStatus::GetMetadata() cons } // =================================================================== +class GameServer_Status_ListStatus::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_); +}; + GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5676,25 +3694,18 @@ GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::A // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_ListStatus& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_Status_ListStatus& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - values_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_ListStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() - , from.values_ - } - {} + values_{visibility, arena, from.values_} {} GameServer_Status_ListStatus::GameServer_Status_ListStatus( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_ListStatus& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5708,14 +3719,10 @@ GameServer_Status_ListStatus::GameServer_Status_ListStatus( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - values_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status_ListStatus, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() - } - {} + values_{visibility, arena} {} inline void GameServer_Status_ListStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -5727,18 +3734,58 @@ GameServer_Status_ListStatus::~GameServer_Status_ListStatus() { } inline void GameServer_Status_ListStatus::SharedDtor(MessageLite& self) { GameServer_Status_ListStatus& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_ListStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_ListStatus(arena); +} +constexpr auto GameServer_Status_ListStatus::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_) + + decltype(GameServer_Status_ListStatus::_impl_.values_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(GameServer_Status_ListStatus), alignof(GameServer_Status_ListStatus), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GameServer_Status_ListStatus::PlacementNew_, + sizeof(GameServer_Status_ListStatus), + alignof(GameServer_Status_ListStatus)); + } +} +constexpr auto GameServer_Status_ListStatus::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_ListStatus_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_ListStatus::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_ListStatus::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_ListStatus::ByteSizeLong, + &GameServer_Status_ListStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), + false, + }, + &GameServer_Status_ListStatus::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_ = - GameServer_Status_ListStatus::InternalGenerateClassData_(GameServer_Status_ListStatus_globals_._default); + GameServer_Status_ListStatus::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_ListStatus::GetClassData() const { @@ -5746,21 +3793,49 @@ GameServer_Status_ListStatus::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListStatus_class_data_.tc_table); return GameServer_Status_ListStatus_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_ListStatus::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListStatus_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_ListStatus_globals_)); - return GameServer_Status_ListStatus_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_ListStatus::ParseTableT_ - GameServer_Status_ListStatus::_table_ = - GameServer_Status_ListStatus::InternalGenerateParseTable_(GameServer_Status_ListStatus_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 58, 2> +GameServer_Status_ListStatus::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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_), 0>(), + {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 capacity = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // repeated string values = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), -1, 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" + }}, +}; PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.ListStatus) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5768,10 +3843,7 @@ PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.values_.Clear(); - } + _impl_.values_.Clear(); _impl_.capacity_ = ::int64_t{0}; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -5788,16 +3860,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_ListStatus& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.ListStatus) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // int64 capacity = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (this_._internal_capacity() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -5806,13 +3874,11 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( } // repeated string values = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_values_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_values_size(); i < n; ++i) { + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -5839,10 +3905,9 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + { // repeated string values = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_values().size()); for (int i = 0, n = this_._internal_values().size(); i < n; ++i) { @@ -5850,8 +3915,11 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { this_._internal_values().Get(i)); } } + } + { // int64 capacity = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { if (this_._internal_capacity() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_capacity()); @@ -5862,39 +3930,27 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_ListStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.ListStatus) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_internal_mutable_values()->MergeFrom(from._internal_values()); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_values()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_values()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_capacity() != 0) { - _this->_impl_.capacity_ = from._impl_.capacity_; - } + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_capacity() != 0) { + _this->_impl_.capacity_ = from._impl_.capacity_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status_ListStatus::CopyFrom(const GameServer_Status_ListStatus& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.ListStatus) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.ListStatus) if (&from == this) return; Clear(); MergeFrom(from); @@ -5915,84 +3971,214 @@ ::google::protobuf::Metadata GameServer_Status_ListStatus::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() : SuperType(GameServer_Status_CountersEntry_DoNotUse_get_class_data()) {} +GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() + : SuperType(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_Status_CountersEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() : SuperType() {} GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_CountersEntry_DoNotUse(arena); +} +constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_CountersEntry_DoNotUse), + alignof(GameServer_Status_CountersEntry_DoNotUse)); +} +constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_CountersEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_CountersEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_Status_CountersEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &GameServer_Status_CountersEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_ = - GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_(GameServer_Status_CountersEntry_DoNotUse_globals_._default); + GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CountersEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CountersEntry_DoNotUse_class_data_.tc_table); return GameServer_Status_CountersEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_CountersEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CountersEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_CountersEntry_DoNotUse_globals_)); - return GameServer_Status_CountersEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_CountersEntry_DoNotUse::ParseTableT_ - GameServer_Status_CountersEntry_DoNotUse::_table_ = - GameServer_Status_CountersEntry_DoNotUse::InternalGenerateParseTable_(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 58, 2> +GameServer_Status_CountersEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._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), + GameServer_Status_CountersEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, + }}, + {{ + "\56\3\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.CountersEntry" + "key" + }}, +}; // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() : SuperType(GameServer_Status_ListsEntry_DoNotUse_get_class_data()) {} +GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() + : SuperType(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_Status_ListsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() : SuperType() {} GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_ListsEntry_DoNotUse(arena); +} +constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListsEntry_DoNotUse), + alignof(GameServer_Status_ListsEntry_DoNotUse)); +} +constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status_ListsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_ListsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_Status_ListsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &GameServer_Status_ListsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_ = - GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_(GameServer_Status_ListsEntry_DoNotUse_globals_._default); + GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListsEntry_DoNotUse_class_data_.tc_table); return GameServer_Status_ListsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status_ListsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_ListsEntry_DoNotUse_globals_)); - return GameServer_Status_ListsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_ListsEntry_DoNotUse::ParseTableT_ - GameServer_Status_ListsEntry_DoNotUse::_table_ = - GameServer_Status_ListsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 55, 2> +GameServer_Status_ListsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._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), + GameServer_Status_ListsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, + }}, + {{ + "\53\3\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.ListsEntry" + "key" + }}, +}; // =================================================================== +class GameServer_Status::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); +}; + GameServer_Status::GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6000,48 +4186,23 @@ GameServer_Status::GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABL // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status) } PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer_Status& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - ports_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() - , from.ports_ - } - , - addresses_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() - , from.addresses_ - } - , + 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_), - counters_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() - , from.counters_ - } - , - lists_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() - , from.lists_ - } - {} + address_(arena, from.address_) {} GameServer_Status::GameServer_Status( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6050,43 +4211,22 @@ GameServer_Status::GameServer_Status( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.players_ = (CheckHasBit(cached_has_bits, 0x00000010U)) - ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.players_) - : nullptr; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status) } PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - ports_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() - } - , - addresses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() - } - , + ports_{visibility, arena}, + counters_{visibility, arena}, + lists_{visibility, arena}, + addresses_{visibility, arena}, state_(arena), - address_(arena), - counters_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() - } - , - lists_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::agones::dev::sdk::GameServer_Status, - PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() - } - {} + address_(arena) {} inline void GameServer_Status::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - _impl_.players_ = {}; } GameServer_Status::~GameServer_Status() { // @@protoc_insertion_point(destructor:agones.dev.sdk.GameServer.Status) @@ -6094,21 +4234,80 @@ GameServer_Status::~GameServer_Status() { } inline void GameServer_Status::SharedDtor(MessageLite& self) { GameServer_Status& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.state_.Destroy(); this_._impl_.address_.Destroy(); - delete this_._impl_.players_; this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer_Status::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status(arena); +} +constexpr auto GameServer_Status::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_) + + decltype(GameServer_Status::_impl_.addresses_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_) + + decltype(GameServer_Status::_impl_.ports_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + + decltype(GameServer_Status::_impl_.counters_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + + decltype(GameServer_Status::_impl_.counters_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + + decltype(GameServer_Status::_impl_.lists_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + + decltype(GameServer_Status::_impl_.lists_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(GameServer_Status), alignof(GameServer_Status), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&GameServer_Status::PlacementNew_, + sizeof(GameServer_Status), + alignof(GameServer_Status)); + } +} +constexpr auto GameServer_Status::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_Status_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer_Status::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status::ByteSizeLong, + &GameServer_Status::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), + false, + }, + &GameServer_Status::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_ = - GameServer_Status::InternalGenerateClassData_(GameServer_Status_globals_._default); + GameServer_Status::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status::GetClassData() const { @@ -6116,21 +4315,85 @@ GameServer_Status::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_class_data_.tc_table); return GameServer_Status_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer_Status::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_globals_)); - return GameServer_Status_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status::ParseTableT_ - GameServer_Status::_table_ = - GameServer_Status::InternalGenerateParseTable_(GameServer_Status_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 6, 6, 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), + 4294967176, // skipmap + offsetof(decltype(_table_), field_entries), + 6, // num_field_entries + 6, // num_aux_entries + offsetof(decltype(_table_), aux_entries), + GameServer_Status_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, + // string address = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 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_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; + {::_pbi::TcParser::FastMtR1, + {58, 63, 1, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string state = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_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)}, + // 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, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, + }}, + {{ + "\40\5\7\0\10\5\0\0" + "agones.dev.sdk.GameServer.Status" + "state" + "address" + "counters" + "lists" + }}, +}; PROTOBUF_NOINLINE void GameServer_Status::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6138,30 +4401,18 @@ PROTOBUF_NOINLINE void GameServer_Status::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.ports_.Clear(); + _impl_.counters_.Clear(); + _impl_.lists_.Clear(); + _impl_.addresses_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.ports_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.addresses_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.state_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.address_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - ABSL_DCHECK(_impl_.players_ != nullptr); - _impl_.players_->Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _impl_.counters_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _impl_.lists_.Clear(); - } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -6178,16 +4429,12 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string state = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_state().empty()) { const ::std::string& _s = this_._internal_state(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6197,7 +4444,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( } // string address = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_address().empty()) { const ::std::string& _s = this_._internal_address(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6207,94 +4454,79 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( } // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - 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); - } - } - - // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 4, *this_._impl_.players_, this_._impl_.players_->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); } // map counters = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - if (!this_._internal_counters().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_counters().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (!this_._internal_lists().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_lists().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - 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); - } + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -6321,92 +4553,80 @@ ::size_t GameServer_Status::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + { // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1UL * this_._internal_ports_size(); for (const auto& msg : this_._internal_ports()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + // map counters = 5; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_counters_size()); + for (const auto& entry : this_._internal_counters()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + // map lists = 6; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_lists_size()); + for (const auto& entry : this_._internal_lists()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + { total_size += 1UL * this_._internal_addresses_size(); for (const auto& msg : this_._internal_addresses()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { // string state = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_state().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_state()); } } // string address = 2; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_address().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_address()); } } - // .agones.dev.sdk.GameServer.Status.PlayerStatus players = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.players_); - } - // map counters = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_counters_size()); - for (const auto& entry : this_._internal_counters()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } - // map lists = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_lists_size()); - for (const auto& entry : this_._internal_lists()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::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; + (void) cached_has_bits; + _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()); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_ports()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_ports()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_addresses()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_addresses()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_state().empty()) { _this->_internal_set_state(from._internal_state()); } else { @@ -6415,7 +4635,7 @@ void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } else { @@ -6424,28 +4644,13 @@ void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - ABSL_DCHECK(from._impl_.players_ != nullptr); - if (_this->_impl_.players_ == nullptr) { - _this->_impl_.players_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.players_); - } else { - _this->_impl_.players_->MergeFrom(*from._impl_.players_); - } - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { - _this->_impl_.counters_.MergeFrom(from._impl_.counters_); - } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _this->_impl_.lists_.MergeFrom(from._impl_.lists_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer_Status::CopyFrom(const GameServer_Status& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status) if (&from == this) return; Clear(); MergeFrom(from); @@ -6459,12 +4664,11 @@ void GameServer_Status::InternalSwap(GameServer_Status* PROTOBUF_RESTRICT PROTOB _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.ports_.InternalSwap(&other->_impl_.ports_); + _impl_.counters_.InternalSwap(&other->_impl_.counters_); + _impl_.lists_.InternalSwap(&other->_impl_.lists_); _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_); - _impl_.counters_.InternalSwap(&other->_impl_.counters_); - _impl_.lists_.InternalSwap(&other->_impl_.lists_); } ::google::protobuf::Metadata GameServer_Status::GetMetadata() const { @@ -6472,9 +4676,17 @@ ::google::protobuf::Metadata GameServer_Status::GetMetadata() const { } // =================================================================== +class GameServer::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); +}; + GameServer::GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_get_class_data()) { + : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6482,9 +4694,9 @@ GameServer::GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer) } PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::agones::dev::sdk::GameServer& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::agones::dev::sdk::GameServer& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} @@ -6492,8 +4704,7 @@ GameServer::GameServer( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_get_class_data()) { - + : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6503,26 +4714,26 @@ GameServer::GameServer( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.object_meta_ = (CheckHasBit(cached_has_bits, 0x00000001U)) + _impl_.object_meta_ = ((cached_has_bits & 0x00000001u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_) : nullptr; - _impl_.spec_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + _impl_.spec_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_) : nullptr; - _impl_.status_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + _impl_.status_ = ((cached_has_bits & 0x00000004u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_) : nullptr; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer) } PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, object_meta_), 0, offsetof(Impl_, status_) - @@ -6535,9 +4746,6 @@ GameServer::~GameServer() { } inline void GameServer::SharedDtor(MessageLite& self) { GameServer& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.object_meta_; @@ -6546,10 +4754,41 @@ inline void GameServer::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL GameServer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer(arena); +} +constexpr auto GameServer::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer), + alignof(GameServer)); +} +constexpr auto GameServer::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_GameServer_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &GameServer::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer::ByteSizeLong, + &GameServer::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), + false, + }, + &GameServer::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_class_data_ = - GameServer::InternalGenerateClassData_(GameServer_globals_._default); + GameServer::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer::GetClassData() const { @@ -6557,21 +4796,57 @@ GameServer::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_class_data_.tc_table); return GameServer_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -GameServer::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_globals_)); - return GameServer_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer::ParseTableT_ - GameServer::_table_ = - GameServer::InternalGenerateParseTable_(GameServer_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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>()}, + }}, + {{ + }}, +}; PROTOBUF_NOINLINE void GameServer::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6580,16 +4855,16 @@ PROTOBUF_NOINLINE void GameServer::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(_impl_.object_meta_ != nullptr); _impl_.object_meta_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.spec_ != nullptr); _impl_.spec_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { ABSL_DCHECK(_impl_.status_ != nullptr); _impl_.status_->Clear(); } @@ -6609,30 +4884,27 @@ ::uint8_t* PROTOBUF_NONNULL GameServer::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.object_meta_, this_._impl_.object_meta_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Spec spec = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.spec_, this_._impl_.spec_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Status status = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.status_, this_._impl_.status_->GetCachedSize(), target, stream); @@ -6663,19 +4935,19 @@ ::size_t GameServer::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if ((cached_has_bits & 0x00000007u) != 0) { // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.object_meta_); } // .agones.dev.sdk.GameServer.Spec spec = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.spec_); } // .agones.dev.sdk.GameServer.Status status = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_); } @@ -6684,22 +4956,18 @@ ::size_t GameServer::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { ABSL_DCHECK(from._impl_.object_meta_ != nullptr); if (_this->_impl_.object_meta_ == nullptr) { _this->_impl_.object_meta_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_); @@ -6707,7 +4975,7 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.object_meta_->MergeFrom(*from._impl_.object_meta_); } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.spec_ != nullptr); if (_this->_impl_.spec_ == nullptr) { _this->_impl_.spec_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_); @@ -6715,7 +4983,7 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.spec_->MergeFrom(*from._impl_.spec_); } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { ABSL_DCHECK(from._impl_.status_ != nullptr); if (_this->_impl_.status_ == nullptr) { _this->_impl_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_); @@ -6725,12 +4993,11 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void GameServer::CopyFrom(const GameServer& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer) +// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer) if (&from == this) return; Clear(); MergeFrom(from); diff --git a/sdks/csharp/proto/sdk/alpha/alpha.proto b/sdks/csharp/proto/sdk/alpha/alpha.proto index 3d3dde9fb8..e8d2f6e107 100644 --- a/sdks/csharp/proto/sdk/alpha/alpha.proto +++ b/sdks/csharp/proto/sdk/alpha/alpha.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package agones.dev.sdk.alpha; option go_package = "./alpha"; -import "google/api/annotations.proto"; @@ -29,119 +28,5 @@ import "google/api/annotations.proto"; // SDK service to be used in the GameServer SDK to the Pod Sidecar. -service SDK { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - // list of connected playerIDs. - // - // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - // connected playerIDs will be left unchanged. - // - // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - // the server has been reached. The playerID will not be added to the list of playerIDs. - // - // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerConnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/connect" - body: "*" - }; - } +service SDK {} - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - // playerID value exists within the list. - // - // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - // will be left unchanged. - // - // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerDisconnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/disconnect" - body: "*" - }; - } - - // Update the GameServer.Status.Players.Capacity value with a new capacity. - rpc SetPlayerCapacity (Count) returns (Empty) { - option (google.api.http) = { - put: "/alpha/player/capacity" - body: "*" - }; - } - - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCapacity (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/capacity" - }; - } - - // Retrieves the current player count. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCount (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/count" - }; - } - - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - rpc IsPlayerConnected (PlayerID) returns (Bool) { - option (google.api.http) = { - get: "/alpha/player/connected/{playerID}" - }; - } - - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetConnectedPlayers(Empty) returns (PlayerIDList) { - option (google.api.http) = { - get: "/alpha/player/connected" - }; - } -} - -// I am Empty -message Empty { -} - -// Store a count variable. -message Count { - int64 count = 1; -} - -// Store a boolean result -message Bool { - bool bool = 1; -} - -// The unique identifier for a given player. -message PlayerID { - string playerID = 1; -} - -// List of Player IDs -message PlayerIDList { - repeated string list = 1; -} diff --git a/sdks/csharp/proto/sdk/sdk.proto b/sdks/csharp/proto/sdk/sdk.proto index 22ab2489be..181d078d8d 100644 --- a/sdks/csharp/proto/sdk/sdk.proto +++ b/sdks/csharp/proto/sdk/sdk.proto @@ -148,6 +148,9 @@ message GameServer { } message Status { + reserved 4; + reserved "players"; + message Address { string type = 1; string address = 2; @@ -157,13 +160,6 @@ message GameServer { string name = 1; int32 port = 2; } - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - message PlayerStatus { - int64 count = 1; - int64 capacity = 2; - repeated string ids = 3; - } // [Stage:Beta] // [FeatureFlag:CountsAndLists] @@ -184,10 +180,6 @@ message GameServer { repeated Address addresses = 7; repeated Port ports = 3; - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - PlayerStatus players = 4; - // [Stage:Beta] // [FeatureFlag:CountsAndLists] map counters = 5; diff --git a/sdks/csharp/sdk/AgonesSDK.cs b/sdks/csharp/sdk/AgonesSDK.cs index 9f35de495d..60f0b18eb5 100644 --- a/sdks/csharp/sdk/AgonesSDK.cs +++ b/sdks/csharp/sdk/AgonesSDK.cs @@ -33,7 +33,6 @@ public sealed class AgonesSDK : IAgonesSDK public double RequestTimeoutSec { get; set; } internal SDK.SDKClient client; - internal readonly Alpha alpha; internal readonly Beta beta; internal readonly GrpcChannel channel; internal AsyncClientStreamingCall healthStream; @@ -81,19 +80,10 @@ public AgonesSDK( ); client = sdkClient ?? new SDK.SDKClient(channel); - alpha = new Alpha(channel, requestTimeoutSec, cancellationTokenSource, logger); beta = new Beta(channel, requestTimeoutSec, cancellationTokenSource, logger); } - /// - /// Alpha returns the Alpha SDK - /// - /// Agones alpha SDK - public IAgonesAlphaSDK Alpha() - { - return alpha; - } - + /// /// Beta returns the AlphBeta SDK /// diff --git a/sdks/csharp/sdk/Alpha.cs b/sdks/csharp/sdk/Alpha.cs deleted file mode 100644 index 7ab787fa60..0000000000 --- a/sdks/csharp/sdk/Alpha.cs +++ /dev/null @@ -1,237 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -using Agones.Dev.Sdk.Alpha; -using Grpc.Core; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Grpc.Net.Client; -using gProto = Google.Protobuf.WellKnownTypes; - -[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Agones.Test")] -namespace Agones -{ - public sealed class Alpha : IAgonesAlphaSDK - { - - /// - /// The timeout for gRPC calls. - /// - public double RequestTimeoutSec { get; set; } - - internal SDK.SDKClient client; - internal readonly IClientStreamWriter healthStream; - internal readonly CancellationTokenSource cts; - internal readonly bool ownsCts; - internal CancellationToken ctoken; - - private readonly ILogger _logger; - private bool _disposed; - - public Alpha( - GrpcChannel channel, - double requestTimeoutSec = 15, - CancellationTokenSource cancellationTokenSource = null, - ILogger logger = null) - { - _logger = logger; - RequestTimeoutSec = requestTimeoutSec; - - if (cancellationTokenSource == null) - { - cts = new CancellationTokenSource(); - ownsCts = true; - } - else - { - cts = cancellationTokenSource; - ownsCts = false; - } - - ctoken = cts.Token; - client = new SDK.SDKClient(channel); - } - - - /// - /// This returns the last player capacity that was set through the SDK. - /// If the player capacity is set from outside the SDK, use SDK.GameServer() instead. - /// - /// Player capacity - public async Task GetPlayerCapacityAsync() - { - try - { - var count = await client.GetPlayerCapacityAsync(new Empty(), deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return count.Count_; - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the GetPlayerCapacity."); - throw; - } - } - - /// - /// This changes the player capacity to a new value. - /// - /// gRPC Status of the request - public async Task SetPlayerCapacityAsync(long count) - { - try - { - await client.SetPlayerCapacityAsync(new Count() - { - Count_ = count - }, deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return new Status(StatusCode.OK, "SetPlayerCapacity request successful."); - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the SetPlayerCapacity."); - return ex.Status; - } - - } - - /// - /// This function increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// Returns true and adds the playerID to the list of playerIDs if the playerIDs was not already in the list of connected playerIDs. - /// - /// True if the playerID was added to the list of playerIDs - public async Task PlayerConnectAsync(string id) - { - try - { - var result = await client.PlayerConnectAsync(new PlayerID() - { - PlayerID_ = id - }, deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return result.Bool_; - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the PlayerConnect."); - throw; - } - } - - /// - /// This function decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// Will return true and remove the supplied playerID from the list of connected playerIDs if the playerID value exists within the list. - /// - /// True if the playerID was removed from the list of playerIDs - public async Task PlayerDisconnectAsync(string id) - { - try - { - var result = await client.PlayerDisconnectAsync(new PlayerID() - { - PlayerID_ = id - }, deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return result.Bool_; - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the PlayerDisconnect."); - throw; - } - } - - /// - /// Returns the current player count. - /// - /// Player count - public async Task GetPlayerCountAsync() - { - try - { - var count = await client.GetPlayerCountAsync(new Empty(), deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return count.Count_; - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the GetPlayerCount."); - throw; - } - } - - /// - /// This returns if the playerID is currently connected to the GameServer. - /// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. - /// - /// True if the playerID is currently connected - public async Task IsPlayerConnectedAsync(string id) - { - try - { - var result = await client.IsPlayerConnectedAsync(new PlayerID() - { - PlayerID_ = id - }, deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return result.Bool_; - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the IsPlayerConnected."); - throw; - } - } - - /// - /// This returns the list of the currently connected player ids. - /// This is always accurate, even if the value has not been updated to the Game Server status yet. - /// - /// The list of the currently connected player ids - public async Task> GetConnectedPlayersAsync() - { - try - { - var playerIDList = await client.GetConnectedPlayersAsync(new Empty(), deadline: DateTime.UtcNow.AddSeconds(RequestTimeoutSec), cancellationToken: ctoken); - return playerIDList.List.ToList(); - } - catch (RpcException ex) - { - LogError(ex, "Unable to invoke the GetConnectedPlayers."); - throw; - } - } - - public void Dispose() - { - if (_disposed) - { - return; - } - - cts.Cancel(); - - if (ownsCts) - { - cts.Dispose(); - } - - _disposed = true; - GC.SuppressFinalize(this); - } - - private void LogError(Exception ex, string message) - { - _logger?.LogError(ex, message); - } - } -} diff --git a/sdks/csharp/sdk/IAgonesAlphaSDK.cs b/sdks/csharp/sdk/IAgonesAlphaSDK.cs deleted file mode 100644 index 39ea71f18c..0000000000 --- a/sdks/csharp/sdk/IAgonesAlphaSDK.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Grpc.Core; - -namespace Agones -{ - public interface IAgonesAlphaSDK : IDisposable - { - Task GetPlayerCapacityAsync(); - Task SetPlayerCapacityAsync(long capacity); - Task PlayerConnectAsync(string id); - Task PlayerDisconnectAsync(string id); - Task GetPlayerCountAsync(); - Task IsPlayerConnectedAsync(string id); - Task> GetConnectedPlayersAsync(); - } -} diff --git a/sdks/csharp/sdk/IAgonesSDK.cs b/sdks/csharp/sdk/IAgonesSDK.cs index d302412285..55faf59fb4 100644 --- a/sdks/csharp/sdk/IAgonesSDK.cs +++ b/sdks/csharp/sdk/IAgonesSDK.cs @@ -30,7 +30,6 @@ public interface IAgonesSDK : IDisposable Task SetLabelAsync(string key, string value); Task SetAnnotationAsync(string key, string value); Task HealthAsync(); - IAgonesAlphaSDK Alpha(); IAgonesBetaSDK Beta(); } } \ No newline at end of file diff --git a/sdks/csharp/test/AgonesAlphaSDKClientTests.cs b/sdks/csharp/test/AgonesAlphaSDKClientTests.cs deleted file mode 100644 index 35597d2c86..0000000000 --- a/sdks/csharp/test/AgonesAlphaSDKClientTests.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -using Agones.Dev.Sdk.Alpha; -using Grpc.Core; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Microsoft.VisualStudio.TestTools.UnitTesting; -using Moq; -using System; -using Grpc.Net.Client; -using Microsoft.Extensions.Logging; -using gProto = Google.Protobuf.WellKnownTypes; - -namespace Agones.Tests -{ - [TestClass] - public class AgonesAlphaSDKClientTests - { - [TestMethod] - public async Task GetPlayerCapacity_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new Count() { Count_ = 1 }; - mockClient.Setup(m => m.GetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().GetPlayerCapacityAsync(); - Assert.AreEqual(expected.Count_, result); - } - - [TestMethod] - public async Task SetPlayerCapacity_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = StatusCode.OK; - mockClient.Setup(m => m.SetPlayerCapacityAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (Count _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Empty()), Task.FromResult(new Metadata()), () => new Status(expected, ""), () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().SetPlayerCapacityAsync(1); - Assert.AreEqual(expected, result.StatusCode); - } - - [TestMethod] - public async Task PlayerConnect_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new Bool() { Bool_ = true }; - - mockClient.Setup(m => m.PlayerConnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Bool - { - Bool_ = true - }), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().PlayerConnectAsync("test"); - Assert.AreEqual(expected.Bool_, result); - } - - [TestMethod] - public async Task PlayerDisconnect_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new Bool() { Bool_ = true }; - - mockClient.Setup(m => m.PlayerDisconnectAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(new Bool - { - Bool_ = true - }), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().PlayerDisconnectAsync("test"); - Assert.AreEqual(expected.Bool_, result); - } - - [TestMethod] - public async Task GetPlayerCount_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new Count() { Count_ = 1 }; - mockClient.Setup(m => m.GetPlayerCountAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().GetPlayerCountAsync(); - Assert.AreEqual(expected.Count_, result); - } - - [TestMethod] - public async Task IsPlayerConnected_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new Bool() { Bool_ = true }; - mockClient.Setup(m => m.IsPlayerConnectedAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (PlayerID _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(expected), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().IsPlayerConnectedAsync("test"); - Assert.AreEqual(expected.Bool_, result); - } - - [TestMethod] - public async Task GetConnectedPlayers_Sends_OK() - { - var mockClient = new Mock(); - var mockSdk = new AgonesSDK(); - var expected = new List { "player1", "player2" }; - var playerList = new PlayerIDList() { List = { expected } }; - mockClient.Setup(m => m.GetConnectedPlayersAsync(It.IsAny(), It.IsAny(), It.IsAny(), It.IsAny())).Returns( - (Empty _, Metadata _, DateTime? _, CancellationToken _) => new AsyncUnaryCall(Task.FromResult(playerList), Task.FromResult(new Metadata()), () => Status.DefaultSuccess, () => new Metadata(), () => { })); - mockSdk.alpha.client = mockClient.Object; - - var result = await mockSdk.Alpha().GetConnectedPlayersAsync(); - CollectionAssert.AreEquivalent(expected, result); - } - - [TestMethod] - public void InstantiateWithParameters_OK() - { - var mockSdk = new AgonesSDK(); - //var mockChannel = new Channel(mockSdk.Host, mockSdk.Port, ChannelCredentials.Insecure); - var mockChannel = GrpcChannel.ForAddress($"http://{mockSdk.Host}:{mockSdk.Port}"); - ILogger mockLogger = new Mock().Object; - CancellationTokenSource mockCancellationTokenSource = new Mock().Object; - bool exceptionOccured = false; - try - { - new Alpha( - channel: mockChannel, - requestTimeoutSec: 15, - cancellationTokenSource: mockCancellationTokenSource, - logger: mockLogger - ); - } - catch - { - exceptionOccured = true; - } - - Assert.IsFalse(exceptionOccured); - } - } -} diff --git a/sdks/go/alpha.go b/sdks/go/alpha.go deleted file mode 100644 index 8ddb9a8bf8..0000000000 --- a/sdks/go/alpha.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package sdk - -import ( - "context" - - "github.com/pkg/errors" - "google.golang.org/grpc" - - "agones.dev/agones/pkg/sdk/alpha" -) - -// Alpha is the struct for Alpha SDK functionality. -type Alpha struct { - client alpha.SDKClient -} - -// newAlpha creates a new Alpha SDK with the passed in connection. -func newAlpha(conn *grpc.ClientConn) *Alpha { - return &Alpha{ - client: alpha.NewSDKClient(conn), - } -} - -// GetPlayerCapacity gets the last player capacity that was set through the SDK. -// If the player capacity is set from outside the SDK, use SDK.GameServer() instead. -func (a *Alpha) GetPlayerCapacity() (int64, error) { - c, err := a.client.GetPlayerCapacity(context.Background(), &alpha.Empty{}) - return c.GetCount(), errors.Wrap(err, "could not get player capacity") -} - -// SetPlayerCapacity changes the player capacity to a new value. -func (a *Alpha) SetPlayerCapacity(capacity int64) error { - _, err := a.client.SetPlayerCapacity(context.Background(), &alpha.Count{Count: capacity}) - return errors.Wrap(err, "could not set player capacity") -} - -// PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to status.players.id. -// Will return true and add the playerID to the list of playerIDs if the playerIDs was not already in the -// list of connected playerIDs. -func (a *Alpha) PlayerConnect(id string) (bool, error) { - ok, err := a.client.PlayerConnect(context.Background(), &alpha.PlayerID{PlayerID: id}) - return ok.GetBool(), errors.Wrap(err, "could not register connected player") -} - -// PlayerDisconnect Decreases the SDK’s stored player count by one, and removes the playerID from status.players.id. -// Will return true and remove the supplied playerID from the list of connected playerIDs if the -// playerID value exists within the list. -func (a *Alpha) PlayerDisconnect(id string) (bool, error) { - ok, err := a.client.PlayerDisconnect(context.Background(), &alpha.PlayerID{PlayerID: id}) - return ok.GetBool(), errors.Wrap(err, "could not register disconnected player") -} - -// GetPlayerCount returns the current player count. -func (a *Alpha) GetPlayerCount() (int64, error) { - count, err := a.client.GetPlayerCount(context.Background(), &alpha.Empty{}) - return count.GetCount(), errors.Wrap(err, "could not get player count") -} - -// IsPlayerConnected returns if the playerID is currently connected to the GameServer. -// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. -func (a *Alpha) IsPlayerConnected(id string) (bool, error) { - ok, err := a.client.IsPlayerConnected(context.Background(), &alpha.PlayerID{PlayerID: id}) - return ok.GetBool(), errors.Wrap(err, "could not get if player is connected") -} - -// GetConnectedPlayers returns the list of the currently connected player ids. -// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. -func (a *Alpha) GetConnectedPlayers() ([]string, error) { - list, err := a.client.GetConnectedPlayers(context.Background(), &alpha.Empty{}) - return list.GetList(), errors.Wrap(err, "could not list connected players") -} diff --git a/sdks/go/alpha_test.go b/sdks/go/alpha_test.go deleted file mode 100644 index a910fab826..0000000000 --- a/sdks/go/alpha_test.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package sdk - -import ( - "context" - "testing" - - "github.com/stretchr/testify/assert" - "google.golang.org/grpc" - - "agones.dev/agones/pkg/sdk/alpha" -) - -func TestAlphaGetAndSetPlayerCapacity(t *testing.T) { - mock := &alphaMock{} - a := Alpha{ - client: mock, - } - - err := a.SetPlayerCapacity(15) - assert.NoError(t, err) - assert.Equal(t, int64(15), mock.capacity) - - capacity, err := a.GetPlayerCapacity() - assert.NoError(t, err) - assert.Equal(t, int64(15), capacity) - - playerID := "one" - ok, err := a.PlayerConnect(playerID) - assert.NoError(t, err) - assert.True(t, ok) - assert.Equal(t, playerID, mock.playerConnected) - - count, err := a.GetPlayerCount() - assert.NoError(t, err) - assert.Equal(t, int64(1), count) - - ok, err = a.PlayerDisconnect(playerID) - assert.NoError(t, err) - assert.True(t, ok) - assert.Equal(t, playerID, mock.playerDisconnected) - - // Put the player back in. - ok, err = a.PlayerConnect(playerID) - assert.NoError(t, err) - assert.True(t, ok) - assert.Equal(t, int64(1), count) - - ok, err = a.IsPlayerConnected(playerID) - assert.NoError(t, err) - assert.True(t, ok, "Player should be connected") - - ok, err = a.IsPlayerConnected("false") - assert.NoError(t, err) - assert.False(t, ok, "Player should not be connected") - - list, err := a.GetConnectedPlayers() - assert.NoError(t, err) - assert.Equal(t, []string{playerID}, list) -} - -type alphaMock struct { - capacity int64 - playerCount int64 - playerConnected string - playerDisconnected string -} - -func (a *alphaMock) PlayerConnect(_ context.Context, id *alpha.PlayerID, _ ...grpc.CallOption) (*alpha.Bool, error) { - a.playerConnected = id.PlayerID - a.playerCount++ - return &alpha.Bool{Bool: true}, nil -} - -func (a *alphaMock) PlayerDisconnect(_ context.Context, id *alpha.PlayerID, _ ...grpc.CallOption) (*alpha.Bool, error) { - a.playerDisconnected = id.PlayerID - a.playerCount-- - return &alpha.Bool{Bool: true}, nil -} - -func (a *alphaMock) IsPlayerConnected(_ context.Context, id *alpha.PlayerID, _ ...grpc.CallOption) (*alpha.Bool, error) { - return &alpha.Bool{Bool: id.PlayerID == a.playerConnected}, nil -} - -func (a *alphaMock) GetConnectedPlayers(_ context.Context, _ *alpha.Empty, _ ...grpc.CallOption) (*alpha.PlayerIDList, error) { - return &alpha.PlayerIDList{List: []string{a.playerConnected}}, nil -} - -func (a *alphaMock) SetPlayerCapacity(_ context.Context, in *alpha.Count, _ ...grpc.CallOption) (*alpha.Empty, error) { - a.capacity = in.Count - return &alpha.Empty{}, nil -} - -func (a *alphaMock) GetPlayerCapacity(_ context.Context, _ *alpha.Empty, _ ...grpc.CallOption) (*alpha.Count, error) { - return &alpha.Count{Count: a.capacity}, nil -} - -func (a *alphaMock) GetPlayerCount(_ context.Context, _ *alpha.Empty, _ ...grpc.CallOption) (*alpha.Count, error) { - return &alpha.Count{Count: a.playerCount}, nil -} diff --git a/sdks/go/sdk.go b/sdks/go/sdk.go index 61185cef37..e49cf53e8a 100644 --- a/sdks/go/sdk.go +++ b/sdks/go/sdk.go @@ -39,7 +39,6 @@ type SDK struct { client sdk.SDKClient ctx context.Context health sdk.SDK_HealthClient - alpha *Alpha beta *Beta } @@ -79,16 +78,10 @@ func NewSDK() (*SDK, error) { } s.client = sdk.NewSDKClient(conn) s.health, err = s.client.Health(s.ctx) - s.alpha = newAlpha(conn) s.beta = newBeta(conn) return s, errors.Wrap(err, "could not set up health check") } -// Alpha returns the Alpha SDK. -func (s *SDK) Alpha() *Alpha { - return s.alpha -} - // Beta returns the Beta SDK. func (s *SDK) Beta() *Beta { return s.beta diff --git a/sdks/nodejs/lib/alpha/alpha_grpc_pb.js b/sdks/nodejs/lib/alpha/alpha_grpc_pb.js index 83119ae281..0cf6622beb 100644 --- a/sdks/nodejs/lib/alpha/alpha_grpc_pb.js +++ b/sdks/nodejs/lib/alpha/alpha_grpc_pb.js @@ -31,190 +31,10 @@ // limitations under the License. // 'use strict'; -var alpha_pb = require('./alpha_pb.js'); -var google_api_annotations_pb = require('./google/api/annotations_pb.js'); var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js'); -function serialize_agones_dev_sdk_alpha_Bool(arg) { - if (!(arg instanceof alpha_pb.Bool)) { - throw new Error('Expected argument of type agones.dev.sdk.alpha.Bool'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agones_dev_sdk_alpha_Bool(buffer_arg) { - return alpha_pb.Bool.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agones_dev_sdk_alpha_Count(arg) { - if (!(arg instanceof alpha_pb.Count)) { - throw new Error('Expected argument of type agones.dev.sdk.alpha.Count'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agones_dev_sdk_alpha_Count(buffer_arg) { - return alpha_pb.Count.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agones_dev_sdk_alpha_Empty(arg) { - if (!(arg instanceof alpha_pb.Empty)) { - throw new Error('Expected argument of type agones.dev.sdk.alpha.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agones_dev_sdk_alpha_Empty(buffer_arg) { - return alpha_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agones_dev_sdk_alpha_PlayerID(arg) { - if (!(arg instanceof alpha_pb.PlayerID)) { - throw new Error('Expected argument of type agones.dev.sdk.alpha.PlayerID'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agones_dev_sdk_alpha_PlayerID(buffer_arg) { - return alpha_pb.PlayerID.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_agones_dev_sdk_alpha_PlayerIDList(arg) { - if (!(arg instanceof alpha_pb.PlayerIDList)) { - throw new Error('Expected argument of type agones.dev.sdk.alpha.PlayerIDList'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_agones_dev_sdk_alpha_PlayerIDList(buffer_arg) { - return alpha_pb.PlayerIDList.deserializeBinary(new Uint8Array(buffer_arg)); -} - // SDK service to be used in the GameServer SDK to the Pod Sidecar. var SDKService = exports['agones.dev.sdk.alpha.SDK'] = { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. -// -// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, -// unless there is already an update pending, in which case the update joins that batch operation. -// -// PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the -// list of connected playerIDs. -// -// If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of -// connected playerIDs will be left unchanged. -// -// An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for -// the server has been reached. The playerID will not be added to the list of playerIDs. -// -// Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count -// through the Kubernetes API, as indeterminate results will occur. -playerConnect: { - path: '/agones.dev.sdk.alpha.SDK/PlayerConnect', - requestStream: false, - responseStream: false, - requestType: alpha_pb.PlayerID, - responseType: alpha_pb.Bool, - requestSerialize: serialize_agones_dev_sdk_alpha_PlayerID, - requestDeserialize: deserialize_agones_dev_sdk_alpha_PlayerID, - responseSerialize: serialize_agones_dev_sdk_alpha_Bool, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Bool, - }, - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. -// -// GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, -// unless there is already an update pending, in which case the update joins that batch operation. -// -// PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the -// playerID value exists within the list. -// -// If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list -// will be left unchanged. -// -// Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count -// through the Kubernetes API, as indeterminate results will occur. -playerDisconnect: { - path: '/agones.dev.sdk.alpha.SDK/PlayerDisconnect', - requestStream: false, - responseStream: false, - requestType: alpha_pb.PlayerID, - responseType: alpha_pb.Bool, - requestSerialize: serialize_agones_dev_sdk_alpha_PlayerID, - requestDeserialize: deserialize_agones_dev_sdk_alpha_PlayerID, - responseSerialize: serialize_agones_dev_sdk_alpha_Bool, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Bool, - }, - // Update the GameServer.Status.Players.Capacity value with a new capacity. -setPlayerCapacity: { - path: '/agones.dev.sdk.alpha.SDK/SetPlayerCapacity', - requestStream: false, - responseStream: false, - requestType: alpha_pb.Count, - responseType: alpha_pb.Empty, - requestSerialize: serialize_agones_dev_sdk_alpha_Count, - requestDeserialize: deserialize_agones_dev_sdk_alpha_Count, - responseSerialize: serialize_agones_dev_sdk_alpha_Empty, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Empty, - }, - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, -// even if the value has yet to be updated on the GameServer status resource. -// -// If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. -getPlayerCapacity: { - path: '/agones.dev.sdk.alpha.SDK/GetPlayerCapacity', - requestStream: false, - responseStream: false, - requestType: alpha_pb.Empty, - responseType: alpha_pb.Count, - requestSerialize: serialize_agones_dev_sdk_alpha_Empty, - requestDeserialize: deserialize_agones_dev_sdk_alpha_Empty, - responseSerialize: serialize_agones_dev_sdk_alpha_Count, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Count, - }, - // Retrieves the current player count. This is always accurate from what has been set through this SDK, -// even if the value has yet to be updated on the GameServer status resource. -// -// If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. -getPlayerCount: { - path: '/agones.dev.sdk.alpha.SDK/GetPlayerCount', - requestStream: false, - responseStream: false, - requestType: alpha_pb.Empty, - responseType: alpha_pb.Count, - requestSerialize: serialize_agones_dev_sdk_alpha_Empty, - requestDeserialize: deserialize_agones_dev_sdk_alpha_Empty, - responseSerialize: serialize_agones_dev_sdk_alpha_Count, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Count, - }, - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, -// even if the value has yet to be updated on the GameServer status resource. -// -// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. -isPlayerConnected: { - path: '/agones.dev.sdk.alpha.SDK/IsPlayerConnected', - requestStream: false, - responseStream: false, - requestType: alpha_pb.PlayerID, - responseType: alpha_pb.Bool, - requestSerialize: serialize_agones_dev_sdk_alpha_PlayerID, - requestDeserialize: deserialize_agones_dev_sdk_alpha_PlayerID, - responseSerialize: serialize_agones_dev_sdk_alpha_Bool, - responseDeserialize: deserialize_agones_dev_sdk_alpha_Bool, - }, - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, -// even if the value has yet to be updated on the GameServer status resource. -// -// If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. -getConnectedPlayers: { - path: '/agones.dev.sdk.alpha.SDK/GetConnectedPlayers', - requestStream: false, - responseStream: false, - requestType: alpha_pb.Empty, - responseType: alpha_pb.PlayerIDList, - requestSerialize: serialize_agones_dev_sdk_alpha_Empty, - requestDeserialize: deserialize_agones_dev_sdk_alpha_Empty, - responseSerialize: serialize_agones_dev_sdk_alpha_PlayerIDList, - responseDeserialize: deserialize_agones_dev_sdk_alpha_PlayerIDList, - }, }; diff --git a/sdks/nodejs/lib/alpha/alpha_pb.js b/sdks/nodejs/lib/alpha/alpha_pb.js index efae115810..64245f1d10 100644 --- a/sdks/nodejs/lib/alpha/alpha_pb.js +++ b/sdks/nodejs/lib/alpha/alpha_pb.js @@ -30,765 +30,5 @@ var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); -var google_api_annotations_pb = require('./google/api/annotations_pb.js'); -goog.object.extend(proto, google_api_annotations_pb); var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js'); goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb); -goog.exportSymbol('proto.agones.dev.sdk.alpha.Bool', null, global); -goog.exportSymbol('proto.agones.dev.sdk.alpha.Count', null, global); -goog.exportSymbol('proto.agones.dev.sdk.alpha.Empty', null, global); -goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerID', null, global); -goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerIDList', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.alpha.Empty = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.agones.dev.sdk.alpha.Empty, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.alpha.Empty.displayName = 'proto.agones.dev.sdk.alpha.Empty'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.alpha.Count = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.agones.dev.sdk.alpha.Count, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.alpha.Count.displayName = 'proto.agones.dev.sdk.alpha.Count'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.alpha.Bool = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.agones.dev.sdk.alpha.Bool, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.alpha.Bool.displayName = 'proto.agones.dev.sdk.alpha.Bool'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.alpha.PlayerID = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.agones.dev.sdk.alpha.PlayerID, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.alpha.PlayerID.displayName = 'proto.agones.dev.sdk.alpha.PlayerID'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.alpha.PlayerIDList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.alpha.PlayerIDList.repeatedFields_, null); -}; -goog.inherits(proto.agones.dev.sdk.alpha.PlayerIDList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.alpha.PlayerIDList.displayName = 'proto.agones.dev.sdk.alpha.PlayerIDList'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.alpha.Empty.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.alpha.Empty.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.alpha.Empty} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Empty.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.alpha.Empty} - */ -proto.agones.dev.sdk.alpha.Empty.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.alpha.Empty; - return proto.agones.dev.sdk.alpha.Empty.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.alpha.Empty} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.alpha.Empty} - */ -proto.agones.dev.sdk.alpha.Empty.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.alpha.Empty.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.alpha.Empty.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.alpha.Empty} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Empty.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.alpha.Count.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.alpha.Count.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.alpha.Count} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Count.toObject = function(includeInstance, msg) { - var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.alpha.Count} - */ -proto.agones.dev.sdk.alpha.Count.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.alpha.Count; - return proto.agones.dev.sdk.alpha.Count.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.alpha.Count} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.alpha.Count} - */ -proto.agones.dev.sdk.alpha.Count.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.alpha.Count.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.alpha.Count.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.alpha.Count} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Count.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCount(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } -}; - - -/** - * optional int64 count = 1; - * @return {number} - */ -proto.agones.dev.sdk.alpha.Count.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.agones.dev.sdk.alpha.Count} returns this - */ -proto.agones.dev.sdk.alpha.Count.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.alpha.Bool.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.alpha.Bool.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.alpha.Bool} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Bool.toObject = function(includeInstance, msg) { - var f, obj = { - bool: jspb.Message.getBooleanFieldWithDefault(msg, 1, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.alpha.Bool} - */ -proto.agones.dev.sdk.alpha.Bool.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.alpha.Bool; - return proto.agones.dev.sdk.alpha.Bool.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.alpha.Bool} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.alpha.Bool} - */ -proto.agones.dev.sdk.alpha.Bool.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBool(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.alpha.Bool.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.alpha.Bool.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.alpha.Bool} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.Bool.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBool(); - if (f) { - writer.writeBool( - 1, - f - ); - } -}; - - -/** - * optional bool bool = 1; - * @return {boolean} - */ -proto.agones.dev.sdk.alpha.Bool.prototype.getBool = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.agones.dev.sdk.alpha.Bool} returns this - */ -proto.agones.dev.sdk.alpha.Bool.prototype.setBool = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.alpha.PlayerID.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.alpha.PlayerID.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.alpha.PlayerID} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.PlayerID.toObject = function(includeInstance, msg) { - var f, obj = { - playerid: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.alpha.PlayerID} - */ -proto.agones.dev.sdk.alpha.PlayerID.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.alpha.PlayerID; - return proto.agones.dev.sdk.alpha.PlayerID.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.alpha.PlayerID} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.alpha.PlayerID} - */ -proto.agones.dev.sdk.alpha.PlayerID.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPlayerid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.alpha.PlayerID.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.alpha.PlayerID.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.alpha.PlayerID} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.PlayerID.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPlayerid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string playerID = 1; - * @return {string} - */ -proto.agones.dev.sdk.alpha.PlayerID.prototype.getPlayerid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.agones.dev.sdk.alpha.PlayerID} returns this - */ -proto.agones.dev.sdk.alpha.PlayerID.prototype.setPlayerid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.agones.dev.sdk.alpha.PlayerIDList.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.alpha.PlayerIDList.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.PlayerIDList.toObject = function(includeInstance, msg) { - var f, obj = { - listList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} - */ -proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.alpha.PlayerIDList; - return proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} - */ -proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addList(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.alpha.PlayerIDList.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.alpha.PlayerIDList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getListList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } -}; - - -/** - * repeated string list = 1; - * @return {!Array} - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.getListList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.setListList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.addList = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this - */ -proto.agones.dev.sdk.alpha.PlayerIDList.prototype.clearListList = function() { - return this.setListList([]); -}; - - -goog.object.extend(exports, proto.agones.dev.sdk.alpha); diff --git a/sdks/nodejs/lib/sdk_pb.js b/sdks/nodejs/lib/sdk_pb.js index f82047162f..d4df4bb514 100644 --- a/sdks/nodejs/lib/sdk_pb.js +++ b/sdks/nodejs/lib/sdk_pb.js @@ -44,7 +44,6 @@ goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status', null, global); goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.Address', null, global); goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.CounterStatus', null, global); goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.ListStatus', null, global); -goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.PlayerStatus', null, global); goog.exportSymbol('proto.agones.dev.sdk.GameServer.Status.Port', null, global); goog.exportSymbol('proto.agones.dev.sdk.KeyValue', null, global); /** @@ -257,27 +256,6 @@ if (goog.DEBUG && !COMPILED) { */ proto.agones.dev.sdk.GameServer.Status.Port.displayName = 'proto.agones.dev.sdk.GameServer.Status.Port'; } -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.GameServer.Status.PlayerStatus.repeatedFields_, null); -}; -goog.inherits(proto.agones.dev.sdk.GameServer.Status.PlayerStatus, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.agones.dev.sdk.GameServer.Status.PlayerStatus.displayName = 'proto.agones.dev.sdk.GameServer.Status.PlayerStatus'; -} /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a @@ -1645,7 +1623,6 @@ proto.agones.dev.sdk.GameServer.Status.toObject = function(includeInstance, msg) proto.agones.dev.sdk.GameServer.Status.Address.toObject, includeInstance), portsList: jspb.Message.toObjectList(msg.getPortsList(), proto.agones.dev.sdk.GameServer.Status.Port.toObject, includeInstance), - players: (f = msg.getPlayers()) && proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject(includeInstance, f), countersMap: (f = msg.getCountersMap()) ? f.toObject(includeInstance, proto.agones.dev.sdk.GameServer.Status.CounterStatus.toObject) : [], listsMap: (f = msg.getListsMap()) ? f.toObject(includeInstance, proto.agones.dev.sdk.GameServer.Status.ListStatus.toObject) : [] }; @@ -1702,11 +1679,6 @@ proto.agones.dev.sdk.GameServer.Status.deserializeBinaryFromReader = function(ms reader.readMessage(value,proto.agones.dev.sdk.GameServer.Status.Port.deserializeBinaryFromReader); msg.addPorts(value); break; - case 4: - var value = new proto.agones.dev.sdk.GameServer.Status.PlayerStatus; - reader.readMessage(value,proto.agones.dev.sdk.GameServer.Status.PlayerStatus.deserializeBinaryFromReader); - msg.setPlayers(value); - break; case 5: var value = msg.getCountersMap(); reader.readMessage(value, function(message, reader) { @@ -1778,14 +1750,6 @@ proto.agones.dev.sdk.GameServer.Status.serializeBinaryToWriter = function(messag proto.agones.dev.sdk.GameServer.Status.Port.serializeBinaryToWriter ); } - f = message.getPlayers(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.agones.dev.sdk.GameServer.Status.PlayerStatus.serializeBinaryToWriter - ); - } f = message.getCountersMap(true); if (f && f.getLength() > 0) { f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.agones.dev.sdk.GameServer.Status.CounterStatus.serializeBinaryToWriter); @@ -2118,222 +2082,6 @@ proto.agones.dev.sdk.GameServer.Status.Port.prototype.setPort = function(value) -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.toObject = function(opt_includeInstance) { - return proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.toObject = function(includeInstance, msg) { - var f, obj = { - count: jspb.Message.getFieldWithDefault(msg, 1, 0), - capacity: jspb.Message.getFieldWithDefault(msg, 2, 0), - idsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.agones.dev.sdk.GameServer.Status.PlayerStatus; - return proto.agones.dev.sdk.GameServer.Status.PlayerStatus.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCount(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCapacity(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.addIds(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.agones.dev.sdk.GameServer.Status.PlayerStatus.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCount(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getCapacity(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getIdsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 3, - f - ); - } -}; - - -/** - * optional int64 count = 1; - * @return {number} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int64 capacity = 2; - * @return {number} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getCapacity = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setCapacity = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * repeated string ids = 3; - * @return {!Array} - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.getIdsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.setIdsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.addIds = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.agones.dev.sdk.GameServer.Status.PlayerStatus} returns this - */ -proto.agones.dev.sdk.GameServer.Status.PlayerStatus.prototype.clearIdsList = function() { - return this.setIdsList([]); -}; - - - if (jspb.Message.GENERATE_TO_OBJECT) { @@ -2791,43 +2539,6 @@ proto.agones.dev.sdk.GameServer.Status.prototype.clearPortsList = function() { }; -/** - * optional PlayerStatus players = 4; - * @return {?proto.agones.dev.sdk.GameServer.Status.PlayerStatus} - */ -proto.agones.dev.sdk.GameServer.Status.prototype.getPlayers = function() { - return /** @type{?proto.agones.dev.sdk.GameServer.Status.PlayerStatus} */ ( - jspb.Message.getWrapperField(this, proto.agones.dev.sdk.GameServer.Status.PlayerStatus, 4)); -}; - - -/** - * @param {?proto.agones.dev.sdk.GameServer.Status.PlayerStatus|undefined} value - * @return {!proto.agones.dev.sdk.GameServer.Status} returns this -*/ -proto.agones.dev.sdk.GameServer.Status.prototype.setPlayers = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.agones.dev.sdk.GameServer.Status} returns this - */ -proto.agones.dev.sdk.GameServer.Status.prototype.clearPlayers = function() { - return this.setPlayers(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.agones.dev.sdk.GameServer.Status.prototype.hasPlayers = function() { - return jspb.Message.getField(this, 4) != null; -}; - - /** * map counters = 5; * @param {boolean=} opt_noLazyCreate Do not create the map if diff --git a/sdks/nodejs/spec/agonesSDK.spec.js b/sdks/nodejs/spec/agonesSDK.spec.js index a81181f632..b284cde459 100644 --- a/sdks/nodejs/spec/agonesSDK.spec.js +++ b/sdks/nodejs/spec/agonesSDK.spec.js @@ -19,7 +19,6 @@ const grpc = require("@grpc/grpc-js"); const messages = require("../lib/sdk_pb"); const AgonesSDK = require("../src/agonesSDK"); -const Alpha = require("../src/alpha"); describe("AgonesSDK", () => { let agonesSDK; @@ -472,10 +471,4 @@ describe("AgonesSDK", () => { } }); }); - - describe("alpha", () => { - it("returns the alpha features class", () => { - expect(agonesSDK.alpha).toBeInstanceOf(Alpha); - }); - }); }); diff --git a/sdks/nodejs/spec/alphaAgonesSDK.spec.js b/sdks/nodejs/spec/alphaAgonesSDK.spec.js deleted file mode 100644 index d3f243fa16..0000000000 --- a/sdks/nodejs/spec/alphaAgonesSDK.spec.js +++ /dev/null @@ -1,288 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -const grpc = require("@grpc/grpc-js"); - -const messages = require("../lib/alpha/alpha_pb"); -const Alpha = require("../src/alpha"); - -describe("Alpha", () => { - let alpha; - - beforeEach(() => { - const address = "localhost:9357"; - const credentials = grpc.credentials.createInsecure(); - alpha = new Alpha(address, credentials); - }); - - describe("playerConnect", () => { - it("calls the server and handles success when the player is not connected", async () => { - spyOn(alpha.client, "playerConnect").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(true); - callback(undefined, result); - }, - ); - - const result = await alpha.playerConnect("playerID"); - expect(alpha.client.playerConnect).toHaveBeenCalled(); - expect(result).toEqual(true); - }); - - it("calls the server and handles success when the player is already connected", async () => { - spyOn(alpha.client, "playerConnect").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(false); - callback(undefined, result); - }, - ); - - const result = await alpha.playerConnect("playerID"); - expect(alpha.client.playerConnect).toHaveBeenCalled(); - expect(result).toEqual(false); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "playerConnect").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.playerConnect("playerID"); - fail(); - } catch (error) { - expect(alpha.client.playerConnect).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("playerDisconnect", () => { - it("calls the server and handles success when the player is connected", async () => { - spyOn(alpha.client, "playerDisconnect").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(true); - callback(undefined, result); - }, - ); - - const result = await alpha.playerDisconnect("playerID"); - expect(alpha.client.playerDisconnect).toHaveBeenCalled(); - expect(result).toEqual(true); - }); - - it("calls the server and handles success when the player is not connected", async () => { - spyOn(alpha.client, "playerDisconnect").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(false); - callback(undefined, result); - }, - ); - - const result = await alpha.playerDisconnect("playerID"); - expect(alpha.client.playerDisconnect).toHaveBeenCalled(); - expect(result).toEqual(false); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "playerDisconnect").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.playerDisconnect("playerID"); - fail(); - } catch (error) { - expect(alpha.client.playerDisconnect).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("setPlayerCapacity", () => { - it("passes arguments to the server and handles success", async () => { - spyOn(alpha.client, "setPlayerCapacity").and.callFake( - (_request, callback) => { - const result = new messages.Empty(); - callback(undefined, result); - }, - ); - - const result = await alpha.setPlayerCapacity(64); - expect(result).toEqual({}); - expect(alpha.client.setPlayerCapacity).toHaveBeenCalled(); - const request = alpha.client.setPlayerCapacity.calls.argsFor(0)[0]; - expect(request.getCount()).toEqual(64); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "setPlayerCapacity").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.setPlayerCapacity(64); - fail(); - } catch (error) { - expect(alpha.client.setPlayerCapacity).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("getPlayerCapacity", () => { - it("calls the server and handles the response", async () => { - spyOn(alpha.client, "getPlayerCapacity").and.callFake( - (_request, callback) => { - const capacity = new messages.Count(); - capacity.setCount(64); - callback(undefined, capacity); - }, - ); - - const capacity = await alpha.getPlayerCapacity(); - expect(alpha.client.getPlayerCapacity).toHaveBeenCalled(); - expect(capacity).toEqual(64); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "getPlayerCapacity").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.getPlayerCapacity(); - fail(); - } catch (error) { - expect(alpha.client.getPlayerCapacity).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("getPlayerCount", () => { - it("calls the server and handles the response", async () => { - spyOn(alpha.client, "getPlayerCount").and.callFake( - (_request, callback) => { - const capacity = new messages.Count(); - capacity.setCount(16); - callback(undefined, capacity); - }, - ); - - const capacity = await alpha.getPlayerCount(); - expect(alpha.client.getPlayerCount).toHaveBeenCalled(); - expect(capacity).toEqual(16); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "getPlayerCount").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.getPlayerCount(); - fail(); - } catch (error) { - expect(alpha.client.getPlayerCount).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("isPlayerConnected", () => { - it("calls the server and handles success when the player is connected", async () => { - spyOn(alpha.client, "isPlayerConnected").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(true); - callback(undefined, result); - }, - ); - - const result = await alpha.isPlayerConnected("playerID"); - expect(alpha.client.isPlayerConnected).toHaveBeenCalled(); - expect(result).toEqual(true); - }); - - it("calls the server and handles success when the player is not connected", async () => { - spyOn(alpha.client, "isPlayerConnected").and.callFake( - (_request, callback) => { - const result = new messages.Bool(); - result.setBool(false); - callback(undefined, result); - }, - ); - - const result = await alpha.isPlayerConnected("playerID"); - expect(alpha.client.isPlayerConnected).toHaveBeenCalled(); - expect(result).toEqual(false); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "isPlayerConnected").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.isPlayerConnected("playerID"); - fail(); - } catch (error) { - expect(alpha.client.isPlayerConnected).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); - - describe("getConnectedPlayers", () => { - it("calls the server and handles the response", async () => { - spyOn(alpha.client, "getConnectedPlayers").and.callFake( - (_request, callback) => { - const connectedPlayers = new messages.PlayerIDList(); - connectedPlayers.setListList(["firstPlayerID", "secondPlayerID"]); - callback(undefined, connectedPlayers); - }, - ); - - const connectedPlayers = await alpha.getConnectedPlayers(); - expect(alpha.client.getConnectedPlayers).toHaveBeenCalled(); - expect(connectedPlayers).toEqual(["firstPlayerID", "secondPlayerID"]); - }); - - it("calls the server and handles failure", async () => { - spyOn(alpha.client, "getConnectedPlayers").and.callFake( - (_request, callback) => { - callback("error", undefined); - }, - ); - try { - await alpha.getConnectedPlayers(); - fail(); - } catch (error) { - expect(alpha.client.getConnectedPlayers).toHaveBeenCalled(); - expect(error).toEqual("error"); - } - }); - }); -}); diff --git a/sdks/nodejs/src/agonesSDK.d.ts b/sdks/nodejs/src/agonesSDK.d.ts index e0a620eb2f..c640914600 100644 --- a/sdks/nodejs/src/agonesSDK.d.ts +++ b/sdks/nodejs/src/agonesSDK.d.ts @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Alpha from "./alpha"; type Seconds = number; @@ -56,8 +55,6 @@ type GameServer = { export declare class AgonesSDK { constructor(); - alpha: Alpha; - get port(): string; connect(): Promise; diff --git a/sdks/nodejs/src/agonesSDK.js b/sdks/nodejs/src/agonesSDK.js index 23743b4153..83dae16e6f 100644 --- a/sdks/nodejs/src/agonesSDK.js +++ b/sdks/nodejs/src/agonesSDK.js @@ -14,7 +14,6 @@ const grpc = require("@grpc/grpc-js"); -const Alpha = require("./alpha"); const Beta = require("./beta"); const messages = require("../lib/sdk_pb"); @@ -28,7 +27,6 @@ class AgonesSDK { this.client = new services.agones.dev.sdk.SDK(address, credentials); this.healthStream = undefined; this.streams = []; - this.alpha = new Alpha(address, credentials); this.beta = new Beta(address, credentials); } diff --git a/sdks/nodejs/src/alpha.d.ts b/sdks/nodejs/src/alpha.d.ts deleted file mode 100644 index e22627eb7c..0000000000 --- a/sdks/nodejs/src/alpha.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -type PlayerId = string; - -declare class Alpha { - playerConnect(playerID: PlayerId): Promise; - - playerDisconnect(playerID: PlayerId): Promise; - - setPlayerCapacity(capacity: number): Promise>; - - getPlayerCapacity(): Promise; - - getPlayerCount(): Promise; - - isPlayerConnected(playerID: PlayerId): Promise; - - getConnectedPlayers(): Promise; -} - -export default Alpha; diff --git a/sdks/nodejs/src/alpha.js b/sdks/nodejs/src/alpha.js deleted file mode 100644 index 5f6d7d6072..0000000000 --- a/sdks/nodejs/src/alpha.js +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. - -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -const grpc = require("@grpc/grpc-js"); - -const messages = require("../lib/alpha/alpha_pb"); -const servicesPackageDefinition = require("../lib/alpha/alpha_grpc_pb"); - -class Alpha { - constructor(address, credentials) { - const services = grpc.loadPackageDefinition(servicesPackageDefinition); - this.client = new services.agones.dev.sdk.alpha.SDK(address, credentials); - } - - async playerConnect(playerID) { - const request = new messages.PlayerID(); - request.setPlayerid(playerID); - - return new Promise((resolve, reject) => { - this.client.playerConnect(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getBool()); - } - }); - }); - } - - async playerDisconnect(playerID) { - const request = new messages.PlayerID(); - request.setPlayerid(playerID); - - return new Promise((resolve, reject) => { - this.client.playerDisconnect(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getBool()); - } - }); - }); - } - - async setPlayerCapacity(capacity) { - const request = new messages.Count(); - request.setCount(capacity); - - return new Promise((resolve, reject) => { - this.client.setPlayerCapacity(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.toObject()); - } - }); - }); - } - - async getPlayerCapacity() { - const request = new messages.Empty(); - - return new Promise((resolve, reject) => { - this.client.getPlayerCapacity(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getCount()); - } - }); - }); - } - - async getPlayerCount() { - const request = new messages.Empty(); - - return new Promise((resolve, reject) => { - this.client.getPlayerCount(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getCount()); - } - }); - }); - } - - async isPlayerConnected(playerID) { - const request = new messages.PlayerID(); - request.setPlayerid(playerID); - - return new Promise((resolve, reject) => { - this.client.isPlayerConnected(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getBool()); - } - }); - }); - } - - async getConnectedPlayers() { - const request = new messages.Empty(); - - return new Promise((resolve, reject) => { - this.client.getConnectedPlayers(request, (error, response) => { - if (error) { - reject(error); - } else { - resolve(response.getListList()); - } - }); - }); - } -} - -module.exports = Alpha; diff --git a/sdks/python/agones/_generated/alpha/alpha_pb2.py b/sdks/python/agones/_generated/alpha/alpha_pb2.py index ca00f3ddb8..dc25c373e8 100644 --- a/sdks/python/agones/_generated/alpha/alpha_pb2.py +++ b/sdks/python/agones/_generated/alpha/alpha_pb2.py @@ -40,7 +40,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x61lpha.proto\x12\x14\x61gones.dev.sdk.alpha\"\x07\n\x05\x45mpty\"\x16\n\x05\x43ount\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\"\x14\n\x04\x42ool\x12\x0c\n\x04\x62ool\x18\x01 \x01(\x08\"\x1c\n\x08PlayerID\x12\x10\n\x08playerID\x18\x01 \x01(\t\"\x1c\n\x0cPlayerIDList\x12\x0c\n\x04list\x18\x01 \x03(\t2\xc3\x04\n\x03SDK\x12M\n\rPlayerConnect\x12\x1e.agones.dev.sdk.alpha.PlayerID\x1a\x1a.agones.dev.sdk.alpha.Bool\"\x00\x12P\n\x10PlayerDisconnect\x12\x1e.agones.dev.sdk.alpha.PlayerID\x1a\x1a.agones.dev.sdk.alpha.Bool\"\x00\x12O\n\x11SetPlayerCapacity\x12\x1b.agones.dev.sdk.alpha.Count\x1a\x1b.agones.dev.sdk.alpha.Empty\"\x00\x12O\n\x11GetPlayerCapacity\x12\x1b.agones.dev.sdk.alpha.Empty\x1a\x1b.agones.dev.sdk.alpha.Count\"\x00\x12L\n\x0eGetPlayerCount\x12\x1b.agones.dev.sdk.alpha.Empty\x1a\x1b.agones.dev.sdk.alpha.Count\"\x00\x12Q\n\x11IsPlayerConnected\x12\x1e.agones.dev.sdk.alpha.PlayerID\x1a\x1a.agones.dev.sdk.alpha.Bool\"\x00\x12X\n\x13GetConnectedPlayers\x12\x1b.agones.dev.sdk.alpha.Empty\x1a\".agones.dev.sdk.alpha.PlayerIDList\"\x00\x42\tZ\x07./alphab\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0b\x61lpha.proto\x12\x14\x61gones.dev.sdk.alpha2\x05\n\x03SDKB\tZ\x07./alphab\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -48,16 +48,6 @@ if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z\007./alpha' - _globals['_EMPTY']._serialized_start=37 - _globals['_EMPTY']._serialized_end=44 - _globals['_COUNT']._serialized_start=46 - _globals['_COUNT']._serialized_end=68 - _globals['_BOOL']._serialized_start=70 - _globals['_BOOL']._serialized_end=90 - _globals['_PLAYERID']._serialized_start=92 - _globals['_PLAYERID']._serialized_end=120 - _globals['_PLAYERIDLIST']._serialized_start=122 - _globals['_PLAYERIDLIST']._serialized_end=150 - _globals['_SDK']._serialized_start=153 - _globals['_SDK']._serialized_end=732 + _globals['_SDK']._serialized_start=37 + _globals['_SDK']._serialized_end=42 # @@protoc_insertion_point(module_scope) \ No newline at end of file diff --git a/sdks/python/agones/_generated/alpha/alpha_pb2_grpc.py b/sdks/python/agones/_generated/alpha/alpha_pb2_grpc.py index d68b210246..3cf5e4cb07 100644 --- a/sdks/python/agones/_generated/alpha/alpha_pb2_grpc.py +++ b/sdks/python/agones/_generated/alpha/alpha_pb2_grpc.py @@ -19,7 +19,6 @@ import grpc import warnings -from . import alpha_pb2 as alpha__pb2 GRPC_GENERATED_VERSION = '1.80.0' GRPC_VERSION = grpc.__version__ @@ -51,173 +50,15 @@ def __init__(self, channel): Args: channel: A grpc.Channel. """ - self.PlayerConnect = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/PlayerConnect', - request_serializer=alpha__pb2.PlayerID.SerializeToString, - response_deserializer=alpha__pb2.Bool.FromString, - _registered_method=True) - self.PlayerDisconnect = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/PlayerDisconnect', - request_serializer=alpha__pb2.PlayerID.SerializeToString, - response_deserializer=alpha__pb2.Bool.FromString, - _registered_method=True) - self.SetPlayerCapacity = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/SetPlayerCapacity', - request_serializer=alpha__pb2.Count.SerializeToString, - response_deserializer=alpha__pb2.Empty.FromString, - _registered_method=True) - self.GetPlayerCapacity = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/GetPlayerCapacity', - request_serializer=alpha__pb2.Empty.SerializeToString, - response_deserializer=alpha__pb2.Count.FromString, - _registered_method=True) - self.GetPlayerCount = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/GetPlayerCount', - request_serializer=alpha__pb2.Empty.SerializeToString, - response_deserializer=alpha__pb2.Count.FromString, - _registered_method=True) - self.IsPlayerConnected = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/IsPlayerConnected', - request_serializer=alpha__pb2.PlayerID.SerializeToString, - response_deserializer=alpha__pb2.Bool.FromString, - _registered_method=True) - self.GetConnectedPlayers = channel.unary_unary( - '/agones.dev.sdk.alpha.SDK/GetConnectedPlayers', - request_serializer=alpha__pb2.Empty.SerializeToString, - response_deserializer=alpha__pb2.PlayerIDList.FromString, - _registered_method=True) class SDKServicer(object): """SDK service to be used in the GameServer SDK to the Pod Sidecar. """ - def PlayerConnect(self, request, context): - """PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - - GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - unless there is already an update pending, in which case the update joins that batch operation. - - PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - list of connected playerIDs. - - If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - connected playerIDs will be left unchanged. - - An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - the server has been reached. The playerID will not be added to the list of playerIDs. - - Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - through the Kubernetes API, as indeterminate results will occur. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def PlayerDisconnect(self, request, context): - """Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - - GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - unless there is already an update pending, in which case the update joins that batch operation. - - PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - playerID value exists within the list. - - If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - will be left unchanged. - - Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - through the Kubernetes API, as indeterminate results will occur. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetPlayerCapacity(self, request, context): - """Update the GameServer.Status.Players.Capacity value with a new capacity. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPlayerCapacity(self, request, context): - """Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - even if the value has yet to be updated on the GameServer status resource. - - If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPlayerCount(self, request, context): - """Retrieves the current player count. This is always accurate from what has been set through this SDK, - even if the value has yet to be updated on the GameServer status resource. - - If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def IsPlayerConnected(self, request, context): - """Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - even if the value has yet to be updated on the GameServer status resource. - - If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetConnectedPlayers(self, request, context): - """Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - even if the value has yet to be updated on the GameServer status resource. - - If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_SDKServicer_to_server(servicer, server): rpc_method_handlers = { - 'PlayerConnect': grpc.unary_unary_rpc_method_handler( - servicer.PlayerConnect, - request_deserializer=alpha__pb2.PlayerID.FromString, - response_serializer=alpha__pb2.Bool.SerializeToString, - ), - 'PlayerDisconnect': grpc.unary_unary_rpc_method_handler( - servicer.PlayerDisconnect, - request_deserializer=alpha__pb2.PlayerID.FromString, - response_serializer=alpha__pb2.Bool.SerializeToString, - ), - 'SetPlayerCapacity': grpc.unary_unary_rpc_method_handler( - servicer.SetPlayerCapacity, - request_deserializer=alpha__pb2.Count.FromString, - response_serializer=alpha__pb2.Empty.SerializeToString, - ), - 'GetPlayerCapacity': grpc.unary_unary_rpc_method_handler( - servicer.GetPlayerCapacity, - request_deserializer=alpha__pb2.Empty.FromString, - response_serializer=alpha__pb2.Count.SerializeToString, - ), - 'GetPlayerCount': grpc.unary_unary_rpc_method_handler( - servicer.GetPlayerCount, - request_deserializer=alpha__pb2.Empty.FromString, - response_serializer=alpha__pb2.Count.SerializeToString, - ), - 'IsPlayerConnected': grpc.unary_unary_rpc_method_handler( - servicer.IsPlayerConnected, - request_deserializer=alpha__pb2.PlayerID.FromString, - response_serializer=alpha__pb2.Bool.SerializeToString, - ), - 'GetConnectedPlayers': grpc.unary_unary_rpc_method_handler( - servicer.GetConnectedPlayers, - request_deserializer=alpha__pb2.Empty.FromString, - response_serializer=alpha__pb2.PlayerIDList.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'agones.dev.sdk.alpha.SDK', rpc_method_handlers) @@ -228,193 +69,4 @@ def add_SDKServicer_to_server(servicer, server): # This class is part of an EXPERIMENTAL API. class SDK(object): """SDK service to be used in the GameServer SDK to the Pod Sidecar. - """ - - @staticmethod - def PlayerConnect(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/PlayerConnect', - alpha__pb2.PlayerID.SerializeToString, - alpha__pb2.Bool.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def PlayerDisconnect(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/PlayerDisconnect', - alpha__pb2.PlayerID.SerializeToString, - alpha__pb2.Bool.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def SetPlayerCapacity(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/SetPlayerCapacity', - alpha__pb2.Count.SerializeToString, - alpha__pb2.Empty.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def GetPlayerCapacity(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/GetPlayerCapacity', - alpha__pb2.Empty.SerializeToString, - alpha__pb2.Count.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def GetPlayerCount(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/GetPlayerCount', - alpha__pb2.Empty.SerializeToString, - alpha__pb2.Count.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def IsPlayerConnected(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/IsPlayerConnected', - alpha__pb2.PlayerID.SerializeToString, - alpha__pb2.Bool.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) - - @staticmethod - def GetConnectedPlayers(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary( - request, - target, - '/agones.dev.sdk.alpha.SDK/GetConnectedPlayers', - alpha__pb2.Empty.SerializeToString, - alpha__pb2.PlayerIDList.FromString, - options, - channel_credentials, - insecure, - call_credentials, - compression, - wait_for_ready, - timeout, - metadata, - _registered_method=True) \ No newline at end of file + """ \ No newline at end of file diff --git a/sdks/python/agones/_generated/sdk_pb2.py b/sdks/python/agones/_generated/sdk_pb2.py index d2ffb8618f..eb873dbb57 100644 --- a/sdks/python/agones/_generated/sdk_pb2.py +++ b/sdks/python/agones/_generated/sdk_pb2.py @@ -40,7 +40,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tsdk.proto\x12\x0e\x61gones.dev.sdk\"\x07\n\x05\x45mpty\"&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x1b\n\x08\x44uration\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\"\xfc\x0b\n\nGameServer\x12:\n\x0bobject_meta\x18\x01 \x01(\x0b\x32%.agones.dev.sdk.GameServer.ObjectMeta\x12-\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.agones.dev.sdk.GameServer.Spec\x12\x31\n\x06status\x18\x03 \x01(\x0b\x32!.agones.dev.sdk.GameServer.Status\x1a\x93\x03\n\nObjectMeta\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x12\n\ngeneration\x18\x05 \x01(\x03\x12\x1a\n\x12\x63reation_timestamp\x18\x06 \x01(\x03\x12\x1a\n\x12\x64\x65letion_timestamp\x18\x07 \x01(\x03\x12K\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32\x36.agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry\x12\x41\n\x06labels\x18\t \x03(\x0b\x32\x31.agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xac\x01\n\x04Spec\x12\x36\n\x06health\x18\x01 \x01(\x0b\x32&.agones.dev.sdk.GameServer.Spec.Health\x1al\n\x06Health\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x16\n\x0eperiod_seconds\x18\x02 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x03 \x01(\x05\x12\x1d\n\x15initial_delay_seconds\x18\x04 \x01(\x05\x1a\x8a\x06\n\x06Status\x12\r\n\x05state\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12<\n\taddresses\x18\x07 \x03(\x0b\x32).agones.dev.sdk.GameServer.Status.Address\x12\x35\n\x05ports\x18\x03 \x03(\x0b\x32&.agones.dev.sdk.GameServer.Status.Port\x12?\n\x07players\x18\x04 \x01(\x0b\x32..agones.dev.sdk.GameServer.Status.PlayerStatus\x12\x41\n\x08\x63ounters\x18\x05 \x03(\x0b\x32/.agones.dev.sdk.GameServer.Status.CountersEntry\x12;\n\x05lists\x18\x06 \x03(\x0b\x32,.agones.dev.sdk.GameServer.Status.ListsEntry\x1a(\n\x07\x41\x64\x64ress\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x1a\"\n\x04Port\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x1a<\n\x0cPlayerStatus\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x10\n\x08\x63\x61pacity\x18\x02 \x01(\x03\x12\x0b\n\x03ids\x18\x03 \x03(\t\x1a\x30\n\rCounterStatus\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x10\n\x08\x63\x61pacity\x18\x02 \x01(\x03\x1a.\n\nListStatus\x12\x10\n\x08\x63\x61pacity\x18\x01 \x01(\x03\x12\x0e\n\x06values\x18\x02 \x03(\t\x1a`\n\rCountersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.agones.dev.sdk.GameServer.Status.CounterStatus:\x02\x38\x01\x1aZ\n\nListsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.agones.dev.sdk.GameServer.Status.ListStatus:\x02\x38\x01\x32\xc3\x04\n\x03SDK\x12\x37\n\x05Ready\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x08\x41llocate\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x08Shutdown\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x06Health\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00(\x01\x12\x44\n\rGetGameServer\x12\x15.agones.dev.sdk.Empty\x1a\x1a.agones.dev.sdk.GameServer\"\x00\x12H\n\x0fWatchGameServer\x12\x15.agones.dev.sdk.Empty\x1a\x1a.agones.dev.sdk.GameServer\"\x00\x30\x01\x12=\n\x08SetLabel\x12\x18.agones.dev.sdk.KeyValue\x1a\x15.agones.dev.sdk.Empty\"\x00\x12\x42\n\rSetAnnotation\x12\x18.agones.dev.sdk.KeyValue\x1a\x15.agones.dev.sdk.Empty\"\x00\x12<\n\x07Reserve\x12\x18.agones.dev.sdk.Duration\x1a\x15.agones.dev.sdk.Empty\"\x00\x42\x07Z\x05./sdkb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tsdk.proto\x12\x0e\x61gones.dev.sdk\"\x07\n\x05\x45mpty\"&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"\x1b\n\x08\x44uration\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\"\x8c\x0b\n\nGameServer\x12:\n\x0bobject_meta\x18\x01 \x01(\x0b\x32%.agones.dev.sdk.GameServer.ObjectMeta\x12-\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.agones.dev.sdk.GameServer.Spec\x12\x31\n\x06status\x18\x03 \x01(\x0b\x32!.agones.dev.sdk.GameServer.Status\x1a\x93\x03\n\nObjectMeta\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tnamespace\x18\x02 \x01(\t\x12\x0b\n\x03uid\x18\x03 \x01(\t\x12\x18\n\x10resource_version\x18\x04 \x01(\t\x12\x12\n\ngeneration\x18\x05 \x01(\x03\x12\x1a\n\x12\x63reation_timestamp\x18\x06 \x01(\x03\x12\x1a\n\x12\x64\x65letion_timestamp\x18\x07 \x01(\x03\x12K\n\x0b\x61nnotations\x18\x08 \x03(\x0b\x32\x36.agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry\x12\x41\n\x06labels\x18\t \x03(\x0b\x32\x31.agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\xac\x01\n\x04Spec\x12\x36\n\x06health\x18\x01 \x01(\x0b\x32&.agones.dev.sdk.GameServer.Spec.Health\x1al\n\x06Health\x12\x10\n\x08\x64isabled\x18\x01 \x01(\x08\x12\x16\n\x0eperiod_seconds\x18\x02 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x03 \x01(\x05\x12\x1d\n\x15initial_delay_seconds\x18\x04 \x01(\x05\x1a\x9a\x05\n\x06Status\x12\r\n\x05state\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12<\n\taddresses\x18\x07 \x03(\x0b\x32).agones.dev.sdk.GameServer.Status.Address\x12\x35\n\x05ports\x18\x03 \x03(\x0b\x32&.agones.dev.sdk.GameServer.Status.Port\x12\x41\n\x08\x63ounters\x18\x05 \x03(\x0b\x32/.agones.dev.sdk.GameServer.Status.CountersEntry\x12;\n\x05lists\x18\x06 \x03(\x0b\x32,.agones.dev.sdk.GameServer.Status.ListsEntry\x1a(\n\x07\x41\x64\x64ress\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x1a\"\n\x04Port\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\x1a\x30\n\rCounterStatus\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x10\n\x08\x63\x61pacity\x18\x02 \x01(\x03\x1a.\n\nListStatus\x12\x10\n\x08\x63\x61pacity\x18\x01 \x01(\x03\x12\x0e\n\x06values\x18\x02 \x03(\t\x1a`\n\rCountersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.agones.dev.sdk.GameServer.Status.CounterStatus:\x02\x38\x01\x1aZ\n\nListsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.agones.dev.sdk.GameServer.Status.ListStatus:\x02\x38\x01J\x04\x08\x04\x10\x05R\x07players2\xc3\x04\n\x03SDK\x12\x37\n\x05Ready\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x08\x41llocate\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x08Shutdown\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00\x12:\n\x06Health\x12\x15.agones.dev.sdk.Empty\x1a\x15.agones.dev.sdk.Empty\"\x00(\x01\x12\x44\n\rGetGameServer\x12\x15.agones.dev.sdk.Empty\x1a\x1a.agones.dev.sdk.GameServer\"\x00\x12H\n\x0fWatchGameServer\x12\x15.agones.dev.sdk.Empty\x1a\x1a.agones.dev.sdk.GameServer\"\x00\x30\x01\x12=\n\x08SetLabel\x12\x18.agones.dev.sdk.KeyValue\x1a\x15.agones.dev.sdk.Empty\"\x00\x12\x42\n\rSetAnnotation\x12\x18.agones.dev.sdk.KeyValue\x1a\x15.agones.dev.sdk.Empty\"\x00\x12<\n\x07Reserve\x12\x18.agones.dev.sdk.Duration\x1a\x15.agones.dev.sdk.Empty\"\x00\x42\x07Z\x05./sdkb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -63,7 +63,7 @@ _globals['_DURATION']._serialized_start=78 _globals['_DURATION']._serialized_end=105 _globals['_GAMESERVER']._serialized_start=108 - _globals['_GAMESERVER']._serialized_end=1640 + _globals['_GAMESERVER']._serialized_end=1528 _globals['_GAMESERVER_OBJECTMETA']._serialized_start=281 _globals['_GAMESERVER_OBJECTMETA']._serialized_end=684 _globals['_GAMESERVER_OBJECTMETA_ANNOTATIONSENTRY']._serialized_start=587 @@ -75,21 +75,19 @@ _globals['_GAMESERVER_SPEC_HEALTH']._serialized_start=751 _globals['_GAMESERVER_SPEC_HEALTH']._serialized_end=859 _globals['_GAMESERVER_STATUS']._serialized_start=862 - _globals['_GAMESERVER_STATUS']._serialized_end=1640 - _globals['_GAMESERVER_STATUS_ADDRESS']._serialized_start=1214 - _globals['_GAMESERVER_STATUS_ADDRESS']._serialized_end=1254 - _globals['_GAMESERVER_STATUS_PORT']._serialized_start=1256 - _globals['_GAMESERVER_STATUS_PORT']._serialized_end=1290 - _globals['_GAMESERVER_STATUS_PLAYERSTATUS']._serialized_start=1292 - _globals['_GAMESERVER_STATUS_PLAYERSTATUS']._serialized_end=1352 - _globals['_GAMESERVER_STATUS_COUNTERSTATUS']._serialized_start=1354 - _globals['_GAMESERVER_STATUS_COUNTERSTATUS']._serialized_end=1402 - _globals['_GAMESERVER_STATUS_LISTSTATUS']._serialized_start=1404 - _globals['_GAMESERVER_STATUS_LISTSTATUS']._serialized_end=1450 - _globals['_GAMESERVER_STATUS_COUNTERSENTRY']._serialized_start=1452 - _globals['_GAMESERVER_STATUS_COUNTERSENTRY']._serialized_end=1548 - _globals['_GAMESERVER_STATUS_LISTSENTRY']._serialized_start=1550 - _globals['_GAMESERVER_STATUS_LISTSENTRY']._serialized_end=1640 - _globals['_SDK']._serialized_start=1643 - _globals['_SDK']._serialized_end=2222 + _globals['_GAMESERVER_STATUS']._serialized_end=1528 + _globals['_GAMESERVER_STATUS_ADDRESS']._serialized_start=1149 + _globals['_GAMESERVER_STATUS_ADDRESS']._serialized_end=1189 + _globals['_GAMESERVER_STATUS_PORT']._serialized_start=1191 + _globals['_GAMESERVER_STATUS_PORT']._serialized_end=1225 + _globals['_GAMESERVER_STATUS_COUNTERSTATUS']._serialized_start=1227 + _globals['_GAMESERVER_STATUS_COUNTERSTATUS']._serialized_end=1275 + _globals['_GAMESERVER_STATUS_LISTSTATUS']._serialized_start=1277 + _globals['_GAMESERVER_STATUS_LISTSTATUS']._serialized_end=1323 + _globals['_GAMESERVER_STATUS_COUNTERSENTRY']._serialized_start=1325 + _globals['_GAMESERVER_STATUS_COUNTERSENTRY']._serialized_end=1421 + _globals['_GAMESERVER_STATUS_LISTSENTRY']._serialized_start=1423 + _globals['_GAMESERVER_STATUS_LISTSENTRY']._serialized_end=1513 + _globals['_SDK']._serialized_start=1531 + _globals['_SDK']._serialized_end=2110 # @@protoc_insertion_point(module_scope) \ No newline at end of file diff --git a/sdks/python/agones/alpha.py b/sdks/python/agones/alpha.py deleted file mode 100644 index 96c7478ec4..0000000000 --- a/sdks/python/agones/alpha.py +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright Contributors to Agones a Series of LF Projects, LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Alpha SDK - Player tracking functionality.""" - -import grpc - -from agones._generated.alpha import alpha_pb2, alpha_pb2_grpc - - -class Alpha: - """Player tracking API (Alpha feature).""" - - def __init__(self, channel: grpc.Channel): - self._client = alpha_pb2_grpc.SDKStub(channel) - - def player_connect(self, player_id: str) -> bool: - """Register a player connection. Returns True if newly added.""" - return self._client.PlayerConnect(alpha_pb2.PlayerID(playerID=player_id)).bool - - def player_disconnect(self, player_id: str) -> bool: - """Register a player disconnection. Returns True if removed.""" - return self._client.PlayerDisconnect(alpha_pb2.PlayerID(playerID=player_id)).bool - - def set_player_capacity(self, capacity: int) -> None: - """Set the max player capacity.""" - self._client.SetPlayerCapacity(alpha_pb2.Count(count=capacity)) - - def get_player_capacity(self) -> int: - """Get the max player capacity.""" - return self._client.GetPlayerCapacity(alpha_pb2.Empty()).count - - def get_player_count(self) -> int: - """Get the current player count.""" - return self._client.GetPlayerCount(alpha_pb2.Empty()).count - - def is_player_connected(self, player_id: str) -> bool: - """Check if a player is currently connected.""" - return self._client.IsPlayerConnected(alpha_pb2.PlayerID(playerID=player_id)).bool - - def get_connected_players(self) -> list[str]: - """Get the list of connected player IDs.""" - return list(self._client.GetConnectedPlayers(alpha_pb2.Empty()).list) diff --git a/sdks/python/agones/sdk.py b/sdks/python/agones/sdk.py index 47f25ea1fe..1b1eeb4052 100644 --- a/sdks/python/agones/sdk.py +++ b/sdks/python/agones/sdk.py @@ -23,7 +23,6 @@ import grpc from agones._generated import sdk_pb2, sdk_pb2_grpc -from agones.alpha import Alpha from agones.beta import Beta _DEFAULT_HOST = "localhost" @@ -41,7 +40,6 @@ def __init__(self, host: str | None = None, port: int | None = None): self._client: sdk_pb2_grpc.SDKStub | None = None self._health_stream = None self._health_queue: queue.Queue | None = None - self._alpha: Alpha | None = None self._beta: Beta | None = None def connect(self, timeout: float = _DEFAULT_TIMEOUT) -> None: @@ -49,7 +47,6 @@ def connect(self, timeout: float = _DEFAULT_TIMEOUT) -> None: self._channel = grpc.insecure_channel(f"{self._host}:{self._port}") grpc.channel_ready_future(self._channel).result(timeout=timeout) self._client = sdk_pb2_grpc.SDKStub(self._channel) - self._alpha = Alpha(self._channel) self._beta = Beta(self._channel) def close(self) -> None: @@ -141,13 +138,6 @@ def set_annotation(self, key: str, value: str) -> None: # --- Sub-SDKs --- - @property - def alpha(self) -> Alpha: - """Access the Alpha SDK (player tracking).""" - if self._alpha is None: - raise RuntimeError("SDK not connected. Call connect() first.") - return self._alpha - @property def beta(self) -> Beta: """Access the Beta SDK (counters and lists).""" diff --git a/sdks/python/tests/test_alpha.py b/sdks/python/tests/test_alpha.py deleted file mode 100644 index e2a8a612bd..0000000000 --- a/sdks/python/tests/test_alpha.py +++ /dev/null @@ -1,65 +0,0 @@ -# Copyright Contributors to Agones a Series of LF Projects, LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import unittest -from unittest.mock import MagicMock - -from agones._generated.alpha import alpha_pb2 -from agones.alpha import Alpha - - -class TestAlpha(unittest.TestCase): - - def setUp(self): - self.channel = MagicMock() - self.alpha = Alpha(self.channel) - self.alpha._client = MagicMock() - - def test_player_connect(self): - self.alpha._client.PlayerConnect.return_value = alpha_pb2.Bool(bool=True) - result = self.alpha.player_connect("player-1") - self.assertTrue(result) - call_args = self.alpha._client.PlayerConnect.call_args[0][0] - self.assertEqual(call_args.playerID, "player-1") - - def test_player_disconnect(self): - self.alpha._client.PlayerDisconnect.return_value = alpha_pb2.Bool(bool=True) - result = self.alpha.player_disconnect("player-1") - self.assertTrue(result) - - def test_set_player_capacity(self): - self.alpha.set_player_capacity(100) - call_args = self.alpha._client.SetPlayerCapacity.call_args[0][0] - self.assertEqual(call_args.count, 100) - - def test_get_player_capacity(self): - self.alpha._client.GetPlayerCapacity.return_value = alpha_pb2.Count(count=64) - self.assertEqual(self.alpha.get_player_capacity(), 64) - - def test_get_player_count(self): - self.alpha._client.GetPlayerCount.return_value = alpha_pb2.Count(count=10) - self.assertEqual(self.alpha.get_player_count(), 10) - - def test_is_player_connected(self): - self.alpha._client.IsPlayerConnected.return_value = alpha_pb2.Bool(bool=False) - self.assertFalse(self.alpha.is_player_connected("unknown")) - - def test_get_connected_players(self): - self.alpha._client.GetConnectedPlayers.return_value = alpha_pb2.PlayerIDList(list=["a", "b"]) - result = self.alpha.get_connected_players() - self.assertEqual(result, ["a", "b"]) - - -if __name__ == "__main__": - unittest.main() diff --git a/sdks/python/tests/test_sdk.py b/sdks/python/tests/test_sdk.py index bfbe5901d3..97af882fa7 100644 --- a/sdks/python/tests/test_sdk.py +++ b/sdks/python/tests/test_sdk.py @@ -26,7 +26,6 @@ class TestAgonesSDK(unittest.TestCase): def setUp(self): self.sdk = AgonesSDK() self.sdk._client = MagicMock() - self.sdk._alpha = MagicMock() self.sdk._beta = MagicMock() def test_default_host_and_port(self): @@ -123,11 +122,6 @@ def test_close_stops_health(self): self.sdk.close() self.assertIsNone(self.sdk._health_queue) - def test_alpha_not_connected_raises(self): - sdk = AgonesSDK() - with self.assertRaises(RuntimeError): - _ = sdk.alpha - def test_beta_not_connected_raises(self): sdk = AgonesSDK() with self.assertRaises(RuntimeError): diff --git a/sdks/rust/proto/sdk/alpha/alpha.proto b/sdks/rust/proto/sdk/alpha/alpha.proto index fb75ed5ae0..1fce55051a 100644 --- a/sdks/rust/proto/sdk/alpha/alpha.proto +++ b/sdks/rust/proto/sdk/alpha/alpha.proto @@ -17,7 +17,6 @@ syntax = "proto3"; package agones.dev.sdk.alpha; option go_package = "./alpha"; -import "google/api/annotations.proto"; import "protoc-gen-openapiv2/options/annotations.proto"; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { @@ -31,119 +30,5 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = { }; // SDK service to be used in the GameServer SDK to the Pod Sidecar. -service SDK { - // PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the - // list of connected playerIDs. - // - // If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of - // connected playerIDs will be left unchanged. - // - // An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for - // the server has been reached. The playerID will not be added to the list of playerIDs. - // - // Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerConnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/connect" - body: "*" - }; - } +service SDK {} - // Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - // - // GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, - // unless there is already an update pending, in which case the update joins that batch operation. - // - // PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the - // playerID value exists within the list. - // - // If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list - // will be left unchanged. - // - // Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count - // through the Kubernetes API, as indeterminate results will occur. - rpc PlayerDisconnect (PlayerID) returns (Bool) { - option (google.api.http) = { - post: "/alpha/player/disconnect" - body: "*" - }; - } - - // Update the GameServer.Status.Players.Capacity value with a new capacity. - rpc SetPlayerCapacity (Count) returns (Empty) { - option (google.api.http) = { - put: "/alpha/player/capacity" - body: "*" - }; - } - - // Retrieves the current player capacity. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCapacity (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/capacity" - }; - } - - // Retrieves the current player count. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetPlayerCount (Empty) returns (Count) { - option (google.api.http) = { - get: "/alpha/player/count" - }; - } - - // Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - rpc IsPlayerConnected (PlayerID) returns (Bool) { - option (google.api.http) = { - get: "/alpha/player/connected/{playerID}" - }; - } - - // Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, - // even if the value has yet to be updated on the GameServer status resource. - // - // If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - rpc GetConnectedPlayers(Empty) returns (PlayerIDList) { - option (google.api.http) = { - get: "/alpha/player/connected" - }; - } -} - -// I am Empty -message Empty { -} - -// Store a count variable. -message Count { - int64 count = 1; -} - -// Store a boolean result -message Bool { - bool bool = 1 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {format: "boolean"}]; -} - -// The unique identifier for a given player. -message PlayerID { - string playerID = 1; -} - -// List of Player IDs -message PlayerIDList { - repeated string list = 1; -} diff --git a/sdks/rust/proto/sdk/sdk.proto b/sdks/rust/proto/sdk/sdk.proto index 7b08d1163f..0e7b541887 100644 --- a/sdks/rust/proto/sdk/sdk.proto +++ b/sdks/rust/proto/sdk/sdk.proto @@ -150,6 +150,9 @@ message GameServer { } message Status { + reserved 4; + reserved "players"; + message Address { string type = 1; string address = 2; @@ -159,13 +162,6 @@ message GameServer { string name = 1; int32 port = 2; } - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - message PlayerStatus { - int64 count = 1; - int64 capacity = 2; - repeated string ids = 3; - } // [Stage:Beta] // [FeatureFlag:CountsAndLists] @@ -186,10 +182,6 @@ message GameServer { repeated Address addresses = 7; repeated Port ports = 3; - // [Stage:Alpha] - // [FeatureFlag:PlayerTracking] - PlayerStatus players = 4; - // [Stage:Beta] // [FeatureFlag:CountsAndLists] map counters = 5; diff --git a/sdks/rust/src/alpha.rs b/sdks/rust/src/alpha.rs deleted file mode 100644 index b698e92a2c..0000000000 --- a/sdks/rust/src/alpha.rs +++ /dev/null @@ -1,239 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -use crate::errors::Result; -use tonic::transport::Channel; - -mod api { - tonic::include_proto!("agones.dev.sdk.alpha"); -} - -use api::sdk_client::SdkClient; - -/// Alpha is an instance of the Agones Alpha SDK -#[derive(Clone)] -pub struct Alpha { - client: SdkClient, -} - -impl Alpha { - /// new creates a new instance of the Alpha SDK - pub(crate) fn new(ch: Channel) -> Self { - Self { - client: SdkClient::new(ch), - } - } - - /// This returns the last player capacity that was set through the SDK. - /// If the player capacity is set from outside the SDK, use - /// [`Sdk::get_gameserver`] instead. - #[inline] - pub async fn get_player_capacity(&mut self) -> Result { - Ok(self - .client - .get_player_capacity(api::Empty {}) - .await - .map(|c| c.into_inner().count)?) - } - - /// This changes the player capacity to a new value. - #[inline] - pub async fn set_player_capacity(&mut self, count: i64) -> Result<()> { - Ok(self - .client - .set_player_capacity(api::Count { count }) - .await - .map(|_| ())?) - } - - /// This function increases the SDK’s stored player count by one, and appends - /// this playerID to `GameServer.status.players.ids`. - /// - /// Returns true and adds the playerID to the list of playerIDs if the - /// playerIDs was not already in the list of connected playerIDs. - #[inline] - pub async fn player_connect(&mut self, id: impl Into) -> Result { - Ok(self - .client - .player_connect(api::PlayerId { - player_id: id.into(), - }) - .await - .map(|b| b.into_inner().bool)?) - } - - /// This function decreases the SDK’s stored player count by one, and removes - /// the playerID from GameServer.status.players.ids. - /// - /// Will return true and remove the supplied playerID from the list of - /// connected playerIDs if the playerID value exists within the list. - #[inline] - pub async fn player_disconnect(&mut self, id: impl Into) -> Result { - Ok(self - .client - .player_disconnect(api::PlayerId { - player_id: id.into(), - }) - .await - .map(|b| b.into_inner().bool)?) - } - - /// Returns the current player count. - #[inline] - pub async fn get_player_count(&mut self) -> Result { - Ok(self - .client - .get_player_count(api::Empty {}) - .await - .map(|c| c.into_inner().count)?) - } - - /// This returns if the playerID is currently connected to the GameServer. - /// This is always accurate, even if the value hasn’t been updated to the - /// Game Server status yet. - #[inline] - pub async fn is_player_connected(&mut self, id: impl Into) -> Result { - Ok(self - .client - .is_player_connected(api::PlayerId { - player_id: id.into(), - }) - .await - .map(|b| b.into_inner().bool)?) - } - - /// This returns the list of the currently connected player ids. - /// This is always accurate, even if the value has not been updated to the - /// Game Server status yet. - #[inline] - pub async fn get_connected_players(&mut self) -> Result> { - Ok(self - .client - .get_connected_players(api::Empty {}) - .await - .map(|pl| pl.into_inner().list)?) - } -} - - -#[cfg(test)] -mod tests { - use tokio; - - // MockAlpha simulates Alpha's async methods for unit testing - struct MockAlpha { - capacity: i64, - player_count: i64, - player_connected: Option, - player_disconnected: Option, - } - - impl MockAlpha { - fn new() -> Self { - Self { - capacity: 0, - player_count: 0, - player_connected: None, - player_disconnected: None, - } - } - - async fn get_player_capacity(&mut self) -> i64 { - self.capacity - } - - async fn set_player_capacity(&mut self, count: i64) { - self.capacity = count; - } - - async fn player_connect(&mut self, id: impl Into) -> bool { - let id = id.into(); - self.player_connected = Some(id.clone()); - self.player_count += 1; - true - } - - async fn player_disconnect(&mut self, id: impl Into) -> bool { - let id = id.into(); - self.player_disconnected = Some(id.clone()); - if self.player_count > 0 { - self.player_count -= 1; - } - true - } - - async fn get_player_count(&mut self) -> i64 { - self.player_count - } - - async fn is_player_connected(&mut self, id: impl Into) -> bool { - match &self.player_connected { - Some(connected) => id.into() == *connected, - None => false, - } - } - - async fn get_connected_players(&mut self) -> Vec { - match &self.player_connected { - Some(id) => vec![id.clone()], - None => vec![], - } - } - } - - #[tokio::test] - async fn test_alpha_player_flow() { - let mut alpha = MockAlpha::new(); - - // Set and get player capacity - alpha.set_player_capacity(15).await; - assert_eq!(alpha.capacity, 15); - - let capacity = alpha.get_player_capacity().await; - assert_eq!(capacity, 15); - - // Connect player - let player_id = "one"; - let ok = alpha.player_connect(player_id).await; - assert!(ok); - assert_eq!(alpha.player_connected.as_deref(), Some(player_id)); - - // Get player count - let count = alpha.get_player_count().await; - assert_eq!(count, 1); - - // Disconnect player - let ok = alpha.player_disconnect(player_id).await; - assert!(ok); - assert_eq!(alpha.player_disconnected.as_deref(), Some(player_id)); - - // Put the player back in - let ok = alpha.player_connect(player_id).await; - assert!(ok); - let count = alpha.get_player_count().await; - assert_eq!(count, 1); - - // Is player connected (should be true) - let ok = alpha.is_player_connected(player_id).await; - assert!(ok, "Player should be connected"); - - // Is player connected (should be false) - let ok = alpha.is_player_connected("false").await; - assert!(!ok, "Player should not be connected"); - - // Get connected players - let list = alpha.get_connected_players().await; - assert_eq!(list, vec![player_id]); - } -} \ No newline at end of file diff --git a/sdks/rust/src/lib.rs b/sdks/rust/src/lib.rs index 1e55685832..93f5570819 100644 --- a/sdks/rust/src/lib.rs +++ b/sdks/rust/src/lib.rs @@ -14,9 +14,8 @@ //! the Rust game server SDK -pub mod alpha; pub mod beta; pub mod errors; mod sdk; -pub use sdk::{GameServer, ObjectMeta, PlayerStatus, Port, Sdk, Spec, Status}; +pub use sdk::{GameServer, ObjectMeta, Port, Sdk, Spec, Status}; diff --git a/sdks/rust/src/sdk.rs b/sdks/rust/src/sdk.rs index d045291ac5..7e6d285ad7 100644 --- a/sdks/rust/src/sdk.rs +++ b/sdks/rust/src/sdk.rs @@ -22,7 +22,7 @@ mod api { use api::sdk_client::SdkClient; pub use api::{ game_server::{ - status::{PlayerStatus, Port}, + status::{Port}, ObjectMeta, Spec, Status, }, GameServer, @@ -30,7 +30,7 @@ pub use api::{ pub type WatchStream = tonic::Streaming; -use crate::{alpha::Alpha, beta::Beta, errors::Result}; +use crate::{beta::Beta, errors::Result}; #[inline] fn empty() -> api::Empty { @@ -41,7 +41,6 @@ fn empty() -> api::Empty { #[derive(Clone)] pub struct Sdk { client: SdkClient, - alpha: Alpha, beta: Beta, } @@ -103,7 +102,6 @@ impl Sdk { // will only attempt to connect on first invocation, so won't exit straight away. let channel = builder.connect_lazy(); let mut client = SdkClient::new(channel.clone()); - let alpha = Alpha::new(channel.clone()); let beta = Beta::new(channel); tokio::time::timeout(Duration::from_secs(30), async { @@ -118,14 +116,9 @@ impl Sdk { }) .await?; - Ok(Self { client, alpha, beta }) + Ok(Self { client, beta }) } - /// Alpha returns the Alpha SDK - #[inline] - pub fn alpha(&self) -> &Alpha { - &self.alpha - } /// Beta returns the Beta SDK #[inline] diff --git a/sdks/swagger/alpha.swagger.json b/sdks/swagger/alpha.swagger.json index 6d579f5a96..832679be4d 100644 --- a/sdks/swagger/alpha.swagger.json +++ b/sdks/swagger/alpha.swagger.json @@ -4,11 +4,6 @@ "title": "alpha.proto", "version": "version not set" }, - "tags": [ - { - "name": "SDK" - } - ], "schemes": [ "http" ], @@ -18,217 +13,6 @@ "produces": [ "application/json" ], - "paths": { - "/alpha/player/capacity": { - "get": { - "summary": "Retrieves the current player capacity. This is always accurate from what has been set through this SDK,\neven if the value has yet to be updated on the GameServer status resource.", - "description": "If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.", - "operationId": "GetPlayerCapacity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaCount" - } - } - }, - "tags": [ - "SDK" - ] - }, - "put": { - "summary": "Update the GameServer.Status.Players.Capacity value with a new capacity.", - "operationId": "SetPlayerCapacity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaEmpty" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Store a count variable.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/alphaCount" - } - } - ], - "tags": [ - "SDK" - ] - } - }, - "/alpha/player/connect": { - "post": { - "summary": "PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs.", - "description": "GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,\nunless there is already an update pending, in which case the update joins that batch operation.\n\nPlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the\nlist of connected playerIDs.\n\nIf the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of\nconnected playerIDs will be left unchanged.\n\nAn error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for\nthe server has been reached. The playerID will not be added to the list of playerIDs.\n\nWarning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count\nthrough the Kubernetes API, as indeterminate results will occur.", - "operationId": "PlayerConnect", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaBool" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "The unique identifier for a given player.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/alphaPlayerID" - } - } - ], - "tags": [ - "SDK" - ] - } - }, - "/alpha/player/connected": { - "get": { - "summary": "Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK,\neven if the value has yet to be updated on the GameServer status resource.", - "description": "If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.", - "operationId": "GetConnectedPlayers", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaPlayerIDList" - } - } - }, - "tags": [ - "SDK" - ] - } - }, - "/alpha/player/connected/{playerID}": { - "get": { - "summary": "Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK,\neven if the value has yet to be updated on the GameServer status resource.", - "description": "If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status.", - "operationId": "IsPlayerConnected", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaBool" - } - } - }, - "parameters": [ - { - "name": "playerID", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "SDK" - ] - } - }, - "/alpha/player/count": { - "get": { - "summary": "Retrieves the current player count. This is always accurate from what has been set through this SDK,\neven if the value has yet to be updated on the GameServer status resource.", - "description": "If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value.", - "operationId": "GetPlayerCount", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaCount" - } - } - }, - "tags": [ - "SDK" - ] - } - }, - "/alpha/player/disconnect": { - "post": { - "summary": "Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs.", - "description": "GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now,\nunless there is already an update pending, in which case the update joins that batch operation.\n\nPlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the\nplayerID value exists within the list.\n\nIf the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list\nwill be left unchanged.\n\nWarning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count\nthrough the Kubernetes API, as indeterminate results will occur.", - "operationId": "PlayerDisconnect", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/alphaBool" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "The unique identifier for a given player.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/alphaPlayerID" - } - } - ], - "tags": [ - "SDK" - ] - } - } - }, - "definitions": { - "alphaBool": { - "type": "object", - "properties": { - "bool": { - "type": "boolean", - "format": "boolean" - } - }, - "title": "Store a boolean result" - }, - "alphaCount": { - "type": "object", - "properties": { - "count": { - "type": "string", - "format": "int64" - } - }, - "description": "Store a count variable." - }, - "alphaEmpty": { - "type": "object", - "title": "I am Empty" - }, - "alphaPlayerID": { - "type": "object", - "properties": { - "playerID": { - "type": "string" - } - }, - "description": "The unique identifier for a given player." - }, - "alphaPlayerIDList": { - "type": "object", - "properties": { - "list": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "List of Player IDs" - } - } + "paths": {}, + "definitions": {} } diff --git a/sdks/swagger/sdk.swagger.json b/sdks/swagger/sdk.swagger.json index 3738432cbc..cc6c4025e6 100644 --- a/sdks/swagger/sdk.swagger.json +++ b/sdks/swagger/sdk.swagger.json @@ -365,26 +365,6 @@ }, "title": "[Stage:Beta]\n[FeatureFlag:CountsAndLists]" }, - "StatusPlayerStatus": { - "type": "object", - "properties": { - "count": { - "type": "string", - "format": "int64" - }, - "capacity": { - "type": "string", - "format": "int64" - }, - "ids": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "title": "[Stage:Alpha]\n[FeatureFlag:PlayerTracking]" - }, "StatusPort": { "type": "object", "properties": { @@ -449,10 +429,6 @@ "$ref": "#/definitions/StatusPort" } }, - "players": { - "$ref": "#/definitions/StatusPlayerStatus", - "title": "[Stage:Alpha]\n[FeatureFlag:PlayerTracking]" - }, "counters": { "type": "object", "additionalProperties": { diff --git a/sdks/unity/AgonesAlphaSdk.cs b/sdks/unity/AgonesAlphaSdk.cs deleted file mode 100644 index 464ccffe02..0000000000 --- a/sdks/unity/AgonesAlphaSdk.cs +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, 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. - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Runtime.CompilerServices; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Agones.Model; -using MiniJSON; -using UnityEngine; -using UnityEngine.Networking; - -namespace Agones -{ - /// - /// Agones Alpha SDK for Unity. - /// - public class AgonesAlphaSdk : AgonesSdk - { - #region AgonesRestClient Public Methods - - private struct Player - { - public string playerID; - - public Player(string playerId) - { - this.playerID = playerId; - } - } - - /// - /// This function increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. - /// Returns true and adds the playerID to the list of playerIDs if the playerIDs was not already in the list of connected playerIDs. - /// - /// True if the playerID was added to the list of playerIDs - public async Task PlayerConnect(string id) - { - string json = JsonUtility.ToJson(new Player(playerId: id)); - return await SendRequestAsync("/alpha/player/connect", json).ContinueWith(task => task.Result.ok); - } - - /// - /// This function decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. - /// Will return true and remove the supplied playerID from the list of connected playerIDs if the playerID value exists within the list. - /// - /// True if the playerID was removed from the list of playerIDs - public async Task PlayerDisconnect(string id) - { - string json = JsonUtility.ToJson(new Player(playerId: id)); - return await SendRequestAsync("/alpha/player/disconnect", json).ContinueWith(task => task.Result.ok); - } - - private struct Capacity - { - public long count; - - public Capacity(long count) - { - this.count = count; - } - } - - /// - /// This changes the player capacity to a new value. - /// - /// gRPC Status of the request - public async Task SetPlayerCapacity(long count) - { - string json = JsonUtility.ToJson(new Capacity(count: count)); - return await SendRequestAsync("/alpha/player/capacity", json, UnityWebRequest.kHttpVerbPUT).ContinueWith(task => task.Result.ok); - } - - - /// - /// This returns the last player capacity that was set through the SDK. - /// If the player capacity is set from outside the SDK, use SDK.GameServer() instead. - /// - /// Player capacity - public async Task GetPlayerCapacity() - { - var result = await SendRequestAsync("/alpha/player/capacity", "{}", UnityWebRequest.kHttpVerbGET); - - if (!result.ok) - { - return 0; - } - - if (Json.Deserialize(result.json) is not Dictionary data - || !data.TryGetValue("count", out object countObject) - || countObject is not string countString - || !long.TryParse(countString, out long count)) - { - return 0; - } - - return count; - } - - /// - /// Returns the current player count. - /// - /// Player count - public async Task GetPlayerCount() - { - var result = await SendRequestAsync("/alpha/player/count", "{}", UnityWebRequest.kHttpVerbGET); - - if (!result.ok) - { - return 0; - } - - if (Json.Deserialize(result.json) is not Dictionary data - || !data.TryGetValue("count", out object countObject) - || countObject is not string countString - || !long.TryParse(countString, out long count)) - { - return 0; - } - - return count; - } - - /// - /// This returns if the playerID is currently connected to the GameServer. - /// This is always accurate, even if the value hasn’t been updated to the GameServer status yet. - /// - /// True if the playerID is currently connected - public async Task IsPlayerConnected(string id) - { - var result = await SendRequestAsync($"/alpha/player/connected/{id}", "{}", UnityWebRequest.kHttpVerbGET); - - if (!result.ok) - { - return false; - } - - if (Json.Deserialize(result.json) is not Dictionary data - || !data.TryGetValue("bool", out object boolObject) - || boolObject is not bool resultBool) - { - return false; - } - - return resultBool; - } - - /// - /// This returns the list of the currently connected player ids. - /// This is always accurate, even if the value has not been updated to the Game Server status yet. - /// - /// The list of the currently connected player ids - public async Task> GetConnectedPlayers() - { - var result = await SendRequestAsync("/alpha/player/connected", "{}", UnityWebRequest.kHttpVerbGET); - - if (!result.ok) - { - return new List(); - } - - if (Json.Deserialize(result.json) is not Dictionary data - || !data.TryGetValue("list", out object listObject) - || listObject is not List list) - { - return new List(); - } - - return list.Where(l => l is string).Select(l => l.ToString()).ToList();; - } - - #endregion - - } -} \ No newline at end of file diff --git a/sdks/unity/AgonesAlphaSdk.cs.meta b/sdks/unity/AgonesAlphaSdk.cs.meta deleted file mode 100644 index 1b315c041a..0000000000 --- a/sdks/unity/AgonesAlphaSdk.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: a4bfa24699304c85ad1b9ef381ab10ff -timeCreated: 1653041463 \ No newline at end of file diff --git a/sdks/unity/Tests/Runtime/PlayMode/AgonesSdkIntegrationTests.cs b/sdks/unity/Tests/Runtime/PlayMode/AgonesSdkIntegrationTests.cs index 3d80007b93..049f76b16e 100644 --- a/sdks/unity/Tests/Runtime/PlayMode/AgonesSdkIntegrationTests.cs +++ b/sdks/unity/Tests/Runtime/PlayMode/AgonesSdkIntegrationTests.cs @@ -28,7 +28,6 @@ public class AgonesSdkIntegrationTests private AgonesSdk sdk; private AgonesBetaSdk betaSdk; - private AgonesAlphaSdk alphaSdk; [UnitySetUp] public IEnumerator UnitySetUp() @@ -38,11 +37,9 @@ public IEnumerator UnitySetUp() this.sdk = gameObject.AddComponent(); this.betaSdk = gameObject.AddComponent(); - this.alphaSdk = gameObject.AddComponent(); Assert.IsNotNull(this.sdk); Assert.IsNotNull(this.betaSdk); - Assert.IsNotNull(this.alphaSdk); } [UnityTest] diff --git a/sdks/unreal/Agones/Source/Agones/Classes/Classes.h b/sdks/unreal/Agones/Source/Agones/Classes/Classes.h index 05ce99411a..caf85ca429 100644 --- a/sdks/unreal/Agones/Source/Agones/Classes/Classes.h +++ b/sdks/unreal/Agones/Source/Agones/Classes/Classes.h @@ -348,24 +348,6 @@ struct FDuration int64 Seconds = 0; }; -USTRUCT(BlueprintType) -struct FAgonesPlayer -{ - GENERATED_BODY() - - UPROPERTY(BlueprintReadOnly, Category="Agones") - FString PlayerID; -}; - -USTRUCT(BlueprintType) -struct FPlayerCapacity -{ - GENERATED_BODY() - - UPROPERTY(BlueprintReadOnly, Category="Agones") - int64 Count = 0; -}; - USTRUCT(BlueprintType) struct FEmptyResponse { @@ -435,24 +417,6 @@ struct FCountResponse } }; -USTRUCT(BlueprintType) -struct FConnectedPlayersResponse -{ - GENERATED_BODY() - - FConnectedPlayersResponse() - { - } - - UPROPERTY(BlueprintReadOnly, Category="Agones") - TArray ConnectedPlayers; - - explicit FConnectedPlayersResponse(const TSharedPtr JsonObject) - { - JsonObject->TryGetStringArrayField(TEXT("list"), ConnectedPlayers); - } -}; - USTRUCT(BlueprintType) struct FCounterResponse { diff --git a/sdks/unreal/Agones/Source/Agones/Private/AgonesSubsystem.cpp b/sdks/unreal/Agones/Source/Agones/Private/AgonesSubsystem.cpp index 5ad812da25..5c233b0307 100644 --- a/sdks/unreal/Agones/Source/Agones/Private/AgonesSubsystem.cpp +++ b/sdks/unreal/Agones/Source/Agones/Private/AgonesSubsystem.cpp @@ -448,88 +448,6 @@ void UAgonesSubsystem::Reserve( Request->ProcessRequest(); } -void UAgonesSubsystem::PlayerConnect( - const FString PlayerId, const FPlayerConnectDelegate SuccessDelegate, const FAgonesErrorDelegate ErrorDelegate) -{ - const FAgonesPlayer Player = {PlayerId}; - FString Json; - if (!FJsonObjectConverter::UStructToJsonObjectString(Player, Json)) - { - ErrorDelegate.ExecuteIfBound({TEXT("Failed to serializing request")}); - return; - } - - // TODO(dom) - look at JSON encoding in UE4. - Json = Json.Replace(TEXT("playerId"), TEXT("playerID")); - - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/connect", FHttpVerb::Post, Json); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FConnectedResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - -void UAgonesSubsystem::PlayerDisconnect( - const FString PlayerId, const FPlayerDisconnectDelegate SuccessDelegate, const FAgonesErrorDelegate ErrorDelegate) -{ - const FAgonesPlayer Player = {PlayerId}; - FString Json; - if (!FJsonObjectConverter::UStructToJsonObjectString(Player, Json)) - { - ErrorDelegate.ExecuteIfBound({TEXT("Failed to serializing request")}); - return; - } - - // TODO(dom) - look at JSON encoding in UE4. - Json = Json.Replace(TEXT("playerId"), TEXT("playerID")); - - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/disconnect", FHttpVerb::Post, Json); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FDisconnectResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - -void UAgonesSubsystem::SetPlayerCapacity( - const int64 Count, const FSetPlayerCapacityDelegate SuccessDelegate, const FAgonesErrorDelegate ErrorDelegate) -{ - const FPlayerCapacity PlayerCapacity = {Count}; - FString Json; - if (!FJsonObjectConverter::UStructToJsonObjectString(PlayerCapacity, Json)) - { - ErrorDelegate.ExecuteIfBound({TEXT("Failed to serializing request")}); - return; - } - - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/capacity", FHttpVerb::Put, Json); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded) { - if (!IsValidResponse(bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound({}); - }); - Request->ProcessRequest(); -} - void UAgonesSubsystem::GetCounter(FString Key, FGetCounterDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate) { FHttpRequestRef Request = BuildAgonesRequest(FString::Format(TEXT("v1beta1/counters/{0}"), {Key}), FHttpVerb::Get, ""); @@ -589,87 +507,6 @@ FTimerManager* UAgonesSubsystem::GetTimerManager() const return TimerManager.Get(); } -void UAgonesSubsystem::GetPlayerCapacity(FGetPlayerCapacityDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate) -{ - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/capacity", FHttpVerb::Get, ""); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FCountResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - -void UAgonesSubsystem::GetPlayerCount(FGetPlayerCountDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate) -{ - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/count", FHttpVerb::Get, ""); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FCountResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - -void UAgonesSubsystem::IsPlayerConnected( - const FString PlayerId, const FIsPlayerConnectedDelegate SuccessDelegate, const FAgonesErrorDelegate ErrorDelegate) -{ - FHttpRequestRef Request = BuildAgonesRequest( - FString::Format(TEXT("alpha/player/connected/{0}"), - static_cast( - TArray>{ - FStringFormatArg(PlayerId) - } - ) - ), - FHttpVerb::Get, - "" - ); - - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FConnectedResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - -void UAgonesSubsystem::GetConnectedPlayers( - const FGetConnectedPlayersDelegate SuccessDelegate, const FAgonesErrorDelegate ErrorDelegate) -{ - FHttpRequestRef Request = BuildAgonesRequest("alpha/player/connected/{0}", FHttpVerb::Get, ""); - Request->OnProcessRequestComplete().BindWeakLambda(this, - [SuccessDelegate, ErrorDelegate](FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded) { - TSharedPtr JsonObject; - - if (!IsValidJsonResponse(JsonObject, bSucceeded, HttpResponse, ErrorDelegate)) - { - return; - } - - SuccessDelegate.ExecuteIfBound(FConnectedPlayersResponse(JsonObject)); - }); - Request->ProcessRequest(); -} - void UAgonesSubsystem::GetList(const FString& Key, FListDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate) { const FString Path = FString::Printf(TEXT("v1beta1/lists/%s"), *Key); diff --git a/sdks/unreal/Agones/Source/Agones/Public/AgonesSubsystem.h b/sdks/unreal/Agones/Source/Agones/Public/AgonesSubsystem.h index 109376adfc..59611e85d5 100644 --- a/sdks/unreal/Agones/Source/Agones/Public/AgonesSubsystem.h +++ b/sdks/unreal/Agones/Source/Agones/Public/AgonesSubsystem.h @@ -31,20 +31,8 @@ DECLARE_DYNAMIC_DELEGATE_OneParam(FAllocateDelegate, const FEmptyResponse&, Resp DECLARE_DYNAMIC_DELEGATE_OneParam(FGameServerDelegate, const FGameServerResponse&, Response); -DECLARE_DYNAMIC_DELEGATE_OneParam(FGetConnectedPlayersDelegate, const FConnectedPlayersResponse&, Response); - -DECLARE_DYNAMIC_DELEGATE_OneParam(FGetPlayerCapacityDelegate, const FCountResponse&, Response); - -DECLARE_DYNAMIC_DELEGATE_OneParam(FGetPlayerCountDelegate, const FCountResponse&, Response); - DECLARE_DYNAMIC_DELEGATE_OneParam(FHealthDelegate, const FEmptyResponse&, Response); -DECLARE_DYNAMIC_DELEGATE_OneParam(FIsPlayerConnectedDelegate, const FConnectedResponse&, Response); - -DECLARE_DYNAMIC_DELEGATE_OneParam(FPlayerConnectDelegate, const FConnectedResponse&, Response); - -DECLARE_DYNAMIC_DELEGATE_OneParam(FPlayerDisconnectDelegate, const FDisconnectResponse&, Response); - DECLARE_DYNAMIC_DELEGATE_OneParam(FReadyDelegate, const FEmptyResponse&, Response); DECLARE_DYNAMIC_DELEGATE_OneParam(FReserveDelegate, const FEmptyResponse&, Response); @@ -53,8 +41,6 @@ DECLARE_DYNAMIC_DELEGATE_OneParam(FSetAnnotationDelegate, const FEmptyResponse&, DECLARE_DYNAMIC_DELEGATE_OneParam(FSetLabelDelegate, const FEmptyResponse&, Response); -DECLARE_DYNAMIC_DELEGATE_OneParam(FSetPlayerCapacityDelegate, const FEmptyResponse&, Response); - DECLARE_DYNAMIC_DELEGATE_OneParam(FGetCounterDelegate, const FCounterResponse&, Response); DECLARE_DYNAMIC_DELEGATE_OneParam(FIncrementCounterDelegate, const FEmptyResponse&, Response); @@ -267,68 +253,6 @@ class AGONES_API UAgonesSubsystem : public UGameInstanceSubsystem UFUNCTION(BlueprintCallable, Category = "Agones | Lifecycle") void Shutdown(FShutdownDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - /** - * \brief [Alpha] GetConnectedPlayers returns the list of the currently connected player ids. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void GetConnectedPlayers(FGetConnectedPlayersDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] GetPlayerCapacity gets the last player capacity that was set through the SDK. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void GetPlayerCapacity(FGetPlayerCapacityDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] GetPlayerCount returns the current player count - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void GetPlayerCount(FGetPlayerCountDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] IsPlayerConnected returns if the playerID is currently connected to the GameServer. - * \param PlayerId - PlayerID of player to check. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void IsPlayerConnected(FString PlayerId, FIsPlayerConnectedDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to status.players.id. - * \param PlayerId - PlayerID of connecting player. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void PlayerConnect(FString PlayerId, FPlayerConnectDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] PlayerDisconnect Decreases the SDK’s stored player count by one, and removes the playerID from - * status.players.id. - * - * \param PlayerId - PlayerID of disconnecting player. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void PlayerDisconnect(FString PlayerId, FPlayerDisconnectDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - - /** - * \brief [Alpha] SetPlayerCapacity changes the player capacity to a new value. - * \param Count - Capacity of game server. - * \param SuccessDelegate - Called on Successful call. - * \param ErrorDelegate - Called on Unsuccessful call. - */ - UFUNCTION(BlueprintCallable, Category = "Agones | Alpha | Player Tracking") - void SetPlayerCapacity(int64 Count, FSetPlayerCapacityDelegate SuccessDelegate, FAgonesErrorDelegate ErrorDelegate); - /** * \brief [Beta] GetCounter return counter (count and capacity) associated with a Key. * \param Key - Key to counter value diff --git a/test/sdk/csharp/Program.cs b/test/sdk/csharp/Program.cs index 76b23029a6..7b836a0bbe 100644 --- a/test/sdk/csharp/Program.cs +++ b/test/sdk/csharp/Program.cs @@ -89,82 +89,6 @@ } var featureGates = Environment.GetEnvironmentVariable("FEATURE_GATES") ?? ""; -if (featureGates.Contains("PlayerTracking")) -{ - var alpha = sdk.Alpha(); - var capacity = 10; - var playerId = "1234"; - - { - var status = await alpha.SetPlayerCapacityAsync(capacity); - if (status.StatusCode != StatusCode.OK) - { - Console.Error.WriteLine( - $"Error setting player capacity. StatusCode={status.StatusCode}, Detail={status.Detail}"); - Environment.Exit(1); - } - } - - { - var c = await alpha.GetPlayerCapacityAsync(); - if (c != capacity) - { - Console.Error.WriteLine( - $"Player Capacity should be {capacity}, but is {c}"); - Environment.Exit(1); - } - } - - { - var ok = await alpha.PlayerConnectAsync(playerId); - if (!ok) - { - Console.Error.WriteLine( - $"PlayerConnect returned false"); - Environment.Exit(1); - } - } - - { - var ok = await alpha.IsPlayerConnectedAsync(playerId); - if (!ok) - { - Console.Error.WriteLine( - $"IsPlayerConnected returned false"); - Environment.Exit(1); - } - } - - { - var players = await alpha.GetConnectedPlayersAsync(); - if (players.Count == 0) - { - Console.Error.WriteLine( - $"No connected players returned"); - Environment.Exit(1); - } - } - - { - var ok = await alpha.PlayerDisconnectAsync(playerId); - if (!ok) - { - Console.Error.WriteLine( - $"PlayerDisconnect returned false"); - Environment.Exit(1); - } - } - - { - var c = await alpha.GetPlayerCountAsync(); - if (c != 0) - { - Console.Error.WriteLine( - $"Player Count should be 0, but is {c}"); - Environment.Exit(1); - } - } -} if (featureGates.Contains("CountsAndLists")) // Tests are expected to run sequentially on the same pre-defined Counter in the localsdk server diff --git a/test/sdk/go/sdk-client-test.go b/test/sdk/go/sdk-client-test.go index 75ec1cd330..965d8fdd6c 100644 --- a/test/sdk/go/sdk-client-test.go +++ b/test/sdk/go/sdk-client-test.go @@ -115,10 +115,6 @@ func main() { log.Fatalf("Could not set annotation: %s", err) } - if runtime.FeatureEnabled(runtime.FeaturePlayerTracking) { - testPlayerTracking(sdk) - } - if runtime.FeatureEnabled(runtime.FeatureCountsAndLists) { testCounts(sdk) testLists(sdk) @@ -136,52 +132,6 @@ func main() { time.Sleep(time.Duration(gracefulTerminationDelaySec) * time.Second) } -func testPlayerTracking(sdk *goSdk.SDK) { - capacity := int64(10) - if err := sdk.Alpha().SetPlayerCapacity(capacity); err != nil { - log.Fatalf("Error setting player capacity: %s", err) - } - - c, err := sdk.Alpha().GetPlayerCapacity() - if err != nil { - log.Fatalf("Error getting player capacity: %s", err) - } - if c != capacity { - log.Fatalf("Player Capacity should be %d, but is %d", capacity, c) - } - - playerID := "1234" - if ok, err := sdk.Alpha().PlayerConnect(playerID); err != nil { - log.Fatalf("Error registering player as connected: %s", err) - } else if !ok { - log.Fatalf("PlayerConnect returned false") - } - - if ok, err := sdk.Alpha().IsPlayerConnected(playerID); err != nil { - log.Fatalf("Error checking if player is connected: %s", err) - } else if !ok { - log.Fatalf("IsPlayerConnected returned false") - } - - if list, err := sdk.Alpha().GetConnectedPlayers(); err != nil { - log.Fatalf("Error getting connected player: %s", err) - } else if len(list) == 0 { - log.Fatalf("No connected players returned") - } - - if ok, err := sdk.Alpha().PlayerDisconnect(playerID); err != nil { - log.Fatalf("Error registering player as disconnected: %s", err) - } else if !ok { - log.Fatalf("PlayerDisconnect returned false") - } - - if c, err = sdk.Alpha().GetPlayerCount(); err != nil { - log.Fatalf("Error retrieving player count: %s", err) - } else if c != int64(0) { - log.Fatalf("Player Count should be 0, but is %d", c) - } -} - func testCounts(sdk *goSdk.SDK) { // LocalSDKServer starting "rooms": {Count: 1, Capacity: 10} counter := "rooms" diff --git a/test/sdk/python/testSDKClient.py b/test/sdk/python/testSDKClient.py index d5f9465508..2ca0cf61f4 100644 --- a/test/sdk/python/testSDKClient.py +++ b/test/sdk/python/testSDKClient.py @@ -23,42 +23,6 @@ from agones import AgonesSDK - -def run_player_tracking(alpha): - print("python: Setting player capacity...") - alpha.set_player_capacity(10) - - capacity = alpha.get_player_capacity() - print(f"python: Player capacity: {capacity}") - - player_id = "1234" - print("python: Increasing the player count...") - added = alpha.player_connect(player_id) - if not added: - raise RuntimeError("Failed to add player") - print("python: Added player") - - connected = alpha.is_player_connected(player_id) - if not connected: - raise RuntimeError(f"{player_id} is not connected") - print(f"python: {player_id} is connected") - - players = alpha.get_connected_players() - print(f"python: Connected players: {players}") - - count = alpha.get_player_count() - print(f"python: Current player count: {count}") - - print("python: Decreasing the player count...") - removed = alpha.player_disconnect(player_id) - if not removed: - raise RuntimeError("Failed to remove player") - print("python: Removed player") - - count = alpha.get_player_count() - print(f"python: Current player count: {count}") - - def run_counts_and_lists(beta): counter = "rooms" print("python: Getting Counter count...") @@ -152,8 +116,6 @@ def on_game_server(gs): print("python: ...Allocated") feature_gates = os.environ.get("FEATURE_GATES", "") - if "PlayerTracking=true" in feature_gates: - run_player_tracking(sdk.alpha) if "CountsAndLists=true" in feature_gates: run_counts_and_lists(sdk.beta) diff --git a/test/sdk/restapi/alpha/swagger/api_sdk.go b/test/sdk/restapi/alpha/swagger/api_sdk.go deleted file mode 100644 index 2cb40d8a01..0000000000 --- a/test/sdk/restapi/alpha/swagger/api_sdk.go +++ /dev/null @@ -1,632 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. - -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -import ( - "context" - "io/ioutil" - "net/http" - "net/url" - "strings" - "fmt" -) - -// Linger please -var ( - _ context.Context -) - -type SDKApiService service -/* -SDKApiService Returns the list of the currently connected player ids. This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the GameServer status resource. -If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return AlphaPlayerIdList -*/ -func (a *SDKApiService) GetConnectedPlayers(ctx context.Context) (AlphaPlayerIdList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaPlayerIdList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/connected" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaPlayerIdList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService Retrieves the current player capacity. This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the GameServer status resource. -If GameServer.Status.Players.Capacity is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return AlphaCount -*/ -func (a *SDKApiService) GetPlayerCapacity(ctx context.Context) (AlphaCount, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaCount - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/capacity" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaCount - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService Retrieves the current player count. This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the GameServer status resource. -If GameServer.Status.Players.Count is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to view this value. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). -@return AlphaCount -*/ -func (a *SDKApiService) GetPlayerCount(ctx context.Context) (AlphaCount, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaCount - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/count" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaCount - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService Returns if the playerID is currently connected to the GameServer. This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the GameServer status resource. -If GameServer.Status.Players.IDs is set manually through the Kubernetes API, use SDK.GameServer() or SDK.WatchGameServer() instead to determine connected status. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param playerID -@return AlphaBool -*/ -func (a *SDKApiService) IsPlayerConnected(ctx context.Context, playerID string) (AlphaBool, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaBool - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/connected/{playerID}" - localVarPath = strings.Replace(localVarPath, "{"+"playerID"+"}", fmt.Sprintf("%v", playerID), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaBool - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService PlayerConnect increases the SDK’s stored player count by one, and appends this playerID to GameServer.Status.Players.IDs. -GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, unless there is already an update pending, in which case the update joins that batch operation. PlayerConnect returns true and adds the playerID to the list of playerIDs if this playerID was not already in the list of connected playerIDs. If the playerID exists within the list of connected playerIDs, PlayerConnect will return false, and the list of connected playerIDs will be left unchanged. An error will be returned if the playerID was not already in the list of connected playerIDs but the player capacity for the server has been reached. The playerID will not be added to the list of playerIDs. Warning: Do not use this method if you are manually managing GameServer.Status.Players.IDs and GameServer.Status.Players.Count through the Kubernetes API, as indeterminate results will occur. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body The unique identifier for a given player. -@return AlphaBool -*/ -func (a *SDKApiService) PlayerConnect(ctx context.Context, body AlphaPlayerId) (AlphaBool, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaBool - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/connect" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaBool - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService Decreases the SDK’s stored player count by one, and removes the playerID from GameServer.Status.Players.IDs. -GameServer.Status.Players.Count and GameServer.Status.Players.IDs are then set to update the player count and id list a second from now, unless there is already an update pending, in which case the update joins that batch operation. PlayerDisconnect will return true and remove the supplied playerID from the list of connected playerIDs if the playerID value exists within the list. If the playerID was not in the list of connected playerIDs, the call will return false, and the connected playerID list will be left unchanged. Warning: Do not use this method if you are manually managing GameServer.status.players.IDs and GameServer.status.players.Count through the Kubernetes API, as indeterminate results will occur. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body The unique identifier for a given player. -@return AlphaBool -*/ -func (a *SDKApiService) PlayerDisconnect(ctx context.Context, body AlphaPlayerId) (AlphaBool, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaBool - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/disconnect" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaBool - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} -/* -SDKApiService Update the GameServer.Status.Players.Capacity value with a new capacity. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body Store a count variable. -@return AlphaEmpty -*/ -func (a *SDKApiService) SetPlayerCapacity(ctx context.Context, body AlphaCount) (AlphaEmpty, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AlphaEmpty - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/alpha/player/capacity" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v AlphaEmpty - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} diff --git a/test/sdk/restapi/alpha/swagger/client.go b/test/sdk/restapi/alpha/swagger/client.go index a1f46cb0fe..2d7f2443e9 100644 --- a/test/sdk/restapi/alpha/swagger/client.go +++ b/test/sdk/restapi/alpha/swagger/client.go @@ -58,8 +58,6 @@ type APIClient struct { common service // Reuse a single struct instead of allocating one for each service on the heap. // API Services - - SDKApi *SDKApiService } type service struct { @@ -78,7 +76,6 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.SDKApi = (*SDKApiService)(&c.common) return c } diff --git a/test/sdk/restapi/alpha/swagger/model_alpha_bool.go b/test/sdk/restapi/alpha/swagger/model_alpha_bool.go deleted file mode 100644 index 9ab131c594..0000000000 --- a/test/sdk/restapi/alpha/swagger/model_alpha_bool.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -type AlphaBool struct { - Bool_ bool `json:"bool,omitempty"` -} diff --git a/test/sdk/restapi/alpha/swagger/model_alpha_count.go b/test/sdk/restapi/alpha/swagger/model_alpha_count.go deleted file mode 100644 index 3ac7d6f333..0000000000 --- a/test/sdk/restapi/alpha/swagger/model_alpha_count.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -// Store a count variable. -type AlphaCount struct { - Count string `json:"count,omitempty"` -} diff --git a/test/sdk/restapi/alpha/swagger/model_alpha_empty.go b/test/sdk/restapi/alpha/swagger/model_alpha_empty.go deleted file mode 100644 index ff00e746dd..0000000000 --- a/test/sdk/restapi/alpha/swagger/model_alpha_empty.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -type AlphaEmpty struct { -} diff --git a/test/sdk/restapi/alpha/swagger/model_alpha_player_id.go b/test/sdk/restapi/alpha/swagger/model_alpha_player_id.go deleted file mode 100644 index 016ee10c7f..0000000000 --- a/test/sdk/restapi/alpha/swagger/model_alpha_player_id.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -// The unique identifier for a given player. -type AlphaPlayerId struct { - PlayerID string `json:"playerID,omitempty"` -} diff --git a/test/sdk/restapi/alpha/swagger/model_alpha_player_id_list.go b/test/sdk/restapi/alpha/swagger/model_alpha_player_id_list.go deleted file mode 100644 index 3566d84cf6..0000000000 --- a/test/sdk/restapi/alpha/swagger/model_alpha_player_id_list.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * alpha.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -type AlphaPlayerIdList struct { - List []string `json:"list,omitempty"` -} diff --git a/test/sdk/restapi/http-api-test.go b/test/sdk/restapi/http-api-test.go index 25fa909e89..cf1b2760b0 100644 --- a/test/sdk/restapi/http-api-test.go +++ b/test/sdk/restapi/http-api-test.go @@ -23,7 +23,6 @@ import ( "github.com/google/go-cmp/cmp" "golang.org/x/net/context" - alpha "agones.dev/agones/test/sdk/restapi/alpha/swagger" beta "agones.dev/agones/test/sdk/restapi/beta/swagger" "agones.dev/agones/test/sdk/restapi/swagger" ) @@ -35,11 +34,6 @@ func main() { conf.BasePath = "http://localhost:" + portStr cli := swagger.NewAPIClient(conf) - log.Println("Alpha Client is starting") - alphaConf := alpha.NewConfiguration() - alphaConf.BasePath = "http://localhost:" + portStr - alphaCli := alpha.NewAPIClient(alphaConf) - log.Println("Beta Client is starting") betaConf := beta.NewConfiguration() betaConf.BasePath = "http://localhost:" + portStr @@ -120,13 +114,6 @@ func main() { log.Fatalf("Could not SetAnnotation: %v\n", err) } - // easy feature flag check - if strings.Contains(os.Getenv("FEATURE_GATES"), "PlayerTracking=true") { - testPlayers(ctx, alphaCli) - } else { - log.Print("Player Tracking not enabled, skipping.") - } - if strings.Contains(os.Getenv("FEATURE_GATES"), "CountsAndLists=true") { testCounters(ctx, betaCli) testLists(ctx, betaCli) @@ -141,52 +128,6 @@ func main() { log.Println("REST API test finished, all queries were performed") } -func testPlayers(ctx context.Context, alphaCli *alpha.APIClient) { - capacity := "10" - if _, _, err := alphaCli.SDKApi.SetPlayerCapacity(ctx, alpha.AlphaCount{Count: capacity}); err != nil { - log.Fatalf("Could not set Capacity: %v\n", err) - } - - count, _, err := alphaCli.SDKApi.GetPlayerCapacity(ctx) - if err != nil { - log.Fatalf("Could not get Capacity: %v\n", err) - } - if count.Count != capacity { - log.Fatalf("Player Capacity should be %s, but is %s", capacity, count.Count) - } - - playerID := "1234" - if ok, _, err := alphaCli.SDKApi.PlayerConnect(ctx, alpha.AlphaPlayerId{PlayerID: playerID}); err != nil { - log.Fatalf("Error registering player as connected: %s", err) - } else if !ok.Bool_ { - log.Fatalf("PlayerConnect returned false") - } - - if ok, _, err := alphaCli.SDKApi.IsPlayerConnected(ctx, playerID); err != nil { - log.Fatalf("Error checking if player is connected: %s", err) - } else if !ok.Bool_ { - log.Fatalf("IsPlayerConnected returned false") - } - - if list, _, err := alphaCli.SDKApi.GetConnectedPlayers(ctx); err != nil { - log.Fatalf("Error getting connected player: %s", err) - } else if len(list.List) == 0 { - log.Fatalf("No connected players returned") - } - - if ok, _, err := alphaCli.SDKApi.PlayerDisconnect(ctx, alpha.AlphaPlayerId{PlayerID: playerID}); err != nil { - log.Fatalf("Error registering player as disconnected: %s", err) - } else if !ok.Bool_ { - log.Fatalf("PlayerDisconnect returned false") - } - - if count, _, err := alphaCli.SDKApi.GetPlayerCount(ctx); err != nil { - log.Fatalf("Error retrieving player count: %s", err) - } else if count.Count != "0" { - log.Fatalf("Player Count should be 0, but is %v", count) - } -} - func testCounters(ctx context.Context, betaCli *beta.APIClient) { // Tests are expected to run sequentially on the same pre-defined Counter in the localsdk server counterName := "rooms" diff --git a/test/sdk/restapi/swagger/model_sdk_game_server_status.go b/test/sdk/restapi/swagger/model_sdk_game_server_status.go index bbc5c41215..13e128a8cf 100644 --- a/test/sdk/restapi/swagger/model_sdk_game_server_status.go +++ b/test/sdk/restapi/swagger/model_sdk_game_server_status.go @@ -28,7 +28,6 @@ type SdkGameServerStatus struct { Address string `json:"address,omitempty"` Addresses []StatusAddress `json:"addresses,omitempty"` Ports []StatusPort `json:"ports,omitempty"` - Players *StatusPlayerStatus `json:"players,omitempty"` Counters map[string]StatusCounterStatus `json:"counters,omitempty"` Lists map[string]StatusListStatus `json:"lists,omitempty"` } diff --git a/test/sdk/restapi/swagger/model_status_player_status.go b/test/sdk/restapi/swagger/model_status_player_status.go deleted file mode 100644 index 2dec3772e9..0000000000 --- a/test/sdk/restapi/swagger/model_status_player_status.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Contributors to Agones a Series of LF Projects, LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// This code was autogenerated. Do not edit directly. -/* - * sdk.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package swagger - -type StatusPlayerStatus struct { - Count string `json:"count,omitempty"` - Capacity string `json:"capacity,omitempty"` - Ids []string `json:"ids,omitempty"` -} diff --git a/test/sdk/rust/src/main.rs b/test/sdk/rust/src/main.rs index 1d69703bb3..0b40d4056d 100644 --- a/test/sdk/rust/src/main.rs +++ b/test/sdk/rust/src/main.rs @@ -181,9 +181,6 @@ fn run_sync() -> Result<(), String> { })?; let feature_gates = env::var("FEATURE_GATES").unwrap_or_default(); - if feature_gates.contains("PlayerTracking=true") { - run_player_tracking_features(sdk.alpha().clone())?; - } if feature_gates.contains("CountsAndLists=true") { run_counts_and_lists_features(sdk.beta().clone())?; } @@ -206,93 +203,6 @@ fn run_sync() -> Result<(), String> { Ok(()) } -fn run_player_tracking_features(mut alpha: agones::alpha::Alpha) -> Result<(), String> { - use tokio::runtime::Handle; - - println!("rust: Setting player capacity..."); - Handle::current().block_on(async { - alpha - .set_player_capacity(10) - .await - .map_err(|e| format!("Could not run SetPlayerCapacity(): {:#?}. Exiting!", e)) - })?; - - println!("rust: Getting player capacity..."); - let capacity = Handle::current().block_on(async { - alpha - .get_player_capacity() - .await - .map_err(|e| format!("Could not run GetPlayerCapacity(): {}. Exiting!", e)) - })?; - println!("rust: Player capacity: {}", capacity); - - println!("rust: Increasing the player count..."); - let player_id = "1234".to_string(); - - let added = Handle::current().block_on(async { - alpha - .player_connect(&player_id) - .await - .map_err(|e| format!("Could not run PlayerConnect(): {}. Exiting!", e)) - })?; - if added { - println!("rust: Added player"); - } else { - panic!("rust: Failed to add player. Exiting!"); - } - - let connected = Handle::current().block_on(async { - alpha - .is_player_connected(&player_id) - .await - .map_err(|e| format!("Could not run IsPlayerConnected(): {}. Exiting!", e)) - })?; - if connected { - println!("rust: {} is connected", player_id); - } else { - panic!("rust: {} is not connected. Exiting!", player_id); - } - - let player_ids = Handle::current().block_on(async { - alpha - .get_connected_players() - .await - .map_err(|e| format!("Could not run GetConnectedPlayers(): {}. Exiting!", e)) - })?; - println!("rust: Connected players: {:?}", player_ids); - - let player_count = Handle::current().block_on(async { - alpha - .get_player_count() - .await - .map_err(|e| format!("Could not run GetConnectedPlayers(): {}. Exiting!", e)) - })?; - println!("rust: Current player count: {}", player_count); - - println!("rust: Decreasing the player count..."); - let removed = Handle::current().block_on(async { - alpha - .player_disconnect(&player_id) - .await - .map_err(|e| format!("Could not run PlayerDisconnect(): {}. Exiting!", e)) - })?; - if removed { - println!("rust: Removed player"); - } else { - panic!("rust: Failed to remove player. Exiting!"); - } - - let player_count = Handle::current().block_on(async { - alpha - .get_player_count() - .await - .map_err(|e| format!("Could not GetPlayerCount(): {}. Exiting!", e)) - })?; - println!("rust: Current player count: {}", player_count); - - Ok(()) -} - fn run_counts_and_lists_features(mut beta: agones::beta::Beta) -> Result<(), String> { use tokio::runtime::Handle; @@ -529,9 +439,6 @@ async fn run_async() -> Result<(), String> { .map_err(|e| format!("Could not run SetLabel(): {}. Exiting!", e))?; let feature_gates = env::var("FEATURE_GATES").unwrap_or_default(); - if feature_gates.contains("PlayerTracking=true") { - run_player_tracking_features_async(sdk.alpha().clone()).await?; - } if feature_gates.contains("CountsAndLists=true") { run_counts_and_lists_features_async(sdk.beta().clone()).await?; } @@ -552,74 +459,6 @@ async fn run_async() -> Result<(), String> { Ok(()) } -async fn run_player_tracking_features_async(mut alpha: agones::alpha::Alpha) -> Result<(), String> { - println!("rust_async: Setting player capacity..."); - alpha - .set_player_capacity(10) - .await - .map_err(|e| format!("Could not run SetPlayerCapacity(): {}. Exiting!", e))?; - - println!("rust_async: Getting player capacity..."); - let capacity = alpha - .get_player_capacity() - .await - .map_err(|e| format!("Could not run GetPlayerCapacity(): {}. Exiting!", e))?; - println!("rust_async: Player capacity: {}", capacity); - - println!("rust_async: Increasing the player count..."); - let player_id = "1234".to_string(); - let added = alpha - .player_connect(&player_id) - .await - .map_err(|e| format!("Could not run PlayerConnect(): {}. Exiting!", e))?; - if added { - println!("Added player"); - } else { - panic!("rust_async: Failed to add player. Exiting!"); - } - - let connected = alpha - .is_player_connected(&player_id) - .await - .map_err(|e| format!("Could not run IsPlayerConnected(): {}. Exiting!", e))?; - if connected { - println!("rust_async: {} is connected", player_id); - } else { - panic!("rust_async: {} is not connected. Exiting!", player_id); - } - - let player_ids = alpha - .get_connected_players() - .await - .map_err(|e| format!("Could not run GetConnectedPlayers(): {}. Exiting!", e))?; - println!("rust_async: Connected players: {:?}", player_ids); - - let player_count = alpha - .get_player_count() - .await - .map_err(|e| format!("Could not run GetConnectedPlayers(): {}. Exiting!", e))?; - println!("rust_async: Current player count: {}", player_count); - - println!("rust_async: Decreasing the player count..."); - let removed = alpha - .player_disconnect(&player_id) - .await - .map_err(|e| format!("Could not run PlayerDisconnect(): {}. Exiting!", e))?; - if removed { - println!("rust_async: Removed player"); - } else { - panic!("rust_async: Failed to remove player. Exiting!"); - } - - let player_count = alpha - .get_player_count() - .await - .map_err(|e| format!("Could not GetPlayerCount(): {}. Exiting!", e))?; - println!("rust_async: Current player count: {}", player_count); - - Ok(()) -} - async fn run_counts_and_lists_features_async(mut beta: agones::beta::Beta) -> Result<(), String> { // Counter tests let counter = "rooms"; From ebff1b67aac4ff74b885ed0367acc1dbd0ab12c3 Mon Sep 17 00:00:00 2001 From: Induri Reddy Date: Wed, 5 Aug 2026 05:39:23 +0000 Subject: [PATCH 3/4] Regenerate SDK files after rebase --- pkg/sdk/alpha/alpha.pb.go | 2 +- pkg/sdk/alpha/alpha_grpc.pb.go | 2 +- pkg/sdk/beta/beta.pb.go | 2 +- pkg/sdk/beta/beta_grpc.pb.go | 2 +- pkg/sdk/sdk.pb.go | 2 +- pkg/sdk/sdk_grpc.pb.go | 2 +- sdks/cpp/include/google/api/annotations.pb.h | 9 +- sdks/cpp/include/google/api/http.pb.h | 564 +- .../options/annotations.pb.h | 21 +- .../options/openapiv2.pb.h | 4140 +++--- sdks/cpp/src/google/annotations.pb.cc | 15 +- sdks/cpp/src/google/http.pb.cc | 1203 +- .../protoc-gen-openapiv2/annotations.pb.cc | 23 +- .../src/protoc-gen-openapiv2/openapiv2.pb.cc | 12398 ++++++---------- 14 files changed, 7488 insertions(+), 10897 deletions(-) diff --git a/pkg/sdk/alpha/alpha.pb.go b/pkg/sdk/alpha/alpha.pb.go index ef04fee302..0862039d0a 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 v7.35.1 +// protoc v6.31.1 // source: alpha.proto package alpha diff --git a/pkg/sdk/alpha/alpha_grpc.pb.go b/pkg/sdk/alpha/alpha_grpc.pb.go index f2adf491ea..50c6abea87 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 v7.35.1 +// - protoc v6.31.1 // source: alpha.proto package alpha diff --git a/pkg/sdk/beta/beta.pb.go b/pkg/sdk/beta/beta.pb.go index 9d3b898f80..76f82d2314 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 v7.35.1 +// protoc v6.31.1 // source: beta.proto package beta diff --git a/pkg/sdk/beta/beta_grpc.pb.go b/pkg/sdk/beta/beta_grpc.pb.go index 3511931ce2..9e4543d4e5 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 v7.35.1 +// - protoc v6.31.1 // source: beta.proto package beta diff --git a/pkg/sdk/sdk.pb.go b/pkg/sdk/sdk.pb.go index 59f9f73ff6..42b870b715 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 v7.35.1 +// protoc v6.31.1 // source: sdk.proto package sdk diff --git a/pkg/sdk/sdk_grpc.pb.go b/pkg/sdk/sdk_grpc.pb.go index 01a864445b..0d04bc64e7 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 v7.35.1 +// - protoc v6.31.1 // source: sdk.proto package sdk diff --git a/sdks/cpp/include/google/api/annotations.pb.h b/sdks/cpp/include/google/api/annotations.pb.h index 0ca73ea684..1bca9e1d7a 100644 --- a/sdks/cpp/include/google/api/annotations.pb.h +++ b/sdks/cpp/include/google/api/annotations.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/annotations.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #ifndef google_2fapi_2fannotations_2eproto_2epb_2eh #define google_2fapi_2fannotations_2eproto_2epb_2eh @@ -26,9 +26,8 @@ #include #include -// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 7035001 +#if PROTOBUF_VERSION != 6031001 #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" @@ -85,7 +84,8 @@ namespace api { inline constexpr int kHttpFieldNumber = 72295728; AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< - ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false>(http); + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> + http; // =================================================================== @@ -106,6 +106,5 @@ AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -// clang-format on #endif // google_2fapi_2fannotations_2eproto_2epb_2eh diff --git a/sdks/cpp/include/google/api/http.pb.h b/sdks/cpp/include/google/api/http.pb.h index ee3e1097d4..8f11a135b5 100644 --- a/sdks/cpp/include/google/api/http.pb.h +++ b/sdks/cpp/include/google/api/http.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/http.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #ifndef google_2fapi_2fhttp_2eproto_2epb_2eh #define google_2fapi_2fhttp_2eproto_2epb_2eh @@ -26,9 +26,8 @@ #include #include -// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 7035001 +#if PROTOBUF_VERSION != 6031001 #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" @@ -71,29 +70,17 @@ AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descrip namespace google { namespace api { class CustomHttpPattern; -struct CustomHttpPatternGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_; +struct CustomHttpPatternDefaultTypeInternal; +AGONES_EXPORT extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_; -#else -AGONES_EXPORT extern const CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Http; -struct HttpGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern HttpGlobalsTypeInternal Http_globals_; +struct HttpDefaultTypeInternal; +AGONES_EXPORT extern HttpDefaultTypeInternal _Http_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Http_class_data_; -#else -AGONES_EXPORT extern const HttpGlobalsTypeInternal Http_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class HttpRule; -struct HttpRuleGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern HttpRuleGlobalsTypeInternal HttpRule_globals_; +struct HttpRuleDefaultTypeInternal; +AGONES_EXPORT extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_; -#else -AGONES_EXPORT extern const HttpRuleGlobalsTypeInternal HttpRule_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace api namespace protobuf { } // namespace protobuf @@ -107,26 +94,25 @@ namespace api { // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern final : public ::google::protobuf::Message +class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} ~CustomHttpPattern() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CustomHttpPattern* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(CustomHttpPattern* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CustomHttpPattern)); } #endif template - explicit constexpr CustomHttpPattern(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::google::protobuf::internal::ConstantInitialized); inline CustomHttpPattern(const CustomHttpPattern& from) : CustomHttpPattern(nullptr, from) {} - inline CustomHttpPattern(CustomHttpPattern&& from) noexcept : CustomHttpPattern(nullptr, ::std::move(from)) {} + inline CustomHttpPattern(CustomHttpPattern&& from) noexcept + : CustomHttpPattern(nullptr, ::std::move(from)) {} inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { CopyFrom(from); return *this; @@ -141,27 +127,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const CustomHttpPattern& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&CustomHttpPattern_globals_); + static const CustomHttpPattern& default_instance() { + return *reinterpret_cast( + &_CustomHttpPattern_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { a.Swap(&b); } @@ -181,8 +167,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin // implements Message ---------------------------------------------- - [[nodiscard]] CustomHttpPattern* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + CustomHttpPattern* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -195,33 +180,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -232,6 +215,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.CustomHttpPattern"; } + protected: explicit CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CustomHttpPattern& from); CustomHttpPattern( @@ -246,11 +230,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -260,7 +242,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin }; // string kind = 1; void clear_kind() ; - [[nodiscard]] const ::std::string& kind() const; + const ::std::string& kind() const; template void set_kind(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_kind(); @@ -275,7 +257,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin public: // string path = 2; void clear_path() ; - [[nodiscard]] const ::std::string& path() const; + const ::std::string& path() const; template void set_path(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_path(); @@ -291,27 +273,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 45, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 45, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -328,28 +303,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern fin union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : public ::google::protobuf::Message +class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: inline HttpRule() : HttpRule(nullptr) {} ~HttpRule() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(HttpRule* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(HttpRule* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(HttpRule)); } #endif template - explicit constexpr HttpRule(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(HttpRule&& from) noexcept + : HttpRule(nullptr, ::std::move(from)) {} inline HttpRule& operator=(const HttpRule& from) { CopyFrom(from); return *this; @@ -364,27 +340,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const HttpRule& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&HttpRule_globals_); + static const HttpRule& default_instance() { + return *reinterpret_cast( + &_HttpRule_default_instance_); } enum PatternCase { kGet = 2, @@ -413,8 +389,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ // implements Message ---------------------------------------------- - [[nodiscard]] HttpRule* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + HttpRule* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -427,33 +402,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -464,6 +437,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.HttpRule"; } + protected: explicit HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HttpRule& from); HttpRule( @@ -478,11 +452,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -499,29 +471,25 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ kCustomFieldNumber = 8, }; // repeated .google.api.HttpRule additional_bindings = 11; - [[nodiscard]] int additional_bindings_size() - const; + int additional_bindings_size() const; private: int _internal_additional_bindings_size() const; public: void clear_additional_bindings() ; - [[nodiscard]] const ::google::api::HttpRule& additional_bindings(int index) const; - [[nodiscard]] ::google::api::HttpRule* PROTOBUF_NONNULL mutable_additional_bindings(int index); - ::google::api::HttpRule* PROTOBUF_NONNULL add_additional_bindings(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& - additional_bindings() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL - mutable_additional_bindings(); + ::google::api::HttpRule* PROTOBUF_NONNULL mutable_additional_bindings(int index); + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL mutable_additional_bindings(); private: const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const; ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL _internal_mutable_additional_bindings(); - public: + const ::google::api::HttpRule& additional_bindings(int index) const; + ::google::api::HttpRule* PROTOBUF_NONNULL add_additional_bindings(); + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& additional_bindings() const; // string selector = 1; void clear_selector() ; - [[nodiscard]] const ::std::string& selector() const; + const ::std::string& selector() const; template void set_selector(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_selector(); @@ -536,7 +504,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string body = 7; void clear_body() ; - [[nodiscard]] const ::std::string& body() const; + const ::std::string& body() const; template void set_body(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_body(); @@ -551,7 +519,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string response_body = 12; void clear_response_body() ; - [[nodiscard]] const ::std::string& response_body() const; + const ::std::string& response_body() const; template void set_response_body(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_response_body(); @@ -565,10 +533,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string get = 2; - [[nodiscard]] bool has_get() - const; + bool has_get() const; void clear_get() ; - [[nodiscard]] const ::std::string& get() const; + const ::std::string& get() const; template void set_get(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_get(); @@ -582,10 +549,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string put = 3; - [[nodiscard]] bool has_put() - const; + bool has_put() const; void clear_put() ; - [[nodiscard]] const ::std::string& put() const; + const ::std::string& put() const; template void set_put(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_put(); @@ -599,10 +565,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string post = 4; - [[nodiscard]] bool has_post() - const; + bool has_post() const; void clear_post() ; - [[nodiscard]] const ::std::string& post() const; + const ::std::string& post() const; template void set_post(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_post(); @@ -616,10 +581,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string delete = 5; - [[nodiscard]] bool has_delete_() - const; + bool has_delete_() const; void clear_delete_() ; - [[nodiscard]] const ::std::string& delete_() const; + const ::std::string& delete_() const; template void set_delete_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_delete_(); @@ -633,10 +597,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // string patch = 6; - [[nodiscard]] bool has_patch() - const; + bool has_patch() const; void clear_patch() ; - [[nodiscard]] const ::std::string& patch() const; + const ::std::string& patch() const; template void set_patch(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_patch(); @@ -650,14 +613,13 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ public: // .google.api.CustomHttpPattern custom = 8; - [[nodiscard]] bool has_custom() - const; + bool has_custom() const; private: bool _internal_has_custom() const; public: void clear_custom() ; - [[nodiscard]] const ::google::api::CustomHttpPattern& custom() const; + const ::google::api::CustomHttpPattern& custom() const; [[nodiscard]] ::google::api::CustomHttpPattern* PROTOBUF_NULLABLE release_custom(); ::google::api::CustomHttpPattern* PROTOBUF_NONNULL mutable_custom(); void set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_NULLABLE value); @@ -680,29 +642,22 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ void set_has_delete_(); void set_has_patch(); void set_has_custom(); - [[nodiscard]] inline bool has_pattern() const; + inline bool has_pattern() const; inline void clear_has_pattern(); - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 10, - 2, 82, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 10, + 2, 82, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -732,28 +687,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : publ union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public ::google::protobuf::Message +class AGONES_EXPORT Http final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: inline Http() : Http(nullptr) {} ~Http() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Http* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Http* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Http)); } #endif template - explicit constexpr Http(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Http(::google::protobuf::internal::ConstantInitialized); inline Http(const Http& from) : Http(nullptr, from) {} - inline Http(Http&& from) noexcept : Http(nullptr, ::std::move(from)) {} + inline Http(Http&& from) noexcept + : Http(nullptr, ::std::move(from)) {} inline Http& operator=(const Http& from) { CopyFrom(from); return *this; @@ -768,27 +724,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Http& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Http_globals_); + static const Http& default_instance() { + return *reinterpret_cast( + &_Http_default_instance_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Http& a, Http& b) { a.Swap(&b); } @@ -808,8 +764,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : // implements Message ---------------------------------------------- - [[nodiscard]] Http* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Http* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -822,33 +777,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -859,6 +812,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.Http"; } + protected: explicit Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Http& from); Http( @@ -873,11 +827,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -886,29 +838,25 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : kFullyDecodeReservedExpansionFieldNumber = 2, }; // repeated .google.api.HttpRule rules = 1; - [[nodiscard]] int rules_size() - const; + int rules_size() const; private: int _internal_rules_size() const; public: void clear_rules() ; - [[nodiscard]] const ::google::api::HttpRule& rules(int index) const; - [[nodiscard]] ::google::api::HttpRule* PROTOBUF_NONNULL mutable_rules(int index); - ::google::api::HttpRule* PROTOBUF_NONNULL add_rules(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& - rules() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL - mutable_rules(); + ::google::api::HttpRule* PROTOBUF_NONNULL mutable_rules(int index); + ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL mutable_rules(); private: const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const; ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL _internal_mutable_rules(); - public: + const ::google::api::HttpRule& rules(int index) const; + ::google::api::HttpRule* PROTOBUF_NONNULL add_rules(); + const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& rules() const; // bool fully_decode_reserved_expansion = 2; void clear_fully_decode_reserved_expansion() ; - [[nodiscard]] bool fully_decode_reserved_expansion() const; + bool fully_decode_reserved_expansion() const; void set_fully_decode_reserved_expansion(bool value); private: @@ -919,27 +867,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : // @@protoc_insertion_point(class_scope:google.api.Http) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -957,6 +898,8 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public : friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Http_class_data_; + // =================================================================== @@ -983,25 +926,27 @@ inline int Http::rules_size() const { inline void Http::clear_rules() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rules_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); -} -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().Get(index); } inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL Http::mutable_rules() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_rules(); +} +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().Get(index); +} inline ::google::api::HttpRule* PROTOBUF_NONNULL Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::api::HttpRule* _add = - _internal_mutable_rules()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::api::HttpRule* _add = _internal_mutable_rules()->Add(); // @@protoc_insertion_point(field_add:google.api.Http.rules) return _add; } @@ -1010,13 +955,6 @@ inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http // @@protoc_insertion_point(field_list:google.api.Http.rules) return _internal_rules(); } -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL -Http::mutable_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_rules(); -} inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::_internal_rules() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -1032,7 +970,7 @@ Http::_internal_mutable_rules() { inline void Http::clear_fully_decode_reserved_expansion() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fully_decode_reserved_expansion_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline bool Http::fully_decode_reserved_expansion() const { // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion) @@ -1040,7 +978,7 @@ inline bool Http::fully_decode_reserved_expansion() const { } inline void Http::set_fully_decode_reserved_expansion(bool value) { _internal_set_fully_decode_reserved_expansion(value); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion) } inline bool Http::_internal_fully_decode_reserved_expansion() const { @@ -1060,7 +998,7 @@ inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { inline void HttpRule::clear_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.selector_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& HttpRule::selector() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1070,13 +1008,12 @@ inline const ::std::string& HttpRule::selector() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.selector_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) return _s; @@ -1087,19 +1024,21 @@ inline const ::std::string& HttpRule::_internal_selector() const { } inline void HttpRule::_internal_set_selector(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.selector_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.selector_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.selector_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.selector_.Set("", GetArena()); @@ -1109,9 +1048,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_selector() { inline void HttpRule::set_allocated_selector(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.selector_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.selector_.IsDefault()) { @@ -1153,12 +1092,6 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_get() ABSL_ATTRIBUTE_LIFETIME_BOUND { - if (pattern_case() != kGet) { - clear_pattern(); - - set_has_get(); - _impl_.pattern_.get_.InitDefault(); - } ::std::string* _s = _internal_mutable_get(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) return _s; @@ -1172,10 +1105,22 @@ inline const ::std::string& HttpRule::_internal_get() const { } inline void HttpRule::_internal_set_get(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kGet) { + clear_pattern(); + + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } _impl_.pattern_.get_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_get() { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kGet) { + clear_pattern(); + + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } return _impl_.pattern_.get_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_get() { @@ -1232,12 +1177,6 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_put(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_put() ABSL_ATTRIBUTE_LIFETIME_BOUND { - if (pattern_case() != kPut) { - clear_pattern(); - - set_has_put(); - _impl_.pattern_.put_.InitDefault(); - } ::std::string* _s = _internal_mutable_put(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) return _s; @@ -1251,10 +1190,22 @@ inline const ::std::string& HttpRule::_internal_put() const { } inline void HttpRule::_internal_set_put(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPut) { + clear_pattern(); + + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } _impl_.pattern_.put_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_put() { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPut) { + clear_pattern(); + + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } return _impl_.pattern_.put_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_put() { @@ -1311,12 +1262,6 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_post(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_post() ABSL_ATTRIBUTE_LIFETIME_BOUND { - if (pattern_case() != kPost) { - clear_pattern(); - - set_has_post(); - _impl_.pattern_.post_.InitDefault(); - } ::std::string* _s = _internal_mutable_post(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) return _s; @@ -1330,10 +1275,22 @@ inline const ::std::string& HttpRule::_internal_post() const { } inline void HttpRule::_internal_set_post(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPost) { + clear_pattern(); + + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } _impl_.pattern_.post_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_post() { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPost) { + clear_pattern(); + + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } return _impl_.pattern_.post_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_post() { @@ -1390,12 +1347,6 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_delete_(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_delete_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - if (pattern_case() != kDelete) { - clear_pattern(); - - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); - } ::std::string* _s = _internal_mutable_delete_(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) return _s; @@ -1409,10 +1360,22 @@ inline const ::std::string& HttpRule::_internal_delete_() const { } inline void HttpRule::_internal_set_delete_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kDelete) { + clear_pattern(); + + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } _impl_.pattern_.delete__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_delete_() { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kDelete) { + clear_pattern(); + + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } return _impl_.pattern_.delete__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_delete_() { @@ -1469,12 +1432,6 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_patch(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_patch() ABSL_ATTRIBUTE_LIFETIME_BOUND { - if (pattern_case() != kPatch) { - clear_pattern(); - - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); - } ::std::string* _s = _internal_mutable_patch(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) return _s; @@ -1488,10 +1445,22 @@ inline const ::std::string& HttpRule::_internal_patch() const { } inline void HttpRule::_internal_set_patch(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPatch) { + clear_pattern(); + + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } _impl_.pattern_.patch_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_patch() { ::google::protobuf::internal::TSanWrite(&_impl_); + if (pattern_case() != kPatch) { + clear_pattern(); + + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } return _impl_.pattern_.patch_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_patch() { @@ -1551,8 +1520,7 @@ inline ::google::api::CustomHttpPattern* PROTOBUF_NULLABLE HttpRule::release_cus } } inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const { - return pattern_case() == kCustom ? static_cast(*_impl_.pattern_.custom_) - : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::google::api::CustomHttpPattern>(&::google::api::CustomHttpPattern_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) @@ -1601,7 +1569,7 @@ inline ::google::api::CustomHttpPattern* PROTOBUF_NONNULL HttpRule::mutable_cust inline void HttpRule::clear_body() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.body_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& HttpRule::body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1611,13 +1579,12 @@ inline const ::std::string& HttpRule::body() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_body(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.body) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) return _s; @@ -1628,19 +1595,21 @@ inline const ::std::string& HttpRule::_internal_body() const { } inline void HttpRule::_internal_set_body(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.body_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_body() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.body_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_body() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.body) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.body_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.body_.Set("", GetArena()); @@ -1650,9 +1619,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_body() { inline void HttpRule::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.body_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { @@ -1665,7 +1634,7 @@ inline void HttpRule::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) inline void HttpRule::clear_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.response_body_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& HttpRule::response_body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1675,13 +1644,12 @@ inline const ::std::string& HttpRule::response_body() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_response_body(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.response_body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_response_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_response_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) return _s; @@ -1692,19 +1660,21 @@ inline const ::std::string& HttpRule::_internal_response_body() const { } inline void HttpRule::_internal_set_response_body(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.response_body_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.response_body_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.response_body_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.response_body_.Set("", GetArena()); @@ -1714,9 +1684,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_response_body() { inline void HttpRule::set_allocated_response_body(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.response_body_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.response_body_.IsDefault()) { @@ -1735,25 +1705,27 @@ inline int HttpRule::additional_bindings_size() const { inline void HttpRule::clear_additional_bindings() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.additional_bindings_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); -} -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().Get(index); } inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL HttpRule::mutable_additional_bindings() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_additional_bindings(); +} +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().Get(index); +} inline ::google::api::HttpRule* PROTOBUF_NONNULL HttpRule::add_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::api::HttpRule* _add = - _internal_mutable_additional_bindings()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::api::HttpRule* _add = _internal_mutable_additional_bindings()->Add(); // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) return _add; } @@ -1762,13 +1734,6 @@ inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) return _internal_additional_bindings(); } -inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL -HttpRule::mutable_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); - // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_additional_bindings(); -} inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::_internal_additional_bindings() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -1797,7 +1762,7 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { inline void CustomHttpPattern::clear_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kind_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& CustomHttpPattern::kind() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1807,13 +1772,12 @@ inline const ::std::string& CustomHttpPattern::kind() const template PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_kind(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.kind_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::mutable_kind() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_kind(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) return _s; @@ -1824,19 +1788,21 @@ inline const ::std::string& CustomHttpPattern::_internal_kind() const { } inline void CustomHttpPattern::_internal_set_kind(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.kind_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::_internal_mutable_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.kind_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.kind_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.kind_.Set("", GetArena()); @@ -1846,9 +1812,9 @@ inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_kind() { inline void CustomHttpPattern::set_allocated_kind(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.kind_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.kind_.IsDefault()) { @@ -1861,7 +1827,7 @@ inline void CustomHttpPattern::set_allocated_kind(::std::string* PROTOBUF_NULLAB inline void CustomHttpPattern::clear_path() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& CustomHttpPattern::path() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1871,13 +1837,12 @@ inline const ::std::string& CustomHttpPattern::path() const template PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_path(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) return _s; @@ -1888,19 +1853,21 @@ inline const ::std::string& CustomHttpPattern::_internal_path() const { } inline void CustomHttpPattern::_internal_set_path(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.path_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::_internal_mutable_path() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.path_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_path() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.path_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.path_.Set("", GetArena()); @@ -1910,9 +1877,9 @@ inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_path() { inline void CustomHttpPattern::set_allocated_path(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.path_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { @@ -1933,6 +1900,5 @@ inline void CustomHttpPattern::set_allocated_path(::std::string* PROTOBUF_NULLAB // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -// clang-format on #endif // google_2fapi_2fhttp_2eproto_2epb_2eh 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 a019ca7823..77755dde57 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/annotations.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #ifndef protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh #define protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh @@ -26,9 +26,8 @@ #include #include -// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 7035001 +#if PROTOBUF_VERSION != 6031001 #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" @@ -87,19 +86,24 @@ namespace options { inline constexpr int kOpenapiv2SwaggerFieldNumber = 1042; 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); + ::google::protobuf::FileOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, 11, false> + openapiv2_swagger; inline constexpr int kOpenapiv2OperationFieldNumber = 1042; 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); + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, 11, false> + openapiv2_operation; inline constexpr int kOpenapiv2SchemaFieldNumber = 1042; 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); + ::google::protobuf::MessageOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, 11, false> + openapiv2_schema; inline constexpr int kOpenapiv2TagFieldNumber = 1042; 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); + ::google::protobuf::ServiceOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, 11, false> + openapiv2_tag; inline constexpr int kOpenapiv2FieldFieldNumber = 1042; 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); + ::google::protobuf::FieldOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, 11, false> + openapiv2_field; // =================================================================== @@ -122,6 +126,5 @@ AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -// clang-format on #endif // protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh 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 3ba513c107..293b66b414 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/openapiv2.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #ifndef protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh #define protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh @@ -26,9 +26,8 @@ #include #include -// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 7035001 +#if PROTOBUF_VERSION != 6031001 #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" @@ -89,245 +88,125 @@ AGONES_EXPORT extern const uint32_t SecurityScheme_In_internal_data_[]; enum SecurityScheme_Type : int; AGONES_EXPORT extern const uint32_t SecurityScheme_Type_internal_data_[]; class Contact; -struct ContactGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern ContactGlobalsTypeInternal Contact_globals_; +struct ContactDefaultTypeInternal; +AGONES_EXPORT extern ContactDefaultTypeInternal _Contact_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Contact_class_data_; -#else -AGONES_EXPORT extern const ContactGlobalsTypeInternal Contact_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class ExternalDocumentation; -struct ExternalDocumentationGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_; +struct ExternalDocumentationDefaultTypeInternal; +AGONES_EXPORT extern ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_; -#else -AGONES_EXPORT extern const ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Header; -struct HeaderGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern HeaderGlobalsTypeInternal Header_globals_; +struct HeaderDefaultTypeInternal; +AGONES_EXPORT extern HeaderDefaultTypeInternal _Header_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Header_class_data_; -#else -AGONES_EXPORT extern const HeaderGlobalsTypeInternal Header_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Info; -struct InfoGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern InfoGlobalsTypeInternal Info_globals_; +struct InfoDefaultTypeInternal; +AGONES_EXPORT extern InfoDefaultTypeInternal _Info_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_class_data_; -#else -AGONES_EXPORT extern const InfoGlobalsTypeInternal Info_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Info_ExtensionsEntry_DoNotUse; -struct Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_; +struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema; -struct JSONSchemaGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern JSONSchemaGlobalsTypeInternal JSONSchema_globals_; +struct JSONSchemaDefaultTypeInternal; +AGONES_EXPORT extern JSONSchemaDefaultTypeInternal _JSONSchema_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_; -#else -AGONES_EXPORT extern const JSONSchemaGlobalsTypeInternal JSONSchema_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema_ExtensionsEntry_DoNotUse; -struct JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_; +struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal _JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema_FieldConfiguration; -struct JSONSchema_FieldConfigurationGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_; +struct JSONSchema_FieldConfigurationDefaultTypeInternal; +AGONES_EXPORT extern JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_; -#else -AGONES_EXPORT extern const JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class License; -struct LicenseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern LicenseGlobalsTypeInternal License_globals_; +struct LicenseDefaultTypeInternal; +AGONES_EXPORT extern LicenseDefaultTypeInternal _License_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull License_class_data_; -#else -AGONES_EXPORT extern const LicenseGlobalsTypeInternal License_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Operation; -struct OperationGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern OperationGlobalsTypeInternal Operation_globals_; +struct OperationDefaultTypeInternal; +AGONES_EXPORT extern OperationDefaultTypeInternal _Operation_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_class_data_; -#else -AGONES_EXPORT extern const OperationGlobalsTypeInternal Operation_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Operation_ExtensionsEntry_DoNotUse; -struct Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_; +struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Operation_ResponsesEntry_DoNotUse; -struct Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_; +struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Response; -struct ResponseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern ResponseGlobalsTypeInternal Response_globals_; +struct ResponseDefaultTypeInternal; +AGONES_EXPORT extern ResponseDefaultTypeInternal _Response_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; -#else -AGONES_EXPORT extern const ResponseGlobalsTypeInternal Response_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Response_ExamplesEntry_DoNotUse; -struct Response_ExamplesEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_; +struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Response_ExtensionsEntry_DoNotUse; -struct Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_; +struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Response_HeadersEntry_DoNotUse; -struct Response_HeadersEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_; +struct Response_HeadersEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Response_HeadersEntry_DoNotUseDefaultTypeInternal _Response_HeadersEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Schema; -struct SchemaGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SchemaGlobalsTypeInternal Schema_globals_; +struct SchemaDefaultTypeInternal; +AGONES_EXPORT extern SchemaDefaultTypeInternal _Schema_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Schema_class_data_; -#else -AGONES_EXPORT extern const SchemaGlobalsTypeInternal Schema_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Scopes; -struct ScopesGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern ScopesGlobalsTypeInternal Scopes_globals_; +struct ScopesDefaultTypeInternal; +AGONES_EXPORT extern ScopesDefaultTypeInternal _Scopes_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_class_data_; -#else -AGONES_EXPORT extern const ScopesGlobalsTypeInternal Scopes_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Scopes_ScopeEntry_DoNotUse; -struct Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_; +struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityDefinitions; -struct SecurityDefinitionsGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_; +struct SecurityDefinitionsDefaultTypeInternal; +AGONES_EXPORT extern SecurityDefinitionsDefaultTypeInternal _SecurityDefinitions_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_; -#else -AGONES_EXPORT extern const SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityDefinitions_SecurityEntry_DoNotUse; -struct SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_; +struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal _SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement; -struct SecurityRequirementGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_; +struct SecurityRequirementDefaultTypeInternal; +AGONES_EXPORT extern SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_; -#else -AGONES_EXPORT extern const SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement_SecurityRequirementEntry_DoNotUse; -struct SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; +struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement_SecurityRequirementValue; -struct SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_; +struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal; +AGONES_EXPORT extern SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_; -#else -AGONES_EXPORT extern const SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityScheme; -struct SecuritySchemeGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_; +struct SecuritySchemeDefaultTypeInternal; +AGONES_EXPORT extern SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_; -#else -AGONES_EXPORT extern const SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityScheme_ExtensionsEntry_DoNotUse; -struct SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_; +struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger; -struct SwaggerGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern SwaggerGlobalsTypeInternal Swagger_globals_; +struct SwaggerDefaultTypeInternal; +AGONES_EXPORT extern SwaggerDefaultTypeInternal _Swagger_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_class_data_; -#else -AGONES_EXPORT extern const SwaggerGlobalsTypeInternal Swagger_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger_ExtensionsEntry_DoNotUse; -struct Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_; +struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger_ResponsesEntry_DoNotUse; -struct Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_; +struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal; +AGONES_EXPORT extern Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_; -#else -AGONES_EXPORT extern const Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS class Tag; -struct TagGlobalsTypeInternal; -#ifndef PROTOBUF_MESSAGE_GLOBALS -AGONES_EXPORT extern TagGlobalsTypeInternal Tag_globals_; +struct TagDefaultTypeInternal; +AGONES_EXPORT extern TagDefaultTypeInternal _Tag_default_instance_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Tag_class_data_; -#else -AGONES_EXPORT extern const TagGlobalsTypeInternal Tag_globals_; -#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway @@ -376,28 +255,24 @@ inline constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTyp static_cast(0); inline constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MAX = static_cast(7); -[[nodiscard]] inline bool JSONSchema_JSONSchemaSimpleTypes_IsValid(int value) { +inline bool JSONSchema_JSONSchemaSimpleTypes_IsValid(int value) { return 0 <= value && value <= 7; } inline constexpr int JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_ARRAYSIZE = 7 + 1; -[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -JSONSchema_JSONSchemaSimpleTypes_descriptor(); -[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(JSONSchema_JSONSchemaSimpleTypes) { - return JSONSchema_JSONSchemaSimpleTypes_descriptor(); -} +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL JSONSchema_JSONSchemaSimpleTypes_descriptor(); template -[[nodiscard]] const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { +const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to JSONSchemaSimpleTypes_Name()."); return JSONSchema_JSONSchemaSimpleTypes_Name(static_cast(value)); } template <> -[[nodiscard]] inline const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(JSONSchema_JSONSchemaSimpleTypes value) { +inline const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(JSONSchema_JSONSchemaSimpleTypes value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -[[nodiscard]] inline bool JSONSchema_JSONSchemaSimpleTypes_Parse( +inline bool JSONSchema_JSONSchemaSimpleTypes_Parse( ::absl::string_view name, JSONSchema_JSONSchemaSimpleTypes* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(JSONSchema_JSONSchemaSimpleTypes_descriptor(), name, value); @@ -418,28 +293,24 @@ inline constexpr SecurityScheme_Type SecurityScheme_Type_Type_MIN = static_cast(0); inline constexpr SecurityScheme_Type SecurityScheme_Type_Type_MAX = static_cast(3); -[[nodiscard]] inline bool SecurityScheme_Type_IsValid(int value) { +inline bool SecurityScheme_Type_IsValid(int value) { return 0 <= value && value <= 3; } inline constexpr int SecurityScheme_Type_Type_ARRAYSIZE = 3 + 1; -[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_Type_descriptor(); -[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_Type) { - return SecurityScheme_Type_descriptor(); -} +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Type_descriptor(); template -[[nodiscard]] const ::std::string& SecurityScheme_Type_Name(T value) { +const ::std::string& SecurityScheme_Type_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Type_Name()."); return SecurityScheme_Type_Name(static_cast(value)); } template <> -[[nodiscard]] inline const ::std::string& SecurityScheme_Type_Name(SecurityScheme_Type value) { +inline const ::std::string& SecurityScheme_Type_Name(SecurityScheme_Type value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -[[nodiscard]] inline bool SecurityScheme_Type_Parse( +inline bool SecurityScheme_Type_Parse( ::absl::string_view name, SecurityScheme_Type* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_Type_descriptor(), name, value); @@ -459,28 +330,24 @@ inline constexpr SecurityScheme_In SecurityScheme_In_In_MIN = static_cast(0); inline constexpr SecurityScheme_In SecurityScheme_In_In_MAX = static_cast(2); -[[nodiscard]] inline bool SecurityScheme_In_IsValid(int value) { +inline bool SecurityScheme_In_IsValid(int value) { return 0 <= value && value <= 2; } inline constexpr int SecurityScheme_In_In_ARRAYSIZE = 2 + 1; -[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_In_descriptor(); -[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_In) { - return SecurityScheme_In_descriptor(); -} +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_In_descriptor(); template -[[nodiscard]] const ::std::string& SecurityScheme_In_Name(T value) { +const ::std::string& SecurityScheme_In_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to In_Name()."); return SecurityScheme_In_Name(static_cast(value)); } template <> -[[nodiscard]] inline const ::std::string& SecurityScheme_In_Name(SecurityScheme_In value) { +inline const ::std::string& SecurityScheme_In_Name(SecurityScheme_In value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -[[nodiscard]] inline bool SecurityScheme_In_Parse( +inline bool SecurityScheme_In_Parse( ::absl::string_view name, SecurityScheme_In* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_In_descriptor(), name, value); @@ -502,28 +369,24 @@ inline constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MIN = static_cast(0); inline constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MAX = static_cast(4); -[[nodiscard]] inline bool SecurityScheme_Flow_IsValid(int value) { +inline bool SecurityScheme_Flow_IsValid(int value) { return 0 <= value && value <= 4; } inline constexpr int SecurityScheme_Flow_Flow_ARRAYSIZE = 4 + 1; -[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_Flow_descriptor(); -[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_Flow) { - return SecurityScheme_Flow_descriptor(); -} +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Flow_descriptor(); template -[[nodiscard]] const ::std::string& SecurityScheme_Flow_Name(T value) { +const ::std::string& SecurityScheme_Flow_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Flow_Name()."); return SecurityScheme_Flow_Name(static_cast(value)); } template <> -[[nodiscard]] inline const ::std::string& SecurityScheme_Flow_Name(SecurityScheme_Flow value) { +inline const ::std::string& SecurityScheme_Flow_Name(SecurityScheme_Flow value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -[[nodiscard]] inline bool SecurityScheme_Flow_Parse( +inline bool SecurityScheme_Flow_Parse( ::absl::string_view name, SecurityScheme_Flow* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_Flow_descriptor(), name, value); @@ -545,60 +408,53 @@ inline constexpr Scheme Scheme_MIN = static_cast(0); inline constexpr Scheme Scheme_MAX = static_cast(4); -[[nodiscard]] inline bool Scheme_IsValid(int value) { +inline bool Scheme_IsValid(int value) { return 0 <= value && value <= 4; } inline constexpr int Scheme_ARRAYSIZE = 4 + 1; -[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -Scheme_descriptor(); -[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(Scheme) { - return Scheme_descriptor(); -} +AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Scheme_descriptor(); template -[[nodiscard]] const ::std::string& Scheme_Name(T value) { +const ::std::string& Scheme_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Scheme_Name()."); return Scheme_Name(static_cast(value)); } template <> -[[nodiscard]] inline const ::std::string& Scheme_Name(Scheme value) { +inline const ::std::string& Scheme_Name(Scheme value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -[[nodiscard]] inline bool Scheme_Parse( +inline bool Scheme_Parse( ::absl::string_view name, Scheme* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(Scheme_descriptor(), name, value); } -using ::google::protobuf::internal::generated_enum::AbslParseFlag; -using ::google::protobuf::internal::generated_enum::AbslUnparseFlag; // =================================================================== // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_SecurityRequirementValue final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityRequirement_SecurityRequirementValue)); } #endif template - explicit constexpr SecurityRequirement_SecurityRequirementValue(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(SecurityRequirement_SecurityRequirementValue&& from) noexcept + : SecurityRequirement_SecurityRequirementValue(nullptr, ::std::move(from)) {} inline SecurityRequirement_SecurityRequirementValue& operator=(const SecurityRequirement_SecurityRequirementValue& from) { CopyFrom(from); return *this; @@ -613,27 +469,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const SecurityRequirement_SecurityRequirementValue& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityRequirement_SecurityRequirementValue_globals_); + static const SecurityRequirement_SecurityRequirementValue& 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); } @@ -653,8 +509,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S // implements Message ---------------------------------------------- - [[nodiscard]] SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -667,33 +522,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -704,6 +557,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"; } + protected: explicit SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement_SecurityRequirementValue& from); SecurityRequirement_SecurityRequirementValue( @@ -718,11 +572,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -730,26 +582,21 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S kScopeFieldNumber = 1, }; // repeated string scope = 1; - [[nodiscard]] int scope_size() - const; + int scope_size() const; private: int _internal_scope_size() const; public: void clear_scope() ; - [[nodiscard]] const ::std::string& scope(int index) const; + const ::std::string& scope(int index) const; ::std::string* PROTOBUF_NONNULL mutable_scope(int index); template void set_scope(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_scope(); template void add_scope(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - scope() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_scope(); + const ::google::protobuf::RepeatedPtrField<::std::string>& scope() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_scope(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_scope() const; @@ -759,27 +606,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 0, 100, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 100, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -787,56 +627,46 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_S ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityRequirement_SecurityRequirementValue& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; - ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField<::std::string> scope_; + ::google::protobuf::internal::CachedSize _cached_size_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes_ScopeEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::std::string, +class Scopes_ScopeEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::std::string, + ::google::protobuf::internal::MapEntry; Scopes_ScopeEntry_DoNotUse(); template - explicit constexpr Scopes_ScopeEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Scopes_ScopeEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Scopes_ScopeEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 76, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 76, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -844,48 +674,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes_ScopeEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_ExamplesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::std::string, +class Response_ExamplesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::std::string, + ::google::protobuf::internal::MapEntry; Response_ExamplesEntry_DoNotUse(); template - explicit constexpr Response_ExamplesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Response_ExamplesEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Response_ExamplesEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Response_ExamplesEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 81, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 81, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -893,28 +713,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_ExamplesEntry_DoNotUse fina ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : public ::google::protobuf::Message +class AGONES_EXPORT License final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.License) */ { public: inline License() : License(nullptr) {} ~License() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(License* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(License* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(License)); } #endif template - explicit constexpr License(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR License(::google::protobuf::internal::ConstantInitialized); inline License(const License& from) : License(nullptr, from) {} - inline License(License&& from) noexcept : License(nullptr, ::std::move(from)) {} + inline License(License&& from) noexcept + : License(nullptr, ::std::move(from)) {} inline License& operator=(const License& from) { CopyFrom(from); return *this; @@ -929,27 +749,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const License& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&License_globals_); + static const License& default_instance() { + return *reinterpret_cast( + &_License_default_instance_); } static constexpr int kIndexInFileMessages = 14; friend void swap(License& a, License& b) { a.Swap(&b); } @@ -969,8 +789,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi // implements Message ---------------------------------------------- - [[nodiscard]] License* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + License* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -983,33 +802,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1020,6 +837,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.License"; } + protected: explicit License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const License& from); License( @@ -1034,11 +852,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1048,7 +864,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi }; // string name = 1; void clear_name() ; - [[nodiscard]] const ::std::string& name() const; + const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -1063,7 +879,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi public: // string url = 2; void clear_url() ; - [[nodiscard]] const ::std::string& url() const; + const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -1079,27 +895,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 65, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 65, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1116,28 +925,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : publi union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull License_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfiguration final : public ::google::protobuf::Message +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 JSONSchema_FieldConfiguration() : JSONSchema_FieldConfiguration(nullptr) {} ~JSONSchema_FieldConfiguration() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(JSONSchema_FieldConfiguration* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(JSONSchema_FieldConfiguration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(JSONSchema_FieldConfiguration)); } #endif template - explicit constexpr JSONSchema_FieldConfiguration(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration(::google::protobuf::internal::ConstantInitialized); 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(JSONSchema_FieldConfiguration&& from) noexcept + : JSONSchema_FieldConfiguration(nullptr, ::std::move(from)) {} inline JSONSchema_FieldConfiguration& operator=(const JSONSchema_FieldConfiguration& from) { CopyFrom(from); return *this; @@ -1152,27 +962,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const JSONSchema_FieldConfiguration& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&JSONSchema_FieldConfiguration_globals_); + static const JSONSchema_FieldConfiguration& 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); } @@ -1192,8 +1002,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi // implements Message ---------------------------------------------- - [[nodiscard]] JSONSchema_FieldConfiguration* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + JSONSchema_FieldConfiguration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1206,33 +1015,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1243,6 +1050,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration"; } + protected: explicit JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema_FieldConfiguration& from); JSONSchema_FieldConfiguration( @@ -1257,11 +1065,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1270,7 +1076,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi }; // string path_param_name = 47; void clear_path_param_name() ; - [[nodiscard]] const ::std::string& path_param_name() const; + const ::std::string& path_param_name() const; template void set_path_param_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_path_param_name(); @@ -1286,27 +1092,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 0, 95, - 7>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 0, 95, + 7> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1322,28 +1121,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfi union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public ::google::protobuf::Message +class AGONES_EXPORT Header final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Header) */ { public: inline Header() : Header(nullptr) {} ~Header() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Header* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Header* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Header)); } #endif template - explicit constexpr Header(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Header(::google::protobuf::internal::ConstantInitialized); inline Header(const Header& from) : Header(nullptr, from) {} - inline Header(Header&& from) noexcept : Header(nullptr, ::std::move(from)) {} + inline Header(Header&& from) noexcept + : Header(nullptr, ::std::move(from)) {} inline Header& operator=(const Header& from) { CopyFrom(from); return *this; @@ -1358,27 +1158,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Header& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance
(&Header_globals_); + static const Header& default_instance() { + return *reinterpret_cast( + &_Header_default_instance_); } static constexpr int kIndexInFileMessages = 6; friend void swap(Header& a, Header& b) { a.Swap(&b); } @@ -1398,8 +1198,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public // implements Message ---------------------------------------------- - [[nodiscard]] Header* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Header* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct
(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1412,33 +1211,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1449,6 +1246,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Header"; } + protected: explicit Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from); Header( @@ -1463,11 +1261,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1480,7 +1276,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public }; // string description = 1; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -1495,7 +1291,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public public: // string type = 2; void clear_type() ; - [[nodiscard]] const ::std::string& type() const; + const ::std::string& type() const; template void set_type(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_type(); @@ -1510,7 +1306,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public public: // string format = 3; void clear_format() ; - [[nodiscard]] const ::std::string& format() const; + const ::std::string& format() const; template void set_format(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_format(); @@ -1525,7 +1321,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public public: // string default = 6; void clear_default_() ; - [[nodiscard]] const ::std::string& default_() const; + const ::std::string& default_() const; template void set_default_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_default_(); @@ -1540,7 +1336,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public public: // string pattern = 13; void clear_pattern() ; - [[nodiscard]] const ::std::string& pattern() const; + const ::std::string& pattern() const; template void set_pattern(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_pattern(); @@ -1556,27 +1352,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 5, - 0, 92, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 5, + 0, 92, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1596,28 +1385,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Header_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation final : public ::google::protobuf::Message +class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) */ { public: inline ExternalDocumentation() : ExternalDocumentation(nullptr) {} ~ExternalDocumentation() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ExternalDocumentation* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(ExternalDocumentation* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ExternalDocumentation)); } #endif template - explicit constexpr ExternalDocumentation(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR ExternalDocumentation(::google::protobuf::internal::ConstantInitialized); inline ExternalDocumentation(const ExternalDocumentation& from) : ExternalDocumentation(nullptr, from) {} - inline ExternalDocumentation(ExternalDocumentation&& from) noexcept : ExternalDocumentation(nullptr, ::std::move(from)) {} + inline ExternalDocumentation(ExternalDocumentation&& from) noexcept + : ExternalDocumentation(nullptr, ::std::move(from)) {} inline ExternalDocumentation& operator=(const ExternalDocumentation& from) { CopyFrom(from); return *this; @@ -1632,27 +1422,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const ExternalDocumentation& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&ExternalDocumentation_globals_); + static const ExternalDocumentation& default_instance() { + return *reinterpret_cast( + &_ExternalDocumentation_default_instance_); } static constexpr int kIndexInFileMessages = 15; friend void swap(ExternalDocumentation& a, ExternalDocumentation& b) { a.Swap(&b); } @@ -1672,8 +1462,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation // implements Message ---------------------------------------------- - [[nodiscard]] ExternalDocumentation* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + ExternalDocumentation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1686,33 +1475,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1723,6 +1510,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation"; } + protected: explicit ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ExternalDocumentation& from); ExternalDocumentation( @@ -1737,11 +1525,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1751,7 +1537,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation }; // string description = 1; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -1766,7 +1552,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation public: // string url = 2; void clear_url() ; - [[nodiscard]] const ::std::string& url() const; + const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -1782,27 +1568,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 0, 86, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 0, 86, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1819,28 +1598,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Contact* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Contact* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Contact)); } #endif template - explicit constexpr Contact(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(Contact&& from) noexcept + : Contact(nullptr, ::std::move(from)) {} inline Contact& operator=(const Contact& from) { CopyFrom(from); return *this; @@ -1855,27 +1635,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Contact& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Contact_globals_); + static const Contact& default_instance() { + return *reinterpret_cast( + &_Contact_default_instance_); } static constexpr int kIndexInFileMessages = 13; friend void swap(Contact& a, Contact& b) { a.Swap(&b); } @@ -1895,8 +1675,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi // implements Message ---------------------------------------------- - [[nodiscard]] Contact* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Contact* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1909,33 +1688,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1946,6 +1723,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Contact"; } + protected: explicit Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Contact& from); Contact( @@ -1960,11 +1738,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1975,7 +1751,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi }; // string name = 1; void clear_name() ; - [[nodiscard]] const ::std::string& name() const; + const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -1990,7 +1766,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi public: // string url = 2; void clear_url() ; - [[nodiscard]] const ::std::string& url() const; + const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -2005,7 +1781,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi public: // string email = 3; void clear_email() ; - [[nodiscard]] const ::std::string& email() const; + const ::std::string& email() const; template void set_email(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_email(); @@ -2021,27 +1797,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Contact) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<2, 3, - 0, 70, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<2, 3, + 0, 70, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2059,28 +1828,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : publi union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Contact_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public ::google::protobuf::Message +class AGONES_EXPORT Tag final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Tag) */ { public: inline Tag() : Tag(nullptr) {} ~Tag() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Tag* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Tag* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Tag)); } #endif template - explicit constexpr Tag(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Tag(::google::protobuf::internal::ConstantInitialized); inline Tag(const Tag& from) : Tag(nullptr, from) {} - inline Tag(Tag&& from) noexcept : Tag(nullptr, ::std::move(from)) {} + inline Tag(Tag&& from) noexcept + : Tag(nullptr, ::std::move(from)) {} inline Tag& operator=(const Tag& from) { CopyFrom(from); return *this; @@ -2095,27 +1865,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Tag& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Tag_globals_); + static const Tag& default_instance() { + return *reinterpret_cast( + &_Tag_default_instance_); } static constexpr int kIndexInFileMessages = 20; friend void swap(Tag& a, Tag& b) { a.Swap(&b); } @@ -2135,8 +1905,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: // implements Message ---------------------------------------------- - [[nodiscard]] Tag* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Tag* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2149,33 +1918,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2186,6 +1953,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Tag"; } + protected: explicit Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tag& from); Tag( @@ -2200,11 +1968,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2214,7 +1980,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: }; // string description = 2; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -2228,10 +1994,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - [[nodiscard]] bool has_external_docs() - const; + bool has_external_docs() const; void clear_external_docs() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -2246,27 +2011,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 65, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 65, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2283,48 +2041,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public :: union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Tag_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Swagger_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Swagger_ExtensionsEntry_DoNotUse(); template - explicit constexpr Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Swagger_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Swagger_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 77, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 77, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2332,48 +2081,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger_ExtensionsEntry_DoNotUse fin ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class SecurityScheme_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; SecurityScheme_ExtensionsEntry_DoNotUse(); template - explicit constexpr SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &SecurityScheme_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 84, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 84, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2381,48 +2120,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme_ExtensionsEntry_DoNot ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_SecurityRequirementEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class SecurityRequirement_SecurityRequirementEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; SecurityRequirement_SecurityRequirementEntry_DoNotUse(); template - explicit constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 98, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 98, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2430,28 +2159,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement_SecurityRequirem ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Scopes* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Scopes* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Scopes)); } #endif template - explicit constexpr Scopes(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(Scopes&& from) noexcept + : Scopes(nullptr, ::std::move(from)) {} inline Scopes& operator=(const Scopes& from) { CopyFrom(from); return *this; @@ -2466,27 +2195,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Scopes& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Scopes_globals_); + static const Scopes& default_instance() { + return *reinterpret_cast( + &_Scopes_default_instance_); } static constexpr int kIndexInFileMessages = 29; friend void swap(Scopes& a, Scopes& b) { a.Swap(&b); } @@ -2506,8 +2235,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public // implements Message ---------------------------------------------- - [[nodiscard]] Scopes* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Scopes* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2520,33 +2248,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2557,6 +2283,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Scopes"; } + protected: explicit Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Scopes& from); Scopes( @@ -2571,11 +2298,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2583,45 +2308,37 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public kScopeFieldNumber = 1, }; // map scope = 1; - [[nodiscard]] int scope_size() - const; + int scope_size() const; private: int _internal_scope_size() const; public: void clear_scope() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& scope() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_scope(); + const ::google::protobuf::Map& scope() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_scope(); private: - const ::google::protobuf::Map<::std::string, ::std::string>& _internal_scope() const; - ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_scope(); + const ::google::protobuf::Map& _internal_scope() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_scope(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 1, 62, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 1, 62, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2629,56 +2346,49 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const Scopes& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::MapField + scope_; ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField scope_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_HeadersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Response_HeadersEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Response_HeadersEntry_DoNotUse(); template - explicit constexpr Response_HeadersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Response_HeadersEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Response_HeadersEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Response_HeadersEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 75, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 75, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2686,48 +2396,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_HeadersEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Response_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Response_ExtensionsEntry_DoNotUse(); template - explicit constexpr Response_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Response_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Response_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 78, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 78, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2735,48 +2435,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response_ExtensionsEntry_DoNotUse fi ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Operation_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Operation_ExtensionsEntry_DoNotUse(); template - explicit constexpr Operation_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Operation_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Operation_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 79, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 79, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2784,48 +2474,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation_ExtensionsEntry_DoNotUse f ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class JSONSchema_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; JSONSchema_ExtensionsEntry_DoNotUse(); template - explicit constexpr JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &JSONSchema_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 80, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 80, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2833,48 +2513,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_ExtensionsEntry_DoNotUse ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Info_ExtensionsEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Info_ExtensionsEntry_DoNotUse(); template - explicit constexpr Info_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Info_ExtensionsEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Info_ExtensionsEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 74, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 74, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2882,28 +2552,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityScheme* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(SecurityScheme* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityScheme)); } #endif template - explicit constexpr SecurityScheme(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(SecurityScheme&& from) noexcept + : SecurityScheme(nullptr, ::std::move(from)) {} inline SecurityScheme& operator=(const SecurityScheme& from) { CopyFrom(from); return *this; @@ -2918,27 +2588,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const SecurityScheme& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityScheme_globals_); + static const SecurityScheme& default_instance() { + return *reinterpret_cast( + &_SecurityScheme_default_instance_); } static constexpr int kIndexInFileMessages = 24; friend void swap(SecurityScheme& a, SecurityScheme& b) { a.Swap(&b); } @@ -2958,8 +2628,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final // implements Message ---------------------------------------------- - [[nodiscard]] SecurityScheme* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + SecurityScheme* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2972,33 +2641,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3009,6 +2676,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"; } + protected: explicit SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityScheme& from); SecurityScheme( @@ -3023,18 +2691,16 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // 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; - [[nodiscard]] static inline bool Type_IsValid(int value) { + static inline bool Type_IsValid(int value) { return SecurityScheme_Type_IsValid(value); } static constexpr Type Type_MIN = SecurityScheme_Type_Type_MIN; @@ -3044,10 +2710,10 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final return SecurityScheme_Type_descriptor(); } template - [[nodiscard]] static inline const ::std::string& Type_Name(T value) { + static inline const ::std::string& Type_Name(T value) { return SecurityScheme_Type_Name(value); } - [[nodiscard]] static inline bool Type_Parse( + static inline bool Type_Parse( ::absl::string_view name, Type* PROTOBUF_NONNULL value) { return SecurityScheme_Type_Parse(name, value); } @@ -3055,7 +2721,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final 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; - [[nodiscard]] static inline bool In_IsValid(int value) { + static inline bool In_IsValid(int value) { return SecurityScheme_In_IsValid(value); } static constexpr In In_MIN = SecurityScheme_In_In_MIN; @@ -3065,10 +2731,10 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final return SecurityScheme_In_descriptor(); } template - [[nodiscard]] static inline const ::std::string& In_Name(T value) { + static inline const ::std::string& In_Name(T value) { return SecurityScheme_In_Name(value); } - [[nodiscard]] static inline bool In_Parse( + static inline bool In_Parse( ::absl::string_view name, In* PROTOBUF_NONNULL value) { return SecurityScheme_In_Parse(name, value); } @@ -3078,7 +2744,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final 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; - [[nodiscard]] static inline bool Flow_IsValid(int value) { + static inline bool Flow_IsValid(int value) { return SecurityScheme_Flow_IsValid(value); } static constexpr Flow Flow_MIN = SecurityScheme_Flow_Flow_MIN; @@ -3088,16 +2754,17 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final return SecurityScheme_Flow_descriptor(); } template - [[nodiscard]] static inline const ::std::string& Flow_Name(T value) { + static inline const ::std::string& Flow_Name(T value) { return SecurityScheme_Flow_Name(value); } - [[nodiscard]] static inline bool Flow_Parse( + static inline bool Flow_Parse( ::absl::string_view name, Flow* PROTOBUF_NONNULL value) { return SecurityScheme_Flow_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { + kExtensionsFieldNumber = 9, kDescriptionFieldNumber = 2, kNameFieldNumber = 3, kAuthorizationUrlFieldNumber = 6, @@ -3106,11 +2773,25 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final kTypeFieldNumber = 1, kInFieldNumber = 4, kFlowFieldNumber = 5, - kExtensionsFieldNumber = 9, }; + // 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* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); + + public: // string description = 2; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -3125,7 +2806,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // string name = 3; void clear_name() ; - [[nodiscard]] const ::std::string& name() const; + const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -3140,7 +2821,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // string authorization_url = 6; void clear_authorization_url() ; - [[nodiscard]] const ::std::string& authorization_url() const; + const ::std::string& authorization_url() const; template void set_authorization_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_authorization_url(); @@ -3155,7 +2836,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // string token_url = 7; void clear_token_url() ; - [[nodiscard]] const ::std::string& token_url() const; + const ::std::string& token_url() const; template void set_token_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_token_url(); @@ -3169,10 +2850,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - [[nodiscard]] bool has_scopes() - const; + bool has_scopes() const; void clear_scopes() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE release_scopes(); ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL mutable_scopes(); void set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE value); @@ -3186,7 +2866,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; void clear_type() ; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; void set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); private: @@ -3196,7 +2876,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; void clear_in() ; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; void set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); private: @@ -3206,54 +2886,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; void clear_flow() ; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow flow() const; + ::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: - // map extensions = 9; - [[nodiscard]] int extensions_size() - const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 9, - 3, 124, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 9, + 3, 124, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3263,6 +2920,10 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final const SecurityScheme& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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_; @@ -3271,34 +2932,34 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final int type_; int in_; int flow_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement final : public ::google::protobuf::Message +class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) */ { public: inline SecurityRequirement() : SecurityRequirement(nullptr) {} ~SecurityRequirement() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityRequirement* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(SecurityRequirement* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityRequirement)); } #endif template - explicit constexpr SecurityRequirement(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR SecurityRequirement(::google::protobuf::internal::ConstantInitialized); inline SecurityRequirement(const SecurityRequirement& from) : SecurityRequirement(nullptr, from) {} - inline SecurityRequirement(SecurityRequirement&& from) noexcept : SecurityRequirement(nullptr, ::std::move(from)) {} + inline SecurityRequirement(SecurityRequirement&& from) noexcept + : SecurityRequirement(nullptr, ::std::move(from)) {} inline SecurityRequirement& operator=(const SecurityRequirement& from) { CopyFrom(from); return *this; @@ -3313,27 +2974,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const SecurityRequirement& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityRequirement_globals_); + static const SecurityRequirement& default_instance() { + return *reinterpret_cast( + &_SecurityRequirement_default_instance_); } static constexpr int kIndexInFileMessages = 27; friend void swap(SecurityRequirement& a, SecurityRequirement& b) { a.Swap(&b); } @@ -3353,8 +3014,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f // implements Message ---------------------------------------------- - [[nodiscard]] SecurityRequirement* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + SecurityRequirement* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3367,33 +3027,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3404,6 +3062,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement"; } + protected: explicit SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement& from); SecurityRequirement( @@ -3418,11 +3077,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using SecurityRequirementValue = SecurityRequirement_SecurityRequirementValue; @@ -3431,45 +3088,37 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f kSecurityRequirementFieldNumber = 1, }; // map security_requirement = 1; - [[nodiscard]] int security_requirement_size() - const; + int security_requirement_size() const; private: int _internal_security_requirement_size() const; public: void clear_security_requirement() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& security_requirement() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL mutable_security_requirement(); + const ::google::protobuf::Map& security_requirement() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_security_requirement(); private: - const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& _internal_security_requirement() const; - ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL _internal_mutable_security_requirement(); + const ::google::protobuf::Map& _internal_security_requirement() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_security_requirement(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 2, 90, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 2, 90, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3477,36 +3126,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement f ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityRequirement& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::MapField + security_requirement_; ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField security_requirement_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(JSONSchema* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(JSONSchema* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(JSONSchema)); } #endif template - explicit constexpr JSONSchema(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(JSONSchema&& from) noexcept + : JSONSchema(nullptr, ::std::move(from)) {} inline JSONSchema& operator=(const JSONSchema& from) { CopyFrom(from); return *this; @@ -3521,27 +3173,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const JSONSchema& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&JSONSchema_globals_); + static const JSONSchema& default_instance() { + return *reinterpret_cast( + &_JSONSchema_default_instance_); } static constexpr int kIndexInFileMessages = 19; friend void swap(JSONSchema& a, JSONSchema& b) { a.Swap(&b); } @@ -3561,8 +3213,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu // implements Message ---------------------------------------------- - [[nodiscard]] JSONSchema* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + JSONSchema* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3575,33 +3226,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3612,6 +3261,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema"; } + protected: explicit JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema& from); JSONSchema( @@ -3626,11 +3276,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using FieldConfiguration = JSONSchema_FieldConfiguration; using JSONSchemaSimpleTypes = JSONSchema_JSONSchemaSimpleTypes; @@ -3642,7 +3290,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu static constexpr JSONSchemaSimpleTypes NUMBER = JSONSchema_JSONSchemaSimpleTypes_NUMBER; static constexpr JSONSchemaSimpleTypes OBJECT = JSONSchema_JSONSchemaSimpleTypes_OBJECT; static constexpr JSONSchemaSimpleTypes STRING = JSONSchema_JSONSchemaSimpleTypes_STRING; - [[nodiscard]] static inline bool JSONSchemaSimpleTypes_IsValid(int value) { + static inline bool JSONSchemaSimpleTypes_IsValid(int value) { return JSONSchema_JSONSchemaSimpleTypes_IsValid(value); } static constexpr JSONSchemaSimpleTypes JSONSchemaSimpleTypes_MIN = JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MIN; @@ -3652,10 +3300,10 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu return JSONSchema_JSONSchemaSimpleTypes_descriptor(); } template - [[nodiscard]] static inline const ::std::string& JSONSchemaSimpleTypes_Name(T value) { + static inline const ::std::string& JSONSchemaSimpleTypes_Name(T value) { return JSONSchema_JSONSchemaSimpleTypes_Name(value); } - [[nodiscard]] static inline bool JSONSchemaSimpleTypes_Parse( + static inline bool JSONSchemaSimpleTypes_Parse( ::absl::string_view name, JSONSchemaSimpleTypes* PROTOBUF_NONNULL value) { return JSONSchema_JSONSchemaSimpleTypes_Parse(name, value); } @@ -3666,6 +3314,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu kArrayFieldNumber = 34, kTypeFieldNumber = 35, kEnumFieldNumber = 46, + kExtensionsFieldNumber = 48, kRefFieldNumber = 3, kTitleFieldNumber = 5, kDescriptionFieldNumber = 6, @@ -3687,29 +3336,23 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu kExclusiveMaximumFieldNumber = 12, kExclusiveMinimumFieldNumber = 14, kUniqueItemsFieldNumber = 22, - kExtensionsFieldNumber = 48, }; // repeated string required = 26; - [[nodiscard]] int required_size() - const; + int required_size() const; private: int _internal_required_size() const; public: void clear_required() ; - [[nodiscard]] const ::std::string& required(int index) const; + const ::std::string& required(int index) const; ::std::string* PROTOBUF_NONNULL mutable_required(int index); template void set_required(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_required(); template void add_required(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - required() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_required(); + const ::google::protobuf::RepeatedPtrField<::std::string>& required() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_required(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_required() const; @@ -3717,26 +3360,21 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // repeated string array = 34; - [[nodiscard]] int array_size() - const; + int array_size() const; private: int _internal_array_size() const; public: void clear_array() ; - [[nodiscard]] const ::std::string& array(int index) const; + const ::std::string& array(int index) const; ::std::string* PROTOBUF_NONNULL mutable_array(int index); template void set_array(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_array(); template void add_array(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - array() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_array(); + const ::google::protobuf::RepeatedPtrField<::std::string>& array() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_array(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_array() const; @@ -3744,20 +3382,18 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - [[nodiscard]] int type_size() - const; + int type_size() const; private: int _internal_type_size() const; public: void clear_type() ; public: - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes type(int index) const; + ::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); - [[nodiscard]] const ::google::protobuf::RepeatedField& type() - const; - [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_type(); + const ::google::protobuf::RepeatedField& type() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_type(); private: const ::google::protobuf::RepeatedField& _internal_type() const; @@ -3765,35 +3401,45 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // repeated string enum = 46; - [[nodiscard]] int enum__size() - const; + int enum__size() const; private: int _internal_enum__size() const; public: void clear_enum_() ; - [[nodiscard]] const ::std::string& enum_(int index) const; + const ::std::string& enum_(int index) const; ::std::string* PROTOBUF_NONNULL mutable_enum_(int index); template void set_enum_(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_enum_(); template void add_enum_(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - enum_() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_enum_(); + const ::google::protobuf::RepeatedPtrField<::std::string>& enum_() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_enum_(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_enum_() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_enum_(); + public: + // map extensions = 48; + int extensions_size() const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // string ref = 3; void clear_ref() ; - [[nodiscard]] const ::std::string& ref() const; + const ::std::string& ref() const; template void set_ref(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_ref(); @@ -3808,7 +3454,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string title = 5; void clear_title() ; - [[nodiscard]] const ::std::string& title() const; + const ::std::string& title() const; template void set_title(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_title(); @@ -3823,7 +3469,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string description = 6; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -3838,7 +3484,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string default = 7; void clear_default_() ; - [[nodiscard]] const ::std::string& default_() const; + const ::std::string& default_() const; template void set_default_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_default_(); @@ -3853,7 +3499,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string example = 9; void clear_example() ; - [[nodiscard]] const ::std::string& example() const; + const ::std::string& example() const; template void set_example(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_example(); @@ -3868,7 +3514,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string pattern = 17; void clear_pattern() ; - [[nodiscard]] const ::std::string& pattern() const; + const ::std::string& pattern() const; template void set_pattern(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_pattern(); @@ -3883,7 +3529,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // string format = 36; void clear_format() ; - [[nodiscard]] const ::std::string& format() const; + const ::std::string& format() const; template void set_format(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_format(); @@ -3897,10 +3543,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - [[nodiscard]] bool has_field_configuration() - const; + bool has_field_configuration() const; void clear_field_configuration() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NULLABLE release_field_configuration(); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NONNULL mutable_field_configuration(); void set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NULLABLE value); @@ -3914,7 +3559,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // double multiple_of = 10; void clear_multiple_of() ; - [[nodiscard]] double multiple_of() const; + double multiple_of() const; void set_multiple_of(double value); private: @@ -3924,7 +3569,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // double maximum = 11; void clear_maximum() ; - [[nodiscard]] double maximum() const; + double maximum() const; void set_maximum(double value); private: @@ -3934,7 +3579,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // double minimum = 13; void clear_minimum() ; - [[nodiscard]] double minimum() const; + double minimum() const; void set_minimum(double value); private: @@ -3944,7 +3589,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 max_length = 15; void clear_max_length() ; - [[nodiscard]] ::uint64_t max_length() const; + ::uint64_t max_length() const; void set_max_length(::uint64_t value); private: @@ -3954,7 +3599,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 min_length = 16; void clear_min_length() ; - [[nodiscard]] ::uint64_t min_length() const; + ::uint64_t min_length() const; void set_min_length(::uint64_t value); private: @@ -3964,7 +3609,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 max_items = 20; void clear_max_items() ; - [[nodiscard]] ::uint64_t max_items() const; + ::uint64_t max_items() const; void set_max_items(::uint64_t value); private: @@ -3974,7 +3619,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 min_items = 21; void clear_min_items() ; - [[nodiscard]] ::uint64_t min_items() const; + ::uint64_t min_items() const; void set_min_items(::uint64_t value); private: @@ -3984,7 +3629,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 max_properties = 24; void clear_max_properties() ; - [[nodiscard]] ::uint64_t max_properties() const; + ::uint64_t max_properties() const; void set_max_properties(::uint64_t value); private: @@ -3994,7 +3639,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // uint64 min_properties = 25; void clear_min_properties() ; - [[nodiscard]] ::uint64_t min_properties() const; + ::uint64_t min_properties() const; void set_min_properties(::uint64_t value); private: @@ -4004,7 +3649,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // bool read_only = 8; void clear_read_only() ; - [[nodiscard]] bool read_only() const; + bool read_only() const; void set_read_only(bool value); private: @@ -4014,7 +3659,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // bool exclusive_maximum = 12; void clear_exclusive_maximum() ; - [[nodiscard]] bool exclusive_maximum() const; + bool exclusive_maximum() const; void set_exclusive_maximum(bool value); private: @@ -4024,7 +3669,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // bool exclusive_minimum = 14; void clear_exclusive_minimum() ; - [[nodiscard]] bool exclusive_minimum() const; + bool exclusive_minimum() const; void set_exclusive_minimum(bool value); private: @@ -4034,54 +3679,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu public: // bool unique_items = 22; void clear_unique_items() ; - [[nodiscard]] bool unique_items() const; + bool unique_items() const; void set_unique_items(bool value); private: bool _internal_unique_items() const; void _internal_set_unique_items(bool value); - public: - // map extensions = 48; - [[nodiscard]] int extensions_size() - const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<5, 26, - 3, 158, - 12>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<5, 26, + 3, 158, + 12> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4096,6 +3718,10 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu ::google::protobuf::RepeatedField type_; ::google::protobuf::internal::CachedSize _type_cached_byte_size_; ::google::protobuf::RepeatedPtrField<::std::string> enum__; + ::google::protobuf::internal::MapField + extensions_; ::google::protobuf::internal::ArenaStringPtr ref_; ::google::protobuf::internal::ArenaStringPtr title_; ::google::protobuf::internal::ArenaStringPtr description_; @@ -4117,34 +3743,34 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : pu bool exclusive_maximum_; bool exclusive_minimum_; bool unique_items_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public ::google::protobuf::Message +class AGONES_EXPORT Info final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Info) */ { public: inline Info() : Info(nullptr) {} ~Info() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Info* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Info* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Info)); } #endif template - explicit constexpr Info(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Info(::google::protobuf::internal::ConstantInitialized); inline Info(const Info& from) : Info(nullptr, from) {} - inline Info(Info&& from) noexcept : Info(nullptr, ::std::move(from)) {} + inline Info(Info&& from) noexcept + : Info(nullptr, ::std::move(from)) {} inline Info& operator=(const Info& from) { CopyFrom(from); return *this; @@ -4159,27 +3785,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Info& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Info_globals_); + static const Info& default_instance() { + return *reinterpret_cast( + &_Info_default_instance_); } static constexpr int kIndexInFileMessages = 12; friend void swap(Info& a, Info& b) { a.Swap(&b); } @@ -4199,8 +3825,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : // implements Message ---------------------------------------------- - [[nodiscard]] Info* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Info* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4213,33 +3838,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4250,6 +3873,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Info"; } + protected: explicit Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Info& from); Info( @@ -4264,26 +3888,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kExtensionsFieldNumber = 7, kTitleFieldNumber = 1, kDescriptionFieldNumber = 2, kTermsOfServiceFieldNumber = 3, kVersionFieldNumber = 6, kContactFieldNumber = 4, kLicenseFieldNumber = 5, - kExtensionsFieldNumber = 7, }; + // 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* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); + + public: // string title = 1; void clear_title() ; - [[nodiscard]] const ::std::string& title() const; + const ::std::string& title() const; template void set_title(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_title(); @@ -4298,7 +3935,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : public: // string description = 2; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -4313,7 +3950,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : public: // string terms_of_service = 3; void clear_terms_of_service() ; - [[nodiscard]] const ::std::string& terms_of_service() const; + const ::std::string& terms_of_service() const; template void set_terms_of_service(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_terms_of_service(); @@ -4328,7 +3965,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : public: // string version = 6; void clear_version() ; - [[nodiscard]] const ::std::string& version() const; + const ::std::string& version() const; template void set_version(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_version(); @@ -4342,10 +3979,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : public: // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - [[nodiscard]] bool has_contact() - const; + bool has_contact() const; void clear_contact() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE release_contact(); ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL mutable_contact(); void set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE value); @@ -4358,10 +3994,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : public: // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - [[nodiscard]] bool has_license() - const; + bool has_license() const; void clear_license() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE release_license(); ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL mutable_license(); void set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE value); @@ -4372,47 +4007,24 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : const ::grpc::gateway::protoc_gen_openapiv2::options::License& _internal_license() const; ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL _internal_mutable_license(); - public: - // map extensions = 7; - [[nodiscard]] int extensions_size() - const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 7, - 4, 104, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 7, + 4, 104, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4422,60 +4034,54 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public : const Info& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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* PROTOBUF_NULLABLE contact_; ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE license_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions_SecurityEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class SecurityDefinitions_SecurityEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; SecurityDefinitions_SecurityEntry_DoNotUse(); template - explicit constexpr SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &SecurityDefinitions_SecurityEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 87, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 87, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -4483,28 +4089,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions_SecurityEntry_Do ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public ::google::protobuf::Message +class AGONES_EXPORT Schema final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Schema) */ { public: inline Schema() : Schema(nullptr) {} ~Schema() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Schema* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Schema* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Schema)); } #endif template - explicit constexpr Schema(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Schema(::google::protobuf::internal::ConstantInitialized); inline Schema(const Schema& from) : Schema(nullptr, from) {} - inline Schema(Schema&& from) noexcept : Schema(nullptr, ::std::move(from)) {} + inline Schema(Schema&& from) noexcept + : Schema(nullptr, ::std::move(from)) {} inline Schema& operator=(const Schema& from) { CopyFrom(from); return *this; @@ -4519,27 +4125,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Schema& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Schema_globals_); + static const Schema& default_instance() { + return *reinterpret_cast( + &_Schema_default_instance_); } static constexpr int kIndexInFileMessages = 16; friend void swap(Schema& a, Schema& b) { a.Swap(&b); } @@ -4559,8 +4165,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public // implements Message ---------------------------------------------- - [[nodiscard]] Schema* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Schema* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4573,33 +4178,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4610,6 +4213,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Schema"; } + protected: explicit Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Schema& from); Schema( @@ -4624,11 +4228,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4641,7 +4243,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public }; // string discriminator = 2; void clear_discriminator() ; - [[nodiscard]] const ::std::string& discriminator() const; + const ::std::string& discriminator() const; template void set_discriminator(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_discriminator(); @@ -4656,7 +4258,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public public: // string example = 6; void clear_example() ; - [[nodiscard]] const ::std::string& example() const; + const ::std::string& example() const; template void set_example(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_example(); @@ -4670,10 +4272,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public public: // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - [[nodiscard]] bool has_json_schema() - const; + bool has_json_schema() const; void clear_json_schema() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULLABLE release_json_schema(); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONNULL mutable_json_schema(); void set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULLABLE value); @@ -4686,10 +4287,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - [[nodiscard]] bool has_external_docs() - const; + bool has_external_docs() const; void clear_external_docs() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -4703,7 +4303,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public public: // bool read_only = 3; void clear_read_only() ; - [[nodiscard]] bool read_only() const; + bool read_only() const; void set_read_only(bool value); private: @@ -4714,27 +4314,20 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<3, 5, - 2, 77, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<3, 5, + 2, 77, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4754,28 +4347,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Schema_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityDefinitions* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(SecurityDefinitions* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityDefinitions)); } #endif template - explicit constexpr SecurityDefinitions(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + 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(SecurityDefinitions&& from) noexcept + : SecurityDefinitions(nullptr, ::std::move(from)) {} inline SecurityDefinitions& operator=(const SecurityDefinitions& from) { CopyFrom(from); return *this; @@ -4790,27 +4384,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const SecurityDefinitions& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityDefinitions_globals_); + static const SecurityDefinitions& default_instance() { + return *reinterpret_cast( + &_SecurityDefinitions_default_instance_); } static constexpr int kIndexInFileMessages = 22; friend void swap(SecurityDefinitions& a, SecurityDefinitions& b) { a.Swap(&b); } @@ -4830,8 +4424,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f // implements Message ---------------------------------------------- - [[nodiscard]] SecurityDefinitions* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + SecurityDefinitions* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4844,33 +4437,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4881,6 +4472,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions"; } + protected: explicit SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityDefinitions& from); SecurityDefinitions( @@ -4895,11 +4487,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4907,45 +4497,37 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f kSecurityFieldNumber = 1, }; // map security = 1; - [[nodiscard]] int security_size() - const; + int security_size() const; private: int _internal_security_size() const; public: void clear_security() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& security() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL mutable_security(); + const ::google::protobuf::Map& security() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_security(); private: - const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& _internal_security() const; - ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL _internal_mutable_security(); + const ::google::protobuf::Map& _internal_security() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_security(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<0, 1, - 2, 78, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<0, 1, + 2, 78, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4953,36 +4535,39 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions f ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityDefinitions& from_msg); - ::google::protobuf::internal::HasBits<1> _has_bits_; + ::google::protobuf::internal::MapField + security_; ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::internal::MapField security_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : public ::google::protobuf::Message +class AGONES_EXPORT Response final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Response) */ { public: inline Response() : Response(nullptr) {} ~Response() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Response* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Response* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Response)); } #endif template - explicit constexpr Response(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Response(::google::protobuf::internal::ConstantInitialized); inline Response(const Response& from) : Response(nullptr, from) {} - inline Response(Response&& from) noexcept : Response(nullptr, ::std::move(from)) {} + inline Response(Response&& from) noexcept + : Response(nullptr, ::std::move(from)) {} inline Response& operator=(const Response& from) { CopyFrom(from); return *this; @@ -4997,27 +4582,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Response& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Response_globals_); + static const Response& default_instance() { + return *reinterpret_cast( + &_Response_default_instance_); } static constexpr int kIndexInFileMessages = 10; friend void swap(Response& a, Response& b) { a.Swap(&b); } @@ -5037,8 +4622,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ // implements Message ---------------------------------------------- - [[nodiscard]] Response* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Response* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5051,33 +4635,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5088,6 +4670,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Response"; } + protected: explicit Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from); Response( @@ -5102,124 +4685,111 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kDescriptionFieldNumber = 1, - kSchemaFieldNumber = 2, kHeadersFieldNumber = 3, kExamplesFieldNumber = 4, kExtensionsFieldNumber = 5, + kDescriptionFieldNumber = 1, + kSchemaFieldNumber = 2, }; - // string description = 1; - void clear_description() ; - [[nodiscard]] const ::std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_description(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); - void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); - - private: - const ::std::string& _internal_description() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _internal_mutable_description(); - - public: - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - [[nodiscard]] bool has_schema() - const; - void clear_schema() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& schema() const; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE release_schema(); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL mutable_schema(); - void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE unsafe_arena_release_schema(); - - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL _internal_mutable_schema(); - - public: // map headers = 3; - [[nodiscard]] int headers_size() - const; + int headers_size() const; private: int _internal_headers_size() const; public: void clear_headers() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& headers() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL mutable_headers(); + const ::google::protobuf::Map& headers() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_headers(); private: - const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& _internal_headers() const; - ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL _internal_mutable_headers(); + const ::google::protobuf::Map& _internal_headers() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_headers(); public: // map examples = 4; - [[nodiscard]] int examples_size() - const; + int examples_size() const; private: int _internal_examples_size() const; public: void clear_examples() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& examples() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_examples(); + const ::google::protobuf::Map& examples() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_examples(); private: - const ::google::protobuf::Map<::std::string, ::std::string>& _internal_examples() const; - ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_examples(); + const ::google::protobuf::Map& _internal_examples() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_examples(); public: // map extensions = 5; - [[nodiscard]] int extensions_size() - const; + int extensions_size() const; private: int _internal_extensions_size() const; public: void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + const ::google::protobuf::Map& extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); + + public: + // string description = 1; + void clear_description() ; + const ::std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_description(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); + void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + const ::std::string& _internal_description() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _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; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE release_schema(); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL mutable_schema(); + void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE unsafe_arena_release_schema(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL _internal_mutable_schema(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 5, - 6, 95, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 5, + 6, 95, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5229,58 +4799,58 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : publ const Response& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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* PROTOBUF_NULLABLE schema_; - ::google::protobuf::internal::MapField headers_; - ::google::protobuf::internal::MapField examples_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger_ResponsesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Swagger_ResponsesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Swagger_ResponsesEntry_DoNotUse(); template - explicit constexpr Swagger_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Swagger_ResponsesEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Swagger_ResponsesEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 76, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 76, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -5288,48 +4858,38 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger_ResponsesEntry_DoNotUse fina ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation_ResponsesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, +class Operation_ResponsesEntry_DoNotUse final + : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry<::std::string, ::google::protobuf::Message, + ::google::protobuf::internal::MapEntry; Operation_ResponsesEntry_DoNotUse(); template - explicit constexpr Operation_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); explicit Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { - return &Operation_ResponsesEntry_DoNotUse_globals_; + static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { + return &_Operation_ResponsesEntry_DoNotUse_default_instance_; } - static constexpr auto InternalGenerateClassData_( - const ::google::protobuf::MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - friend ::google::protobuf::internal::PrivateAccess; - friend Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal; - - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<1, 2, - 1, 78, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); + friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<1, 2, + 1, 78, + 2> + _table_; const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -5337,28 +4897,28 @@ class PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation_ResponsesEntry_DoNotUse fi ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : public ::google::protobuf::Message +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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Swagger* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Swagger* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Swagger)); } #endif template - explicit constexpr Swagger(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Swagger(::google::protobuf::internal::ConstantInitialized); inline Swagger(const Swagger& from) : Swagger(nullptr, from) {} - inline Swagger(Swagger&& from) noexcept : Swagger(nullptr, ::std::move(from)) {} + inline Swagger(Swagger&& from) noexcept + : Swagger(nullptr, ::std::move(from)) {} inline Swagger& operator=(const Swagger& from) { CopyFrom(from); return *this; @@ -5373,27 +4933,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Swagger& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Swagger_globals_); + static const Swagger& default_instance() { + return *reinterpret_cast( + &_Swagger_default_instance_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Swagger& a, Swagger& b) { a.Swap(&b); } @@ -5413,8 +4973,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi // implements Message ---------------------------------------------- - [[nodiscard]] Swagger* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Swagger* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5427,33 +4986,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5464,6 +5021,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Swagger"; } + protected: explicit Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Swagger& from); Swagger( @@ -5478,11 +5036,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5490,31 +5046,29 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi kSchemesFieldNumber = 5, kConsumesFieldNumber = 6, kProducesFieldNumber = 7, + kResponsesFieldNumber = 10, kSecurityFieldNumber = 12, + kExtensionsFieldNumber = 15, kSwaggerFieldNumber = 1, kHostFieldNumber = 3, kBasePathFieldNumber = 4, kInfoFieldNumber = 2, kSecurityDefinitionsFieldNumber = 11, kExternalDocsFieldNumber = 14, - kResponsesFieldNumber = 10, - kExtensionsFieldNumber = 15, }; // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - [[nodiscard]] int schemes_size() - const; + int schemes_size() const; private: int _internal_schemes_size() const; public: void clear_schemes() ; public: - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; + ::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); - [[nodiscard]] const ::google::protobuf::RepeatedField& schemes() - const; - [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); + const ::google::protobuf::RepeatedField& schemes() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); private: const ::google::protobuf::RepeatedField& _internal_schemes() const; @@ -5522,26 +5076,21 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // repeated string consumes = 6; - [[nodiscard]] int consumes_size() - const; + int consumes_size() const; private: int _internal_consumes_size() const; public: void clear_consumes() ; - [[nodiscard]] const ::std::string& consumes(int index) const; + const ::std::string& consumes(int index) const; ::std::string* PROTOBUF_NONNULL mutable_consumes(int index); template void set_consumes(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_consumes(); template void add_consumes(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - consumes() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_consumes(); + const ::google::protobuf::RepeatedPtrField<::std::string>& consumes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_consumes(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_consumes() const; @@ -5549,56 +5098,77 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // repeated string produces = 7; - [[nodiscard]] int produces_size() - const; + int produces_size() const; private: int _internal_produces_size() const; public: void clear_produces() ; - [[nodiscard]] const ::std::string& produces(int index) const; + const ::std::string& produces(int index) const; ::std::string* PROTOBUF_NONNULL mutable_produces(int index); template void set_produces(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_produces(); template void add_produces(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - produces() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_produces(); + const ::google::protobuf::RepeatedPtrField<::std::string>& produces() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_produces(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_produces() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_produces(); + public: + // map responses = 10; + int responses_size() const; + private: + int _internal_responses_size() const; + + public: + void clear_responses() ; + const ::google::protobuf::Map& responses() const; + ::google::protobuf::Map* PROTOBUF_NONNULL mutable_responses(); + + private: + const ::google::protobuf::Map& _internal_responses() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_responses(); + public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - [[nodiscard]] int security_size() - const; + int security_size() const; private: int _internal_security_size() const; public: void clear_security() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL add_security(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& - security() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL - mutable_security(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL 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>* PROTOBUF_NONNULL _internal_mutable_security(); + public: + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); public: // string swagger = 1; void clear_swagger() ; - [[nodiscard]] const ::std::string& swagger() const; + const ::std::string& swagger() const; template void set_swagger(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_swagger(); @@ -5613,7 +5183,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // string host = 3; void clear_host() ; - [[nodiscard]] const ::std::string& host() const; + const ::std::string& host() const; template void set_host(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_host(); @@ -5628,7 +5198,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // string base_path = 4; void clear_base_path() ; - [[nodiscard]] const ::std::string& base_path() const; + const ::std::string& base_path() const; template void set_base_path(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_base_path(); @@ -5642,10 +5212,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - [[nodiscard]] bool has_info() - const; + bool has_info() const; void clear_info() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE release_info(); ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL mutable_info(); void set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE value); @@ -5658,10 +5227,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - [[nodiscard]] bool has_security_definitions() - const; + bool has_security_definitions() const; void clear_security_definitions() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE release_security_definitions(); ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NONNULL mutable_security_definitions(); void set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE value); @@ -5674,10 +5242,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - [[nodiscard]] bool has_external_docs() - const; + bool has_external_docs() const; void clear_external_docs() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -5688,63 +5255,24 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL _internal_mutable_external_docs(); - public: - // map responses = 10; - [[nodiscard]] int responses_size() - const; - private: - int _internal_responses_size() const; - - public: - void clear_responses() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& responses() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL mutable_responses(); - - private: - const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& _internal_responses() const; - ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL _internal_mutable_responses(); - - public: - // map extensions = 15; - [[nodiscard]] int extensions_size() - const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<4, 12, - 8, 121, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<4, 12, + 8, 121, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5758,42 +5286,49 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : publi ::google::protobuf::internal::CachedSize _schemes_cached_byte_size_; ::google::protobuf::RepeatedPtrField<::std::string> consumes_; ::google::protobuf::RepeatedPtrField<::std::string> 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* PROTOBUF_NULLABLE info_; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE security_definitions_; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE external_docs_; - ::google::protobuf::internal::MapField responses_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; + +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : public ::google::protobuf::Message +class AGONES_EXPORT Operation final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Operation) */ { public: inline Operation() : Operation(nullptr) {} ~Operation() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Operation* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { + void operator delete(Operation* PROTOBUF_NONNULL msg, std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Operation)); } #endif template - explicit constexpr Operation(::google::protobuf::internal::ConstantInitialized, - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL - class_data); + explicit PROTOBUF_CONSTEXPR Operation(::google::protobuf::internal::ConstantInitialized); inline Operation(const Operation& from) : Operation(nullptr, from) {} - inline Operation(Operation&& from) noexcept : Operation(nullptr, ::std::move(from)) {} + inline Operation(Operation&& from) noexcept + : Operation(nullptr, ::std::move(from)) {} inline Operation& operator=(const Operation& from) { CopyFrom(from); return *this; @@ -5808,27 +5343,27 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub return *this; } - [[nodiscard]] inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + 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); } - [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL - mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { + inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields() + ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL - GetDescriptor() { + static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { return default_instance().GetMetadata().descriptor; } - [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - [[nodiscard]] static const Operation& default_instance() { - return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Operation_globals_); + static const Operation& default_instance() { + return *reinterpret_cast( + &_Operation_default_instance_); } static constexpr int kIndexInFileMessages = 5; friend void swap(Operation& a, Operation& b) { a.Swap(&b); } @@ -5848,8 +5383,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub // implements Message ---------------------------------------------- - [[nodiscard]] Operation* PROTOBUF_NONNULL - New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + Operation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5862,33 +5396,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub const ::google::protobuf::MessageLite& from_msg); public: - [[nodiscard]] bool IsInitialized() const { + bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] ::size_t ByteSizeLong() const final; - [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + ::size_t ByteSizeLong() const final; + ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - [[nodiscard]] int GetCachedSize() const { - return _impl_._cached_size_.Get(); - } + int GetCachedSize() const { return _impl_._cached_size_.Get(); } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5899,6 +5431,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Operation"; } + protected: explicit Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Operation& from); Operation( @@ -5913,11 +5446,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); + static constexpr auto InternalGenerateClassData_(); - [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; + ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5925,37 +5456,32 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub kTagsFieldNumber = 1, kConsumesFieldNumber = 6, kProducesFieldNumber = 7, + kResponsesFieldNumber = 9, kSchemesFieldNumber = 10, kSecurityFieldNumber = 12, + kExtensionsFieldNumber = 13, kSummaryFieldNumber = 2, kDescriptionFieldNumber = 3, kOperationIdFieldNumber = 5, kExternalDocsFieldNumber = 4, kDeprecatedFieldNumber = 11, - kResponsesFieldNumber = 9, - kExtensionsFieldNumber = 13, }; // repeated string tags = 1; - [[nodiscard]] int tags_size() - const; + int tags_size() const; private: int _internal_tags_size() const; public: void clear_tags() ; - [[nodiscard]] const ::std::string& tags(int index) const; + const ::std::string& tags(int index) const; ::std::string* PROTOBUF_NONNULL mutable_tags(int index); template void set_tags(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_tags(); template void add_tags(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - tags() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_tags(); + const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_tags(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_tags() const; @@ -5963,26 +5489,21 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // repeated string consumes = 6; - [[nodiscard]] int consumes_size() - const; + int consumes_size() const; private: int _internal_consumes_size() const; public: void clear_consumes() ; - [[nodiscard]] const ::std::string& consumes(int index) const; + const ::std::string& consumes(int index) const; ::std::string* PROTOBUF_NONNULL mutable_consumes(int index); template void set_consumes(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_consumes(); template void add_consumes(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - consumes() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_consumes(); + const ::google::protobuf::RepeatedPtrField<::std::string>& consumes() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_consumes(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_consumes() const; @@ -5990,47 +5511,55 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // repeated string produces = 7; - [[nodiscard]] int produces_size() - const; + int produces_size() const; private: int _internal_produces_size() const; public: void clear_produces() ; - [[nodiscard]] const ::std::string& produces(int index) const; + const ::std::string& produces(int index) const; ::std::string* PROTOBUF_NONNULL mutable_produces(int index); template void set_produces(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_produces(); template void add_produces(Arg_&& value, Args_... args); - [[nodiscard]] const - ::google::protobuf::RepeatedPtrField<::std::string>& - produces() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* - PROTOBUF_NONNULL - mutable_produces(); + const ::google::protobuf::RepeatedPtrField<::std::string>& produces() const; + ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_produces(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_produces() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_produces(); + 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* PROTOBUF_NONNULL mutable_responses(); + + private: + const ::google::protobuf::Map& _internal_responses() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_responses(); + public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - [[nodiscard]] int schemes_size() - const; + int schemes_size() const; private: int _internal_schemes_size() const; public: void clear_schemes() ; public: - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Scheme schemes(int index) const; + ::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); - [[nodiscard]] const ::google::protobuf::RepeatedField& schemes() - const; - [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); + const ::google::protobuf::RepeatedField& schemes() const; + ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); private: const ::google::protobuf::RepeatedField& _internal_schemes() const; @@ -6038,29 +5567,40 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - [[nodiscard]] int security_size() - const; + int security_size() const; private: int _internal_security_size() const; public: void clear_security() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL add_security(); - [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& - security() const; - [[nodiscard]] ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL - mutable_security(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); + ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL 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>* PROTOBUF_NONNULL _internal_mutable_security(); + public: + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map& _internal_extensions() const; + ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); public: // string summary = 2; void clear_summary() ; - [[nodiscard]] const ::std::string& summary() const; + const ::std::string& summary() const; template void set_summary(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_summary(); @@ -6075,7 +5615,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // string description = 3; void clear_description() ; - [[nodiscard]] const ::std::string& description() const; + const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -6090,7 +5630,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // string operation_id = 5; void clear_operation_id() ; - [[nodiscard]] const ::std::string& operation_id() const; + const ::std::string& operation_id() const; template void set_operation_id(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_operation_id(); @@ -6104,10 +5644,9 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - [[nodiscard]] bool has_external_docs() - const; + bool has_external_docs() const; void clear_external_docs() ; - [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -6121,70 +5660,31 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub public: // bool deprecated = 11; void clear_deprecated() ; - [[nodiscard]] bool deprecated() const; + bool deprecated() const; void set_deprecated(bool value); private: bool _internal_deprecated() const; void _internal_set_deprecated(bool value); - public: - // map responses = 9; - [[nodiscard]] int responses_size() - const; - private: - int _internal_responses_size() const; - - public: - void clear_responses() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& responses() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL mutable_responses(); - - private: - const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& _internal_responses() const; - ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL _internal_mutable_responses(); - - public: - // map extensions = 13; - [[nodiscard]] int extensions_size() - const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; - [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; - ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) private: class _Internal; - using ParseTableT_ = - ::google::protobuf::internal::TcParseTable<4, 12, - 6, 137, - 2>; - static constexpr ParseTableT_ InternalGenerateParseTable_( - const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - #ifndef PROTOBUF_MESSAGE_GLOBALS - static const ParseTableT_ _table_; - #endif + static const ::google::protobuf::internal::TcParseTable<4, 12, + 6, 137, + 2> + _table_; friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; - friend ::google::protobuf::internal::PrivateAccess; template friend class ::google::protobuf::Arena::InternalHelper; using InternalArenaConstructable_ = void; using DestructorSkippable_ = void; struct Impl_ { - inline explicit constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::internal::ConstantInitialized) noexcept; + inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -6197,22 +5697,30 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub ::google::protobuf::RepeatedPtrField<::std::string> tags_; ::google::protobuf::RepeatedPtrField<::std::string> consumes_; ::google::protobuf::RepeatedPtrField<::std::string> produces_; + ::google::protobuf::internal::MapField + responses_; ::google::protobuf::RepeatedField schemes_; ::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* PROTOBUF_NULLABLE external_docs_; bool deprecated_; - ::google::protobuf::internal::MapField responses_; - ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; +AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_class_data_; + // =================================================================== @@ -6237,7 +5745,7 @@ class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : pub inline void Swagger::clear_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.swagger_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Swagger::swagger() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6247,13 +5755,12 @@ inline const ::std::string& Swagger::swagger() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_swagger(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.swagger_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) } inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_swagger() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_swagger(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) return _s; @@ -6264,19 +5771,21 @@ inline const ::std::string& Swagger::_internal_swagger() const { } inline void Swagger::_internal_set_swagger(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.swagger_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.swagger_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.swagger_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.swagger_.Set("", GetArena()); @@ -6286,9 +5795,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_swagger() { inline void Swagger::set_allocated_swagger(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.swagger_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.swagger_.IsDefault()) { @@ -6299,19 +5808,19 @@ inline void Swagger::set_allocated_swagger(::std::string* PROTOBUF_NULLABLE valu // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; inline bool Swagger::has_info() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.info_ != nullptr); return value; } inline void Swagger::clear_info() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.info_ != nullptr) _impl_.info_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Info& Swagger::_internal_info() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::Info* p = _impl_.info_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Info>(&::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) @@ -6325,16 +5834,16 @@ inline void Swagger::unsafe_arena_set_allocated_info( } _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE Swagger::release_info() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::Info* released = _impl_.info_; _impl_.info_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6354,7 +5863,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE S ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::Info* temp = _impl_.info_; _impl_.info_ = nullptr; return temp; @@ -6369,7 +5878,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL Sw } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL Swagger::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000008u; ::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; @@ -6386,9 +5895,9 @@ inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); @@ -6399,7 +5908,7 @@ inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::o inline void Swagger::clear_host() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.host_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Swagger::host() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6409,13 +5918,12 @@ inline const ::std::string& Swagger::host() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_host(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.host_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) } inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) return _s; @@ -6426,19 +5934,21 @@ inline const ::std::string& Swagger::_internal_host() const { } inline void Swagger::_internal_set_host(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.host_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_host() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.host_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_host() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.host_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.host_.Set("", GetArena()); @@ -6448,9 +5958,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_host() { inline void Swagger::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.host_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.host_.IsDefault()) { @@ -6463,7 +5973,7 @@ inline void Swagger::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) inline void Swagger::clear_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_path_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& Swagger::base_path() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6473,13 +5983,12 @@ inline const ::std::string& Swagger::base_path() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_base_path(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000004u; _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* PROTOBUF_NONNULL Swagger::mutable_base_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_base_path(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) return _s; @@ -6490,19 +5999,21 @@ inline const ::std::string& Swagger::_internal_base_path() const { } inline void Swagger::_internal_set_base_path(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.base_path_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.base_path_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.base_path_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.base_path_.Set("", GetArena()); @@ -6512,9 +6023,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_base_path() { inline void Swagger::set_allocated_base_path(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.base_path_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.base_path_.IsDefault()) { @@ -6533,7 +6044,6 @@ inline int Swagger::schemes_size() const { inline void Swagger::clear_schemes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.schemes_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } 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) @@ -6545,10 +6055,7 @@ inline void Swagger::set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv } inline void Swagger::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_schemes() - ->InternalAddWithArena( - internal_visibility(), this, value); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _internal_mutable_schemes()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) } inline const ::google::protobuf::RepeatedField& Swagger::schemes() const @@ -6558,7 +6065,6 @@ inline const ::google::protobuf::RepeatedField& Swagger::schemes() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Swagger::mutable_schemes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_schemes(); @@ -6584,15 +6090,11 @@ inline int Swagger::consumes_size() const { inline void Swagger::clear_consumes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.consumes_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL Swagger::add_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_consumes()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_consumes()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) return _s; } @@ -6608,19 +6110,16 @@ inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_consumes(int index) } template inline void Swagger::set_consumes(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_consumes()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_consumes()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } template inline void Swagger::add_consumes(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_consumes(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_consumes(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::consumes() @@ -6630,7 +6129,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::consu } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Swagger::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_consumes(); @@ -6656,15 +6154,11 @@ inline int Swagger::produces_size() const { inline void Swagger::clear_produces() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.produces_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline ::std::string* PROTOBUF_NONNULL Swagger::add_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_produces()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_produces()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) return _s; } @@ -6680,19 +6174,16 @@ inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_produces(int index) } template inline void Swagger::set_produces(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_produces()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_produces()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } template inline void Swagger::add_produces(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_produces(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_produces(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::produces() @@ -6702,7 +6193,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::produ } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Swagger::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_produces(); @@ -6728,42 +6218,40 @@ inline int Swagger::responses_size() const { inline void Swagger::clear_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.responses_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Swagger::_internal_responses() const { +inline const ::google::protobuf::Map& Swagger::_internal_responses() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.responses_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Swagger::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Swagger::_internal_mutable_responses() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::_internal_mutable_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.responses_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Swagger::mutable_responses() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses) return _internal_mutable_responses(); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; inline bool Swagger::has_security_definitions() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.security_definitions_ != nullptr); return value; } inline void Swagger::clear_security_definitions() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.security_definitions_ != nullptr) _impl_.security_definitions_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& Swagger::_internal_security_definitions() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* p = _impl_.security_definitions_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(&::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) @@ -6777,16 +6265,16 @@ inline void Swagger::unsafe_arena_set_allocated_security_definitions( } _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; } // @@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* PROTOBUF_NULLABLE Swagger::release_security_definitions() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* released = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6806,7 +6294,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROT ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* temp = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; return temp; @@ -6821,7 +6309,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROT } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NONNULL Swagger::mutable_security_definitions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000010u; ::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; @@ -6838,9 +6326,9 @@ inline void Swagger::set_allocated_security_definitions(::grpc::gateway::protoc_ if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); @@ -6857,25 +6345,27 @@ inline int Swagger::security_size() const { inline void Swagger::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); -} -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().Get(index); } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL Swagger::mutable_security() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_security(); +} +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().Get(index); +} inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL Swagger::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = - _internal_mutable_security()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::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; } @@ -6884,13 +6374,6 @@ inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_op // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _internal_security(); } -inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL -Swagger::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); - // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_security(); -} inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Swagger::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -6904,19 +6387,19 @@ Swagger::_internal_mutable_security() { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; inline bool Swagger::has_external_docs() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Swagger::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Swagger::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) @@ -6930,16 +6413,16 @@ inline void Swagger::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000020u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; } // @@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* PROTOBUF_NULLABLE Swagger::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6959,7 +6442,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -6974,7 +6457,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Swagger::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000020u; ::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; @@ -6991,9 +6474,9 @@ inline void Swagger::set_allocated_external_docs(::grpc::gateway::protoc_gen_ope if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000020u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -7007,21 +6490,20 @@ inline int Swagger::_internal_extensions_size() const { inline int Swagger::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Swagger::_internal_extensions() const { +inline const ::google::protobuf::Map& Swagger::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Swagger::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Swagger::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Swagger::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions) return _internal_mutable_extensions(); } @@ -7044,15 +6526,11 @@ inline int Operation::tags_size() const { inline void Operation::clear_tags() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tags_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_tags()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_tags()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) return _s; } @@ -7068,19 +6546,16 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_tags(int index) } template inline void Operation::set_tags(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_tags()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_tags()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } template inline void Operation::add_tags(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_tags(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_tags(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::tags() @@ -7090,7 +6565,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::tag } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_tags(); @@ -7110,7 +6584,7 @@ Operation::_internal_mutable_tags() { inline void Operation::clear_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.summary_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Operation::summary() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7120,13 +6594,12 @@ inline const ::std::string& Operation::summary() const template PROTOBUF_ALWAYS_INLINE void Operation::set_summary(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.summary_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) } inline ::std::string* PROTOBUF_NONNULL Operation::mutable_summary() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_summary(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) return _s; @@ -7137,19 +6610,21 @@ inline const ::std::string& Operation::_internal_summary() const { } inline void Operation::_internal_set_summary(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.summary_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.summary_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.summary_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.summary_.Set("", GetArena()); @@ -7159,9 +6634,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_summary() { inline void Operation::set_allocated_summary(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.summary_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.summary_.IsDefault()) { @@ -7174,7 +6649,7 @@ inline void Operation::set_allocated_summary(::std::string* PROTOBUF_NULLABLE va inline void Operation::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Operation::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7184,13 +6659,12 @@ inline const ::std::string& Operation::description() const template PROTOBUF_ALWAYS_INLINE void Operation::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) } inline ::std::string* PROTOBUF_NONNULL Operation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) return _s; @@ -7201,19 +6675,21 @@ inline const ::std::string& Operation::_internal_description() const { } inline void Operation::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -7223,9 +6699,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_description() { inline void Operation::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -7236,19 +6712,19 @@ inline void Operation::set_allocated_description(::std::string* PROTOBUF_NULLABL // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; inline bool Operation::has_external_docs() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Operation::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Operation::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) @@ -7262,16 +6738,16 @@ inline void Operation::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000008u; } // @@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* PROTOBUF_NULLABLE Operation::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -7291,7 +6767,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -7306,7 +6782,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Operation::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000008u; ::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; @@ -7323,9 +6799,9 @@ inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -7336,7 +6812,7 @@ inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_o inline void Operation::clear_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.operation_id_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& Operation::operation_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7346,13 +6822,12 @@ inline const ::std::string& Operation::operation_id() const template PROTOBUF_ALWAYS_INLINE void Operation::set_operation_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000004u; _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* PROTOBUF_NONNULL Operation::mutable_operation_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::std::string* _s = _internal_mutable_operation_id(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) return _s; @@ -7363,19 +6838,21 @@ inline const ::std::string& Operation::_internal_operation_id() const { } inline void Operation::_internal_set_operation_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.operation_id_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.operation_id_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.operation_id_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.operation_id_.Set("", GetArena()); @@ -7385,9 +6862,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_operation_id() { inline void Operation::set_allocated_operation_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.operation_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.operation_id_.IsDefault()) { @@ -7406,15 +6883,11 @@ inline int Operation::consumes_size() const { inline void Operation::clear_consumes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.consumes_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_consumes()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_consumes()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) return _s; } @@ -7430,19 +6903,16 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_consumes(int index) } template inline void Operation::set_consumes(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_consumes()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_consumes()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } template inline void Operation::add_consumes(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_consumes(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_consumes(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::consumes() @@ -7452,7 +6922,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::con } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_consumes(); @@ -7478,15 +6947,11 @@ inline int Operation::produces_size() const { inline void Operation::clear_produces() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.produces_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_produces()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::std::string* _s = _internal_mutable_produces()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) return _s; } @@ -7502,19 +6967,16 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_produces(int index) } template inline void Operation::set_produces(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_produces()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_produces()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } template inline void Operation::add_produces(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_produces(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_produces(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::produces() @@ -7524,7 +6986,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::pro } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_produces(); @@ -7550,23 +7011,21 @@ inline int Operation::responses_size() const { inline void Operation::clear_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.responses_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Operation::_internal_responses() const { +inline const ::google::protobuf::Map& Operation::_internal_responses() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.responses_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Operation::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Operation::_internal_mutable_responses() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::_internal_mutable_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.responses_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Operation::mutable_responses() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.responses) return _internal_mutable_responses(); } @@ -7581,7 +7040,6 @@ inline int Operation::schemes_size() const { inline void Operation::clear_schemes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.schemes_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } 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) @@ -7593,10 +7051,7 @@ inline void Operation::set_schemes(int index, ::grpc::gateway::protoc_gen_openap } inline void Operation::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_schemes() - ->InternalAddWithArena( - internal_visibility(), this, value); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _internal_mutable_schemes()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) } inline const ::google::protobuf::RepeatedField& Operation::schemes() const @@ -7606,7 +7061,6 @@ inline const ::google::protobuf::RepeatedField& Operation::schemes() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Operation::mutable_schemes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_schemes(); @@ -7626,7 +7080,7 @@ Operation::_internal_mutable_schemes() { inline void Operation::clear_deprecated() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.deprecated_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline bool Operation::deprecated() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.deprecated) @@ -7634,7 +7088,7 @@ inline bool Operation::deprecated() const { } inline void Operation::set_deprecated(bool value) { _internal_set_deprecated(value); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.deprecated) } inline bool Operation::_internal_deprecated() const { @@ -7656,25 +7110,27 @@ inline int Operation::security_size() const { inline void Operation::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); -} -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().Get(index); } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL Operation::mutable_security() + ABSL_ATTRIBUTE_LIFETIME_BOUND { + // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_security(); +} +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().Get(index); +} inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL Operation::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = - _internal_mutable_security()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + ::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; } @@ -7683,13 +7139,6 @@ inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_op // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _internal_security(); } -inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL -Operation::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); - // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_security(); -} inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Operation::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -7708,21 +7157,20 @@ inline int Operation::_internal_extensions_size() const { inline int Operation::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Operation::_internal_extensions() const { +inline const ::google::protobuf::Map& Operation::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Operation::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Operation::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Operation::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions) return _internal_mutable_extensions(); } @@ -7735,7 +7183,7 @@ inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOB inline void Header::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Header::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7745,13 +7193,12 @@ inline const ::std::string& Header::description() const template PROTOBUF_ALWAYS_INLINE void Header::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.description) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.description) return _s; @@ -7762,19 +7209,21 @@ inline const ::std::string& Header::_internal_description() const { } inline void Header::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -7784,9 +7233,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_description() { inline void Header::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -7799,7 +7248,7 @@ inline void Header::set_allocated_description(::std::string* PROTOBUF_NULLABLE v inline void Header::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Header::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7809,13 +7258,12 @@ inline const ::std::string& Header::type() const template PROTOBUF_ALWAYS_INLINE void Header::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.type) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.type) return _s; @@ -7826,19 +7274,21 @@ inline const ::std::string& Header::_internal_type() const { } inline void Header::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.type_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.type_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.type) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.type_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.type_.Set("", GetArena()); @@ -7848,9 +7298,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_type() { inline void Header::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { @@ -7863,7 +7313,7 @@ inline void Header::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { inline void Header::clear_format() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.format_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& Header::format() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7873,13 +7323,12 @@ inline const ::std::string& Header::format() const template PROTOBUF_ALWAYS_INLINE void Header::set_format(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.format) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.format) return _s; @@ -7890,19 +7339,21 @@ inline const ::std::string& Header::_internal_format() const { } inline void Header::_internal_set_format(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.format_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_format() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.format_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_format() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.format) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.format_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.format_.Set("", GetArena()); @@ -7912,9 +7363,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_format() { inline void Header::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.format_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.format_.IsDefault()) { @@ -7927,7 +7378,7 @@ inline void Header::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) inline void Header::clear_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.default__.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::std::string& Header::default_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7937,13 +7388,12 @@ inline const ::std::string& Header::default_() const template PROTOBUF_ALWAYS_INLINE void Header::set_default_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.default) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.default) return _s; @@ -7954,19 +7404,21 @@ inline const ::std::string& Header::_internal_default_() const { } inline void Header::_internal_set_default_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.default__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.default) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; auto* released = _impl_.default__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.default__.Set("", GetArena()); @@ -7976,9 +7428,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_default_() { inline void Header::set_allocated_default_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.default__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.default__.IsDefault()) { @@ -7991,7 +7443,7 @@ inline void Header::set_allocated_default_(::std::string* PROTOBUF_NULLABLE valu inline void Header::clear_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pattern_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::std::string& Header::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8001,13 +7453,12 @@ inline const ::std::string& Header::pattern() const template PROTOBUF_ALWAYS_INLINE void Header::set_pattern(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) return _s; @@ -8018,19 +7469,21 @@ inline const ::std::string& Header::_internal_pattern() const { } inline void Header::_internal_set_pattern(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.pattern_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.pattern_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; auto* released = _impl_.pattern_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.pattern_.Set("", GetArena()); @@ -8040,9 +7493,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_pattern() { inline void Header::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.pattern_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pattern_.IsDefault()) { @@ -8065,7 +7518,7 @@ inline void Header::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value inline void Response::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Response::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8075,13 +7528,12 @@ inline const ::std::string& Response::description() const template PROTOBUF_ALWAYS_INLINE void Response::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Response.description) } inline ::std::string* PROTOBUF_NONNULL Response::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Response.description) return _s; @@ -8092,19 +7544,21 @@ inline const ::std::string& Response::_internal_description() const { } inline void Response::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Response::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Response::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -8114,9 +7568,9 @@ inline ::std::string* PROTOBUF_NULLABLE Response::release_description() { inline void Response::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -8127,19 +7581,19 @@ inline void Response::set_allocated_description(::std::string* PROTOBUF_NULLABLE // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; inline bool Response::has_schema() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.schema_ != nullptr); return value; } inline void Response::clear_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.schema_ != nullptr) _impl_.schema_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& Response::_internal_schema() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::Schema* p = _impl_.schema_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(&::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) @@ -8153,16 +7607,16 @@ inline void Response::unsafe_arena_set_allocated_schema( } _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE Response::release_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::Schema* released = _impl_.schema_; _impl_.schema_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8182,7 +7636,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::Schema* temp = _impl_.schema_; _impl_.schema_ = nullptr; return temp; @@ -8197,7 +7651,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL Response::mutable_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; ::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; @@ -8214,9 +7668,9 @@ inline void Response::set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2 if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); @@ -8233,23 +7687,21 @@ inline int Response::headers_size() const { inline void Response::clear_headers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.headers_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& Response::_internal_headers() const { +inline const ::google::protobuf::Map& Response::_internal_headers() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.headers_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL Response::_internal_mutable_headers() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_headers() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.headers_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL Response::mutable_headers() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.headers) return _internal_mutable_headers(); } @@ -8264,23 +7716,21 @@ inline int Response::examples_size() const { inline void Response::clear_examples() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.examples_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& Response::_internal_examples() const { +inline const ::google::protobuf::Map& Response::_internal_examples() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.examples_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& Response::examples() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Response::_internal_mutable_examples() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_examples() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.examples_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Response::mutable_examples() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_examples() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.examples) return _internal_mutable_examples(); } @@ -8292,21 +7742,20 @@ inline int Response::_internal_extensions_size() const { inline int Response::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Response::_internal_extensions() const { +inline const ::google::protobuf::Map& Response::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Response::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Response::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Response::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.extensions) return _internal_mutable_extensions(); } @@ -8321,7 +7770,7 @@ inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOB inline void Info::clear_title() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.title_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Info::title() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8331,13 +7780,12 @@ inline const ::std::string& Info::title() const template PROTOBUF_ALWAYS_INLINE void Info::set_title(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.title) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.title) return _s; @@ -8348,19 +7796,21 @@ inline const ::std::string& Info::_internal_title() const { } inline void Info::_internal_set_title(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.title_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_title() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.title_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_title() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.title) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.title_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.title_.Set("", GetArena()); @@ -8370,9 +7820,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_title() { inline void Info::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.title_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.title_.IsDefault()) { @@ -8385,7 +7835,7 @@ inline void Info::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { inline void Info::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Info::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8395,13 +7845,12 @@ inline const ::std::string& Info::description() const template PROTOBUF_ALWAYS_INLINE void Info::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.description) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.description) return _s; @@ -8412,19 +7861,21 @@ inline const ::std::string& Info::_internal_description() const { } inline void Info::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -8434,9 +7885,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_description() { inline void Info::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -8449,7 +7900,7 @@ inline void Info::set_allocated_description(::std::string* PROTOBUF_NULLABLE val inline void Info::clear_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.terms_of_service_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& Info::terms_of_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8459,13 +7910,12 @@ inline const ::std::string& Info::terms_of_service() const template PROTOBUF_ALWAYS_INLINE void Info::set_terms_of_service(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; _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* PROTOBUF_NONNULL Info::mutable_terms_of_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::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; @@ -8476,19 +7926,21 @@ inline const ::std::string& Info::_internal_terms_of_service() const { } inline void Info::_internal_set_terms_of_service(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.terms_of_service_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.terms_of_service_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.terms_of_service_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.terms_of_service_.Set("", GetArena()); @@ -8498,9 +7950,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_terms_of_service() { inline void Info::set_allocated_terms_of_service(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.terms_of_service_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.terms_of_service_.IsDefault()) { @@ -8511,19 +7963,19 @@ inline void Info::set_allocated_terms_of_service(::std::string* PROTOBUF_NULLABL // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; inline bool Info::has_contact() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.contact_ != nullptr); return value; } inline void Info::clear_contact() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.contact_ != nullptr) _impl_.contact_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& Info::_internal_contact() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::Contact* p = _impl_.contact_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(&::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) @@ -8537,16 +7989,16 @@ inline void Info::unsafe_arena_set_allocated_contact( } _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE Info::release_contact() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::Contact* released = _impl_.contact_; _impl_.contact_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8566,7 +8018,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::Contact* temp = _impl_.contact_; _impl_.contact_ = nullptr; return temp; @@ -8581,7 +8033,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL Info::mutable_contact() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; ::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; @@ -8598,9 +8050,9 @@ inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); @@ -8609,19 +8061,19 @@ inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::o // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; inline bool Info::has_license() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); + bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; PROTOBUF_ASSUME(!value || _impl_.license_ != nullptr); return value; } inline void Info::clear_license() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.license_ != nullptr) _impl_.license_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::License& Info::_internal_license() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::License* p = _impl_.license_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::License>(&::grpc::gateway::protoc_gen_openapiv2::options::License_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Info.license) @@ -8635,16 +8087,16 @@ inline void Info::unsafe_arena_set_allocated_license( } _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000020u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.license) } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE Info::release_license() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; ::grpc::gateway::protoc_gen_openapiv2::options::License* released = _impl_.license_; _impl_.license_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8664,7 +8116,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.license) - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; ::grpc::gateway::protoc_gen_openapiv2::options::License* temp = _impl_.license_; _impl_.license_ = nullptr; return temp; @@ -8679,7 +8131,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL Info::mutable_license() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000020u; ::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; @@ -8696,9 +8148,9 @@ inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000020u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); @@ -8709,7 +8161,7 @@ inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::o inline void Info::clear_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::std::string& Info::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8719,13 +8171,12 @@ inline const ::std::string& Info::version() const template PROTOBUF_ALWAYS_INLINE void Info::set_version(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.version) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.version) return _s; @@ -8736,19 +8187,21 @@ inline const ::std::string& Info::_internal_version() const { } inline void Info::_internal_set_version(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.version_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_version() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.version_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_version() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.version) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; auto* released = _impl_.version_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.version_.Set("", GetArena()); @@ -8758,9 +8211,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_version() { inline void Info::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.version_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { @@ -8776,21 +8229,20 @@ inline int Info::_internal_extensions_size() const { inline int Info::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Info::_internal_extensions() const { +inline const ::google::protobuf::Map& Info::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Info::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Info::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Info::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Info::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Info::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Info.extensions) return _internal_mutable_extensions(); } @@ -8803,7 +8255,7 @@ inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOB inline void Contact::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Contact::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8813,13 +8265,12 @@ inline const ::std::string& Contact::name() const template PROTOBUF_ALWAYS_INLINE void Contact::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) return _s; @@ -8830,19 +8281,21 @@ inline const ::std::string& Contact::_internal_name() const { } inline void Contact::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -8852,9 +8305,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_name() { inline void Contact::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -8867,7 +8320,7 @@ inline void Contact::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) inline void Contact::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Contact::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8877,13 +8330,12 @@ inline const ::std::string& Contact::url() const template PROTOBUF_ALWAYS_INLINE void Contact::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) return _s; @@ -8894,19 +8346,21 @@ inline const ::std::string& Contact::_internal_url() const { } inline void Contact::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -8916,9 +8370,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_url() { inline void Contact::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -8931,7 +8385,7 @@ inline void Contact::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { inline void Contact::clear_email() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.email_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& Contact::email() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8941,13 +8395,12 @@ inline const ::std::string& Contact::email() const template PROTOBUF_ALWAYS_INLINE void Contact::set_email(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.email_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_email(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) return _s; @@ -8958,19 +8411,21 @@ inline const ::std::string& Contact::_internal_email() const { } inline void Contact::_internal_set_email(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.email_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_email() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.email_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_email() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.email_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.email_.Set("", GetArena()); @@ -8980,9 +8435,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_email() { inline void Contact::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.email_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.email_.IsDefault()) { @@ -8999,7 +8454,7 @@ inline void Contact::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) inline void License::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& License::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9009,13 +8464,12 @@ inline const ::std::string& License::name() const template PROTOBUF_ALWAYS_INLINE void License::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.name) } inline ::std::string* PROTOBUF_NONNULL License::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.name) return _s; @@ -9026,19 +8480,21 @@ inline const ::std::string& License::_internal_name() const { } inline void License::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL License::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE License::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -9048,9 +8504,9 @@ inline ::std::string* PROTOBUF_NULLABLE License::release_name() { inline void License::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -9063,7 +8519,7 @@ inline void License::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) inline void License::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& License::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9073,13 +8529,12 @@ inline const ::std::string& License::url() const template PROTOBUF_ALWAYS_INLINE void License::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.url) } inline ::std::string* PROTOBUF_NONNULL License::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.url) return _s; @@ -9090,19 +8545,21 @@ inline const ::std::string& License::_internal_url() const { } inline void License::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL License::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE License::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.url) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -9112,9 +8569,9 @@ inline ::std::string* PROTOBUF_NULLABLE License::release_url() { inline void License::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -9131,7 +8588,7 @@ inline void License::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { inline void ExternalDocumentation::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& ExternalDocumentation::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9141,13 +8598,12 @@ inline const ::std::string& ExternalDocumentation::description() const template PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) return _s; @@ -9158,19 +8614,21 @@ inline const ::std::string& ExternalDocumentation::_internal_description() const } inline void ExternalDocumentation::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -9180,9 +8638,9 @@ inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_descripti inline void ExternalDocumentation::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -9195,7 +8653,7 @@ inline void ExternalDocumentation::set_allocated_description(::std::string* PROT inline void ExternalDocumentation::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& ExternalDocumentation::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9205,13 +8663,12 @@ inline const ::std::string& ExternalDocumentation::url() const template PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) return _s; @@ -9222,19 +8679,21 @@ inline const ::std::string& ExternalDocumentation::_internal_url() const { } inline void ExternalDocumentation::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -9244,9 +8703,9 @@ inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_url() { inline void ExternalDocumentation::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -9261,19 +8720,19 @@ inline void ExternalDocumentation::set_allocated_url(::std::string* PROTOBUF_NUL // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; inline bool Schema::has_json_schema() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); + bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; PROTOBUF_ASSUME(!value || _impl_.json_schema_ != nullptr); return value; } inline void Schema::clear_json_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.json_schema_ != nullptr) _impl_.json_schema_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& Schema::_internal_json_schema() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* p = _impl_.json_schema_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(&::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) @@ -9287,16 +8746,16 @@ inline void Schema::unsafe_arena_set_allocated_json_schema( } _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } // @@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* PROTOBUF_NULLABLE Schema::release_json_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* released = _impl_.json_schema_; _impl_.json_schema_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -9316,7 +8775,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* temp = _impl_.json_schema_; _impl_.json_schema_ = nullptr; return temp; @@ -9331,7 +8790,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONN } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONNULL Schema::mutable_json_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; ::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; @@ -9348,9 +8807,9 @@ inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openap if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); @@ -9361,7 +8820,7 @@ inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openap inline void Schema::clear_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.discriminator_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Schema::discriminator() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9371,13 +8830,12 @@ inline const ::std::string& Schema::discriminator() const template PROTOBUF_ALWAYS_INLINE void Schema::set_discriminator(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.discriminator_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) } inline ::std::string* PROTOBUF_NONNULL Schema::mutable_discriminator() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_discriminator(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) return _s; @@ -9388,19 +8846,21 @@ inline const ::std::string& Schema::_internal_discriminator() const { } inline void Schema::_internal_set_discriminator(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.discriminator_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Schema::_internal_mutable_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.discriminator_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Schema::release_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.discriminator_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.discriminator_.Set("", GetArena()); @@ -9410,9 +8870,9 @@ inline ::std::string* PROTOBUF_NULLABLE Schema::release_discriminator() { inline void Schema::set_allocated_discriminator(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.discriminator_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.discriminator_.IsDefault()) { @@ -9425,7 +8885,7 @@ inline void Schema::set_allocated_discriminator(::std::string* PROTOBUF_NULLABLE inline void Schema::clear_read_only() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.read_only_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline bool Schema::read_only() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.read_only) @@ -9433,7 +8893,7 @@ inline bool Schema::read_only() const { } inline void Schema::set_read_only(bool value) { _internal_set_read_only(value); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.read_only) } inline bool Schema::_internal_read_only() const { @@ -9447,19 +8907,19 @@ inline void Schema::_internal_set_read_only(bool value) { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; inline bool Schema::has_external_docs() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); + bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Schema::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Schema::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) @@ -9473,16 +8933,16 @@ inline void Schema::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } // @@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* PROTOBUF_NULLABLE Schema::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -9502,7 +8962,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -9517,7 +8977,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Schema::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; ::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; @@ -9534,9 +8994,9 @@ inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_open if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -9547,7 +9007,7 @@ inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_open inline void Schema::clear_example() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.example_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& Schema::example() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9557,13 +9017,12 @@ inline const ::std::string& Schema::example() const template PROTOBUF_ALWAYS_INLINE void Schema::set_example(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) } inline ::std::string* PROTOBUF_NONNULL Schema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) return _s; @@ -9574,19 +9033,21 @@ inline const ::std::string& Schema::_internal_example() const { } inline void Schema::_internal_set_example(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.example_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Schema::_internal_mutable_example() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.example_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Schema::release_example() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.example_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.example_.Set("", GetArena()); @@ -9596,9 +9057,9 @@ inline ::std::string* PROTOBUF_NULLABLE Schema::release_example() { inline void Schema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.example_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.example_.IsDefault()) { @@ -9615,7 +9076,7 @@ inline void Schema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value inline void JSONSchema_FieldConfiguration::clear_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_param_name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& JSONSchema_FieldConfiguration::path_param_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9625,13 +9086,12 @@ inline const ::std::string& JSONSchema_FieldConfiguration::path_param_name() con template PROTOBUF_ALWAYS_INLINE void JSONSchema_FieldConfiguration::set_path_param_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _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* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::mutable_path_param_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::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; @@ -9642,19 +9102,21 @@ inline const ::std::string& JSONSchema_FieldConfiguration::_internal_path_param_ } inline void JSONSchema_FieldConfiguration::_internal_set_path_param_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.path_param_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::_internal_mutable_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.path_param_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema_FieldConfiguration::release_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.path_param_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.path_param_name_.Set("", GetArena()); @@ -9664,9 +9126,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema_FieldConfiguration::release_p inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.path_param_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_param_name_.IsDefault()) { @@ -9685,7 +9147,7 @@ inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(::std:: inline void JSONSchema::clear_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ref_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& JSONSchema::ref() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9695,13 +9157,12 @@ inline const ::std::string& JSONSchema::ref() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_ref(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.ref_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_ref() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_ref(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) return _s; @@ -9712,19 +9173,21 @@ inline const ::std::string& JSONSchema::_internal_ref() const { } inline void JSONSchema::_internal_set_ref(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.ref_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.ref_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.ref_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.ref_.Set("", GetArena()); @@ -9734,9 +9197,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_ref() { inline void JSONSchema::set_allocated_ref(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.ref_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ref_.IsDefault()) { @@ -9749,7 +9212,7 @@ inline void JSONSchema::set_allocated_ref(::std::string* PROTOBUF_NULLABLE value inline void JSONSchema::clear_title() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.title_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& JSONSchema::title() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9759,13 +9222,12 @@ inline const ::std::string& JSONSchema::title() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_title(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) return _s; @@ -9776,19 +9238,21 @@ inline const ::std::string& JSONSchema::_internal_title() const { } inline void JSONSchema::_internal_set_title(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.title_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_title() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.title_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_title() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.title_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.title_.Set("", GetArena()); @@ -9798,9 +9262,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_title() { inline void JSONSchema::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.title_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.title_.IsDefault()) { @@ -9813,7 +9277,7 @@ inline void JSONSchema::set_allocated_title(::std::string* PROTOBUF_NULLABLE val inline void JSONSchema::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& JSONSchema::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9823,13 +9287,12 @@ inline const ::std::string& JSONSchema::description() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) return _s; @@ -9840,19 +9303,21 @@ inline const ::std::string& JSONSchema::_internal_description() const { } inline void JSONSchema::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -9862,9 +9327,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_description() { inline void JSONSchema::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -9877,7 +9342,7 @@ inline void JSONSchema::set_allocated_description(::std::string* PROTOBUF_NULLAB inline void JSONSchema::clear_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.default__.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::std::string& JSONSchema::default_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9887,13 +9352,12 @@ inline const ::std::string& JSONSchema::default_() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_default_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) return _s; @@ -9904,19 +9368,21 @@ inline const ::std::string& JSONSchema::_internal_default_() const { } inline void JSONSchema::_internal_set_default_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.default__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; auto* released = _impl_.default__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.default__.Set("", GetArena()); @@ -9926,9 +9392,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_default_() { inline void JSONSchema::set_allocated_default_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.default__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.default__.IsDefault()) { @@ -9941,7 +9407,7 @@ inline void JSONSchema::set_allocated_default_(::std::string* PROTOBUF_NULLABLE inline void JSONSchema::clear_read_only() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.read_only_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00200000U); + _impl_._has_bits_[0] &= ~0x00020000u; } inline bool JSONSchema::read_only() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.read_only) @@ -9949,7 +9415,7 @@ inline bool JSONSchema::read_only() const { } inline void JSONSchema::set_read_only(bool value) { _internal_set_read_only(value); - SetHasBit(_impl_._has_bits_[0], 0x00200000U); + _impl_._has_bits_[0] |= 0x00020000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.read_only) } inline bool JSONSchema::_internal_read_only() const { @@ -9965,7 +9431,7 @@ inline void JSONSchema::_internal_set_read_only(bool value) { inline void JSONSchema::clear_example() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.example_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::std::string& JSONSchema::example() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9975,13 +9441,12 @@ inline const ::std::string& JSONSchema::example() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_example(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) return _s; @@ -9992,19 +9457,21 @@ inline const ::std::string& JSONSchema::_internal_example() const { } inline void JSONSchema::_internal_set_example(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; _impl_.example_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_example() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000010u; return _impl_.example_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_example() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { + if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; auto* released = _impl_.example_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.example_.Set("", GetArena()); @@ -10014,9 +9481,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_example() { inline void JSONSchema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.example_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.example_.IsDefault()) { @@ -10029,7 +9496,7 @@ inline void JSONSchema::set_allocated_example(::std::string* PROTOBUF_NULLABLE v inline void JSONSchema::clear_multiple_of() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.multiple_of_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00001000U); + _impl_._has_bits_[0] &= ~0x00000100u; } inline double JSONSchema::multiple_of() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.multiple_of) @@ -10037,7 +9504,7 @@ inline double JSONSchema::multiple_of() const { } inline void JSONSchema::set_multiple_of(double value) { _internal_set_multiple_of(value); - SetHasBit(_impl_._has_bits_[0], 0x00001000U); + _impl_._has_bits_[0] |= 0x00000100u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.multiple_of) } inline double JSONSchema::_internal_multiple_of() const { @@ -10053,7 +9520,7 @@ inline void JSONSchema::_internal_set_multiple_of(double value) { inline void JSONSchema::clear_maximum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.maximum_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00002000U); + _impl_._has_bits_[0] &= ~0x00000200u; } inline double JSONSchema::maximum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.maximum) @@ -10061,7 +9528,7 @@ inline double JSONSchema::maximum() const { } inline void JSONSchema::set_maximum(double value) { _internal_set_maximum(value); - SetHasBit(_impl_._has_bits_[0], 0x00002000U); + _impl_._has_bits_[0] |= 0x00000200u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.maximum) } inline double JSONSchema::_internal_maximum() const { @@ -10077,7 +9544,7 @@ inline void JSONSchema::_internal_set_maximum(double value) { inline void JSONSchema::clear_exclusive_maximum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.exclusive_maximum_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00400000U); + _impl_._has_bits_[0] &= ~0x00040000u; } inline bool JSONSchema::exclusive_maximum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_maximum) @@ -10085,7 +9552,7 @@ inline bool JSONSchema::exclusive_maximum() const { } inline void JSONSchema::set_exclusive_maximum(bool value) { _internal_set_exclusive_maximum(value); - SetHasBit(_impl_._has_bits_[0], 0x00400000U); + _impl_._has_bits_[0] |= 0x00040000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_maximum) } inline bool JSONSchema::_internal_exclusive_maximum() const { @@ -10101,7 +9568,7 @@ inline void JSONSchema::_internal_set_exclusive_maximum(bool value) { inline void JSONSchema::clear_minimum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00004000U); + _impl_._has_bits_[0] &= ~0x00000400u; } inline double JSONSchema::minimum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.minimum) @@ -10109,7 +9576,7 @@ inline double JSONSchema::minimum() const { } inline void JSONSchema::set_minimum(double value) { _internal_set_minimum(value); - SetHasBit(_impl_._has_bits_[0], 0x00004000U); + _impl_._has_bits_[0] |= 0x00000400u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.minimum) } inline double JSONSchema::_internal_minimum() const { @@ -10125,7 +9592,7 @@ inline void JSONSchema::_internal_set_minimum(double value) { inline void JSONSchema::clear_exclusive_minimum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.exclusive_minimum_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x00800000U); + _impl_._has_bits_[0] &= ~0x00080000u; } inline bool JSONSchema::exclusive_minimum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_minimum) @@ -10133,7 +9600,7 @@ inline bool JSONSchema::exclusive_minimum() const { } inline void JSONSchema::set_exclusive_minimum(bool value) { _internal_set_exclusive_minimum(value); - SetHasBit(_impl_._has_bits_[0], 0x00800000U); + _impl_._has_bits_[0] |= 0x00080000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_minimum) } inline bool JSONSchema::_internal_exclusive_minimum() const { @@ -10149,7 +9616,7 @@ inline void JSONSchema::_internal_set_exclusive_minimum(bool value) { inline void JSONSchema::clear_max_length() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_length_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00008000U); + _impl_._has_bits_[0] &= ~0x00000800u; } inline ::uint64_t JSONSchema::max_length() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_length) @@ -10157,7 +9624,7 @@ inline ::uint64_t JSONSchema::max_length() const { } inline void JSONSchema::set_max_length(::uint64_t value) { _internal_set_max_length(value); - SetHasBit(_impl_._has_bits_[0], 0x00008000U); + _impl_._has_bits_[0] |= 0x00000800u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_length) } inline ::uint64_t JSONSchema::_internal_max_length() const { @@ -10173,7 +9640,7 @@ inline void JSONSchema::_internal_set_max_length(::uint64_t value) { inline void JSONSchema::clear_min_length() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_length_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00010000U); + _impl_._has_bits_[0] &= ~0x00001000u; } inline ::uint64_t JSONSchema::min_length() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_length) @@ -10181,7 +9648,7 @@ inline ::uint64_t JSONSchema::min_length() const { } inline void JSONSchema::set_min_length(::uint64_t value) { _internal_set_min_length(value); - SetHasBit(_impl_._has_bits_[0], 0x00010000U); + _impl_._has_bits_[0] |= 0x00001000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_length) } inline ::uint64_t JSONSchema::_internal_min_length() const { @@ -10197,7 +9664,7 @@ inline void JSONSchema::_internal_set_min_length(::uint64_t value) { inline void JSONSchema::clear_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pattern_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; } inline const ::std::string& JSONSchema::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10207,13 +9674,12 @@ inline const ::std::string& JSONSchema::pattern() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_pattern(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); ::std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) return _s; @@ -10224,19 +9690,21 @@ inline const ::std::string& JSONSchema::_internal_pattern() const { } inline void JSONSchema::_internal_set_pattern(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; _impl_.pattern_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000020u; return _impl_.pattern_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { + if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; auto* released = _impl_.pattern_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.pattern_.Set("", GetArena()); @@ -10246,9 +9714,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_pattern() { inline void JSONSchema::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] |= 0x00000020u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000200U); + _impl_._has_bits_[0] &= ~0x00000020u; } _impl_.pattern_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pattern_.IsDefault()) { @@ -10261,7 +9729,7 @@ inline void JSONSchema::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE v inline void JSONSchema::clear_max_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_items_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00020000U); + _impl_._has_bits_[0] &= ~0x00002000u; } inline ::uint64_t JSONSchema::max_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_items) @@ -10269,7 +9737,7 @@ inline ::uint64_t JSONSchema::max_items() const { } inline void JSONSchema::set_max_items(::uint64_t value) { _internal_set_max_items(value); - SetHasBit(_impl_._has_bits_[0], 0x00020000U); + _impl_._has_bits_[0] |= 0x00002000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_items) } inline ::uint64_t JSONSchema::_internal_max_items() const { @@ -10285,7 +9753,7 @@ inline void JSONSchema::_internal_set_max_items(::uint64_t value) { inline void JSONSchema::clear_min_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_items_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00040000U); + _impl_._has_bits_[0] &= ~0x00004000u; } inline ::uint64_t JSONSchema::min_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_items) @@ -10293,7 +9761,7 @@ inline ::uint64_t JSONSchema::min_items() const { } inline void JSONSchema::set_min_items(::uint64_t value) { _internal_set_min_items(value); - SetHasBit(_impl_._has_bits_[0], 0x00040000U); + _impl_._has_bits_[0] |= 0x00004000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_items) } inline ::uint64_t JSONSchema::_internal_min_items() const { @@ -10309,7 +9777,7 @@ inline void JSONSchema::_internal_set_min_items(::uint64_t value) { inline void JSONSchema::clear_unique_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unique_items_ = false; - ClearHasBit(_impl_._has_bits_[0], 0x01000000U); + _impl_._has_bits_[0] &= ~0x00100000u; } inline bool JSONSchema::unique_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.unique_items) @@ -10317,7 +9785,7 @@ inline bool JSONSchema::unique_items() const { } inline void JSONSchema::set_unique_items(bool value) { _internal_set_unique_items(value); - SetHasBit(_impl_._has_bits_[0], 0x01000000U); + _impl_._has_bits_[0] |= 0x00100000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.unique_items) } inline bool JSONSchema::_internal_unique_items() const { @@ -10333,7 +9801,7 @@ inline void JSONSchema::_internal_set_unique_items(bool value) { inline void JSONSchema::clear_max_properties() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_properties_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00080000U); + _impl_._has_bits_[0] &= ~0x00008000u; } inline ::uint64_t JSONSchema::max_properties() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_properties) @@ -10341,7 +9809,7 @@ inline ::uint64_t JSONSchema::max_properties() const { } inline void JSONSchema::set_max_properties(::uint64_t value) { _internal_set_max_properties(value); - SetHasBit(_impl_._has_bits_[0], 0x00080000U); + _impl_._has_bits_[0] |= 0x00008000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_properties) } inline ::uint64_t JSONSchema::_internal_max_properties() const { @@ -10357,7 +9825,7 @@ inline void JSONSchema::_internal_set_max_properties(::uint64_t value) { inline void JSONSchema::clear_min_properties() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_properties_ = ::uint64_t{0u}; - ClearHasBit(_impl_._has_bits_[0], 0x00100000U); + _impl_._has_bits_[0] &= ~0x00010000u; } inline ::uint64_t JSONSchema::min_properties() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_properties) @@ -10365,7 +9833,7 @@ inline ::uint64_t JSONSchema::min_properties() const { } inline void JSONSchema::set_min_properties(::uint64_t value) { _internal_set_min_properties(value); - SetHasBit(_impl_._has_bits_[0], 0x00100000U); + _impl_._has_bits_[0] |= 0x00010000u; // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_properties) } inline ::uint64_t JSONSchema::_internal_min_properties() const { @@ -10387,15 +9855,11 @@ inline int JSONSchema::required_size() const { inline void JSONSchema::clear_required() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.required_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_required() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_required()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_required()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) return _s; } @@ -10411,19 +9875,16 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_required(int index) } template inline void JSONSchema::set_required(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_required()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_required()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } template inline void JSONSchema::add_required(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_required(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_required(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::required() @@ -10433,7 +9894,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::re } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_required() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_required(); @@ -10459,15 +9919,11 @@ inline int JSONSchema::array_size() const { inline void JSONSchema::clear_array() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.array_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_array() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_array()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::std::string* _s = _internal_mutable_array()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) return _s; } @@ -10483,19 +9939,16 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_array(int index) } template inline void JSONSchema::set_array(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_array()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_array()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } template inline void JSONSchema::add_array(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_array(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_array(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::array() @@ -10505,7 +9958,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::ar } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_array() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_array(); @@ -10531,7 +9983,6 @@ inline int JSONSchema::type_size() const { inline void JSONSchema::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } 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) @@ -10543,10 +9994,7 @@ inline void JSONSchema::set_type(int index, ::grpc::gateway::protoc_gen_openapiv } inline void JSONSchema::add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_type() - ->InternalAddWithArena( - internal_visibility(), this, value); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _internal_mutable_type()->Add(value); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) } inline const ::google::protobuf::RepeatedField& JSONSchema::type() const @@ -10556,7 +10004,6 @@ inline const ::google::protobuf::RepeatedField& JSONSchema::type() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL JSONSchema::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_type(); @@ -10576,7 +10023,7 @@ JSONSchema::_internal_mutable_type() { inline void JSONSchema::clear_format() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.format_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_._has_bits_[0] &= ~0x00000040u; } inline const ::std::string& JSONSchema::format() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10586,13 +10033,12 @@ inline const ::std::string& JSONSchema::format() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_format(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); ::std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) return _s; @@ -10603,19 +10049,21 @@ inline const ::std::string& JSONSchema::_internal_format() const { } inline void JSONSchema::_internal_set_format(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; _impl_.format_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_format() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000040u; return _impl_.format_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_format() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { + if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_._has_bits_[0] &= ~0x00000040u; auto* released = _impl_.format_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.format_.Set("", GetArena()); @@ -10625,9 +10073,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_format() { inline void JSONSchema::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_._has_bits_[0] |= 0x00000040u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000400U); + _impl_._has_bits_[0] &= ~0x00000040u; } _impl_.format_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.format_.IsDefault()) { @@ -10646,15 +10094,11 @@ inline int JSONSchema::enum__size() const { inline void JSONSchema::clear_enum_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enum__.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_enum_() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_enum_()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::std::string* _s = _internal_mutable_enum_()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) return _s; } @@ -10670,19 +10114,16 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_enum_(int index) } template inline void JSONSchema::set_enum_(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_enum_()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_enum_()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } template inline void JSONSchema::add_enum_(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_enum_(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_enum_(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::enum_() @@ -10692,7 +10133,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::en } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_enum_() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_enum_(); @@ -10710,19 +10150,19 @@ JSONSchema::_internal_mutable_enum_() { // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; inline bool JSONSchema::has_field_configuration() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); + bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; PROTOBUF_ASSUME(!value || _impl_.field_configuration_ != nullptr); return value; } inline void JSONSchema::clear_field_configuration() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.field_configuration_ != nullptr) _impl_.field_configuration_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] &= ~0x00000080u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& JSONSchema::_internal_field_configuration() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* p = _impl_.field_configuration_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(&::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) @@ -10736,16 +10176,16 @@ inline void JSONSchema::unsafe_arena_set_allocated_field_configuration( } _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] |= 0x00000080u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] &= ~0x00000080u; } // @@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* PROTOBUF_NULLABLE JSONSchema::release_field_configuration() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] &= ~0x00000080u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* released = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -10765,7 +10205,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfigura ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] &= ~0x00000080u; ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* temp = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; return temp; @@ -10780,7 +10220,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfigura } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NONNULL JSONSchema::mutable_field_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] |= 0x00000080u; ::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; @@ -10797,9 +10237,9 @@ inline void JSONSchema::set_allocated_field_configuration(::grpc::gateway::proto if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] |= 0x00000080u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); + _impl_._has_bits_[0] &= ~0x00000080u; } _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); @@ -10813,21 +10253,20 @@ inline int JSONSchema::_internal_extensions_size() const { inline int JSONSchema::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& JSONSchema::_internal_extensions() const { +inline const ::google::protobuf::Map& JSONSchema::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& JSONSchema::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL JSONSchema::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL JSONSchema::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL JSONSchema::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL JSONSchema::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x02000000U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions) return _internal_mutable_extensions(); } @@ -10840,7 +10279,7 @@ inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOB inline void Tag::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& Tag::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10850,13 +10289,12 @@ inline const ::std::string& Tag::description() const template PROTOBUF_ALWAYS_INLINE void Tag::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) } inline ::std::string* PROTOBUF_NONNULL Tag::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) return _s; @@ -10867,19 +10305,21 @@ inline const ::std::string& Tag::_internal_description() const { } inline void Tag::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Tag::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Tag::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -10889,9 +10329,9 @@ inline ::std::string* PROTOBUF_NULLABLE Tag::release_description() { inline void Tag::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -10902,19 +10342,19 @@ inline void Tag::set_allocated_description(::std::string* PROTOBUF_NULLABLE valu // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; inline bool Tag::has_external_docs() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); + bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Tag::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Tag::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* p = _impl_.external_docs_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) @@ -10928,16 +10368,16 @@ inline void Tag::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } // @@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* PROTOBUF_NULLABLE Tag::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -10957,7 +10397,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -10972,7 +10412,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Tag::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _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.Tag.external_docs) return _msg; @@ -10989,9 +10429,9 @@ inline void Tag::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapi if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -11014,23 +10454,21 @@ inline int SecurityDefinitions::security_size() const { inline void SecurityDefinitions::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& SecurityDefinitions::_internal_security() const { +inline const ::google::protobuf::Map& SecurityDefinitions::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.security_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& SecurityDefinitions::security() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL SecurityDefinitions::_internal_mutable_security() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityDefinitions::_internal_mutable_security() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.security_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL SecurityDefinitions::mutable_security() +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityDefinitions::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security) return _internal_mutable_security(); } @@ -11045,7 +10483,7 @@ inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openap inline void SecurityScheme::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] &= ~0x00000020u; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type SecurityScheme::type() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.type) @@ -11053,7 +10491,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type Secur } inline void SecurityScheme::set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value) { _internal_set_type(value); - SetHasBit(_impl_._has_bits_[0], 0x00000020U); + _impl_._has_bits_[0] |= 0x00000020u; // @@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 { @@ -11069,7 +10507,7 @@ inline void SecurityScheme::_internal_set_type(::grpc::gateway::protoc_gen_opena inline void SecurityScheme::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } inline const ::std::string& SecurityScheme::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -11079,13 +10517,12 @@ inline const ::std::string& SecurityScheme::description() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) return _s; @@ -11096,19 +10533,21 @@ inline const ::std::string& SecurityScheme::_internal_description() const { } inline void SecurityScheme::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { + if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -11118,9 +10557,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_description() { inline void SecurityScheme::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] |= 0x00000001u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); + _impl_._has_bits_[0] &= ~0x00000001u; } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -11133,7 +10572,7 @@ inline void SecurityScheme::set_allocated_description(::std::string* PROTOBUF_NU inline void SecurityScheme::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } inline const ::std::string& SecurityScheme::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -11143,13 +10582,12 @@ inline const ::std::string& SecurityScheme::name() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) return _s; @@ -11160,19 +10598,21 @@ inline const ::std::string& SecurityScheme::_internal_name() const { } inline void SecurityScheme::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000002u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { + if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -11182,9 +10622,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_name() { inline void SecurityScheme::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] |= 0x00000002u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000002U); + _impl_._has_bits_[0] &= ~0x00000002u; } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -11197,7 +10637,7 @@ inline void SecurityScheme::set_allocated_name(::std::string* PROTOBUF_NULLABLE inline void SecurityScheme::clear_in() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.in_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] &= ~0x00000040u; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In SecurityScheme::in() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.in) @@ -11205,7 +10645,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In Securit } inline void SecurityScheme::set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value) { _internal_set_in(value); - SetHasBit(_impl_._has_bits_[0], 0x00000040U); + _impl_._has_bits_[0] |= 0x00000040u; // @@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 { @@ -11221,7 +10661,7 @@ inline void SecurityScheme::_internal_set_in(::grpc::gateway::protoc_gen_openapi inline void SecurityScheme::clear_flow() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flow_ = 0; - ClearHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] &= ~0x00000080u; } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow SecurityScheme::flow() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.flow) @@ -11229,7 +10669,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow Secur } inline void SecurityScheme::set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value) { _internal_set_flow(value); - SetHasBit(_impl_._has_bits_[0], 0x00000080U); + _impl_._has_bits_[0] |= 0x00000080u; // @@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 { @@ -11245,7 +10685,7 @@ inline void SecurityScheme::_internal_set_flow(::grpc::gateway::protoc_gen_opena inline void SecurityScheme::clear_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.authorization_url_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } inline const ::std::string& SecurityScheme::authorization_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -11255,13 +10695,12 @@ inline const ::std::string& SecurityScheme::authorization_url() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_authorization_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; _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* PROTOBUF_NONNULL SecurityScheme::mutable_authorization_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_authorization_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) return _s; @@ -11272,19 +10711,21 @@ inline const ::std::string& SecurityScheme::_internal_authorization_url() const } inline void SecurityScheme::_internal_set_authorization_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; _impl_.authorization_url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000004u; return _impl_.authorization_url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { + if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; auto* released = _impl_.authorization_url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.authorization_url_.Set("", GetArena()); @@ -11294,9 +10735,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_authorization_ur inline void SecurityScheme::set_allocated_authorization_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] |= 0x00000004u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000004U); + _impl_._has_bits_[0] &= ~0x00000004u; } _impl_.authorization_url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.authorization_url_.IsDefault()) { @@ -11309,7 +10750,7 @@ inline void SecurityScheme::set_allocated_authorization_url(::std::string* PROTO inline void SecurityScheme::clear_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.token_url_.ClearToEmpty(); - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } inline const ::std::string& SecurityScheme::token_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -11319,13 +10760,12 @@ inline const ::std::string& SecurityScheme::token_url() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_token_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; _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* PROTOBUF_NONNULL SecurityScheme::mutable_token_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_token_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) return _s; @@ -11336,19 +10776,21 @@ inline const ::std::string& SecurityScheme::_internal_token_url() const { } inline void SecurityScheme::_internal_set_token_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; _impl_.token_url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); + _impl_._has_bits_[0] |= 0x00000008u; return _impl_.token_url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) - if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { + if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { return nullptr; } - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; auto* released = _impl_.token_url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.token_url_.Set("", GetArena()); @@ -11358,9 +10800,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_token_url() { inline void SecurityScheme::set_allocated_token_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] |= 0x00000008u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000008U); + _impl_._has_bits_[0] &= ~0x00000008u; } _impl_.token_url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.token_url_.IsDefault()) { @@ -11371,19 +10813,19 @@ inline void SecurityScheme::set_allocated_token_url(::std::string* PROTOBUF_NULL // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; inline bool SecurityScheme::has_scopes() const { - bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); + bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; PROTOBUF_ASSUME(!value || _impl_.scopes_ != nullptr); return value; } inline void SecurityScheme::clear_scopes() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.scopes_ != nullptr) _impl_.scopes_->Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& SecurityScheme::_internal_scopes() const { ::google::protobuf::internal::TSanRead(&_impl_); const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* p = _impl_.scopes_; - return p != nullptr ? *p : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(&::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_); + 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 ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) @@ -11397,16 +10839,16 @@ inline void SecurityScheme::unsafe_arena_set_allocated_scopes( } _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); if (value != nullptr) { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE SecurityScheme::release_scopes() { ::google::protobuf::internal::TSanWrite(&_impl_); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* released = _impl_.scopes_; _impl_.scopes_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -11426,7 +10868,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* temp = _impl_.scopes_; _impl_.scopes_ = nullptr; return temp; @@ -11441,7 +10883,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL SecurityScheme::mutable_scopes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; ::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; @@ -11458,9 +10900,9 @@ inline void SecurityScheme::set_allocated_scopes(::grpc::gateway::protoc_gen_ope if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - SetHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] |= 0x00000010u; } else { - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); + _impl_._has_bits_[0] &= ~0x00000010u; } _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); @@ -11474,21 +10916,20 @@ inline int SecurityScheme::_internal_extensions_size() const { inline int SecurityScheme::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& SecurityScheme::_internal_extensions() const { +inline const ::google::protobuf::Map& SecurityScheme::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& SecurityScheme::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_extensions() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL SecurityScheme::mutable_extensions() +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityScheme::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions) return _internal_mutable_extensions(); } @@ -11507,15 +10948,11 @@ inline int SecurityRequirement_SecurityRequirementValue::scope_size() const { inline void SecurityRequirement_SecurityRequirementValue::clear_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.scope_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::add_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = - _internal_mutable_scope()->InternalAddWithArena( - ::google::protobuf::MessageLite::internal_visibility(), GetArena()); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::std::string* _s = _internal_mutable_scope()->Add(); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) return _s; } @@ -11531,19 +10968,16 @@ inline ::std::string* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementVa } template inline void SecurityRequirement_SecurityRequirementValue::set_scope(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString( - *_internal_mutable_scope()->Mutable(index), - ::std::forward(value), args... ); + ::google::protobuf::internal::AssignToString(*_internal_mutable_scope()->Mutable(index), ::std::forward(value), + args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } template inline void SecurityRequirement_SecurityRequirementValue::add_scope(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField( - ::google::protobuf::MessageLite::internal_visibility(), GetArena(), - *_internal_mutable_scope(), ::std::forward(value), - args... ); - SetHasBit(_impl_._has_bits_[0], 0x00000001U); + ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_scope(), + ::std::forward(value), + args... ); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& SecurityRequirement_SecurityRequirementValue::scope() @@ -11553,7 +10987,6 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& SecurityRequir } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_scope(); @@ -11585,23 +11018,21 @@ inline int SecurityRequirement::security_requirement_size() const { inline void SecurityRequirement::clear_security_requirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_requirement_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::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 { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.security_requirement_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& SecurityRequirement::security_requirement() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL SecurityRequirement::_internal_mutable_security_requirement() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityRequirement::_internal_mutable_security_requirement() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.security_requirement_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL SecurityRequirement::mutable_security_requirement() +inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityRequirement::mutable_security_requirement() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement) return _internal_mutable_security_requirement(); } @@ -11622,23 +11053,21 @@ inline int Scopes::scope_size() const { inline void Scopes::clear_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.scope_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& Scopes::_internal_scope() const { +inline const ::google::protobuf::Map& Scopes::_internal_scope() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.scope_.GetMap(); } -inline const ::google::protobuf::Map<::std::string, ::std::string>& Scopes::scope() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +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 ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Scopes::_internal_mutable_scope() { +inline ::google::protobuf::Map* PROTOBUF_NONNULL Scopes::_internal_mutable_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.scope_.MutableMap(); } -inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Scopes::mutable_scope() +inline ::google::protobuf::Map* PROTOBUF_NONNULL Scopes::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { - SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope) return _internal_mutable_scope(); } @@ -11694,6 +11123,5 @@ inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::grpc::gateway: // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" -// clang-format on #endif // protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh diff --git a/sdks/cpp/src/google/annotations.pb.cc b/sdks/cpp/src/google/annotations.pb.cc index c7581f6a6a..810483535a 100644 --- a/sdks/cpp/src/google/annotations.pb.cc +++ b/sdks/cpp/src/google/annotations.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/annotations.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #include "google/api/annotations.pb.h" @@ -24,7 +24,6 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -44,14 +43,14 @@ namespace google { namespace api { } // namespace api } // namespace google -static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; const ::uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* PROTOBUF_NULLABLE schemas = nullptr; -static constexpr ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE - file_message_globals = nullptr; +static constexpr ::_pb::Message* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE + file_default_instances = nullptr; const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { "\n\034google/api/annotations.proto\022\ngoogle.a" @@ -80,7 +79,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2 2, 0, schemas, - file_message_globals, + file_default_instances, TableStruct_google_2fapi_2fannotations_2eproto::offsets, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, file_level_service_descriptors_google_2fapi_2fannotations_2eproto, @@ -90,7 +89,7 @@ namespace api { 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_globals_); + http(kHttpFieldNumber, &::google::api::_HttpRule_default_instance_); // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google diff --git a/sdks/cpp/src/google/http.pb.cc b/sdks/cpp/src/google/http.pb.cc index ff945bcbcb..31e4b0789d 100644 --- a/sdks/cpp/src/google/http.pb.cc +++ b/sdks/cpp/src/google/http.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/http.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #include "google/api/http.pb.h" @@ -24,7 +24,6 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -40,76 +39,10 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; -#ifdef PROTOBUF_MESSAGE_GLOBALS -namespace { -PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData - file_reflection_data[] = { - // ::google::api::Http - {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, - // ::google::api::HttpRule - {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, - // ::google::api::CustomHttpPattern - {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, -}; -} // namespace -#endif namespace google { namespace api { -class CustomHttpPattern::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_); -}; - -constexpr CustomHttpPattern::ParseTableT_ CustomHttpPattern::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, - // string kind = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string kind = 1; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string path = 2; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\4\4\0\0\0\0\0" - "google.api.CustomHttpPattern" - "kind" - "path" - }}, - }; -} - inline constexpr CustomHttpPattern::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, kind_( @@ -120,206 +53,29 @@ inline constexpr CustomHttpPattern::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL CustomHttpPattern::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CustomHttpPattern(arena); -} -constexpr auto CustomHttpPattern::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CustomHttpPattern), alignof(CustomHttpPattern)); -} -constexpr auto CustomHttpPattern::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &CustomHttpPattern::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CustomHttpPattern::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CustomHttpPattern::ByteSizeLong, - &CustomHttpPattern::_InternalSerialize, + : ::google::protobuf::Message(CustomHttpPattern_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[2], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct CustomHttpPatternGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr CustomHttpPatternGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - CustomHttpPattern_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(CustomHttpPattern::InternalGenerateClassData_( - _default, &CustomHttpPattern_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~CustomHttpPatternGlobalsTypeInternal() {} +struct CustomHttpPatternDefaultTypeInternal { + PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~CustomHttpPatternDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) CustomHttpPattern _default; + CustomHttpPattern _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(CustomHttpPatternGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* CustomHttpPattern_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return CustomHttpPattern_globals_.GetClassData(); -#else - return CustomHttpPattern_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class HttpRule::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); -}; - -constexpr HttpRule::ParseTableT_ HttpRule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_), - 0, // no _extensions_ - 12, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294963968, // skipmap - offsetof(ParseTableT_, field_entries), - 10, // num_field_entries - 2, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .google.api.HttpRule additional_bindings = 11; - {::_pbi::TcParser::FastMtR1, - {90, 0, 1, - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_)}}, - // string response_body = 12; - {::_pbi::TcParser::FastUS1, - {98, 3, 0, - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string body = 7; - {::_pbi::TcParser::FastUS1, - {58, 2, 0, - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string selector = 1; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string response_body = 12; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::api::CustomHttpPattern>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::api::CustomHttpPattern_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::api::HttpRule_globals_}, - #endif - }}, - {{ - "\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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; inline constexpr HttpRule::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - additional_bindings_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::HttpRule, - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() - } - , + additional_bindings_{}, selector_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -333,260 +89,55 @@ inline constexpr HttpRule::Impl_::Impl_( _oneof_case_{} {} template -constexpr HttpRule::HttpRule(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL HttpRule::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) HttpRule(arena); -} -constexpr auto HttpRule::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HttpRule), alignof(HttpRule)); -} -constexpr auto HttpRule::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &HttpRule::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR HttpRule::HttpRule(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &HttpRule::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &HttpRule::ByteSizeLong, - &HttpRule::_InternalSerialize, + : ::google::protobuf::Message(HttpRule_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[1], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct HttpRuleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr HttpRuleGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - HttpRule_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(HttpRule::InternalGenerateClassData_( - _default, &HttpRule_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~HttpRuleGlobalsTypeInternal() {} +struct HttpRuleDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpRuleDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) HttpRule _default; + HttpRule _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(HttpRuleGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HttpRuleGlobalsTypeInternal HttpRule_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* HttpRule_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return HttpRule_globals_.GetClassData(); -#else - return HttpRule_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Http::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_); -}; - -constexpr Http::ParseTableT_ Http::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_)}}, - // repeated .google.api.HttpRule rules = 1; - {::_pbi::TcParser::FastMtR1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated .google.api.HttpRule rules = 1; - {PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool fully_decode_reserved_expansion = 2; - {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::api::HttpRule_globals_}, - #endif - }}, - {{ - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; inline constexpr Http::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - rules_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::Http, - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() - } - , + rules_{}, fully_decode_reserved_expansion_{false} {} template -constexpr Http::Http(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR Http::Http(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data + : ::google::protobuf::Message(Http_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { + _impl_(::_pbi::ConstantInitialized()) { } -inline void* PROTOBUF_NONNULL Http::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Http(arena); -} -constexpr auto Http::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Http), alignof(Http)); -} -constexpr auto Http::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Http::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Http::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Http::ByteSizeLong, - &Http::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Http, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[0], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct HttpGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr HttpGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Http_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Http::InternalGenerateClassData_( - _default, &Http_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~HttpGlobalsTypeInternal() {} +struct HttpDefaultTypeInternal { + PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HttpDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Http _default; + Http _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(HttpGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HttpGlobalsTypeInternal Http_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Http_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Http_globals_.GetClassData(); -#else - return Http_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; } // namespace api } // namespace google -static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; const ::uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -596,33 +147,33 @@ const ::uint32_t 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), + ~0u, 0, - 1, 0x085, // bitmap PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), 15, // hasbit index offset PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.selector_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + ::_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_), - 1, + 0, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, + 1, 2, - 3, - 0, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_._has_bits_), 5, // hasbit index offset @@ -638,11 +189,10 @@ static const ::_pbi::MigrationSchema {7, sizeof(::google::api::HttpRule)}, {32, sizeof(::google::api::CustomHttpPattern)}, }; -static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const - file_message_globals[] = { - &::google::api::Http_globals_, - &::google::api::HttpRule_globals_, - &::google::api::CustomHttpPattern_globals_, +static const ::_pb::Message* PROTOBUF_NONNULL 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[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -673,7 +223,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2 0, 3, schemas, - file_message_globals, + file_default_instances, TableStruct_google_2fapi_2fhttp_2eproto::offsets, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, file_level_service_descriptors_google_2fapi_2fhttp_2eproto, @@ -682,9 +232,17 @@ namespace google { namespace api { // =================================================================== +class Http::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_); +}; + Http::Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Http_get_class_data()) { + : ::google::protobuf::Message(arena, Http_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -692,25 +250,18 @@ Http::Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:google.api.Http) } PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::google::api::Http& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::google::api::Http& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - rules_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::Http, - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() - , from.rules_ - } - {} + rules_{visibility, arena, from.rules_} {} Http::Http( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Http& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Http_get_class_data()) { - + : ::google::protobuf::Message(arena, Http_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -724,14 +275,10 @@ Http::Http( // @@protoc_insertion_point(copy_constructor:google.api.Http) } PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - rules_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::Http, - PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() - } - {} + rules_{visibility, arena} {} inline void Http::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -743,18 +290,58 @@ Http::~Http() { } inline void Http::SharedDtor(MessageLite& self) { Http& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Http::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Http(arena); +} +constexpr auto Http::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_) + + decltype(Http::_impl_.rules_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(Http), alignof(Http), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Http::PlacementNew_, + sizeof(Http), + alignof(Http)); + } +} +constexpr auto Http::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Http_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Http::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Http::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Http::ByteSizeLong, + &Http::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Http, _impl_._cached_size_), + false, + }, + &Http::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Http_class_data_ = - Http::InternalGenerateClassData_(Http_globals_._default); + Http::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Http::GetClassData() const { @@ -762,21 +349,48 @@ Http::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Http_class_data_.tc_table); return Http_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Http::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Http_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Http_globals_)); - return Http_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Http::ParseTableT_ - Http::_table_ = - Http::InternalGenerateParseTable_(Http_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 0, 2> +Http::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Http, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 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_), -1, 0, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool fully_decode_reserved_expansion = 2; + {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, + }}, + {{ + }}, +}; PROTOBUF_NOINLINE void Http::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Http) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -784,10 +398,7 @@ PROTOBUF_NOINLINE void Http::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.rules_.Clear(); - } + _impl_.rules_.Clear(); _impl_.fully_decode_reserved_expansion_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -804,29 +415,23 @@ ::uint8_t* PROTOBUF_NONNULL Http::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Http& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // repeated .google.api.HttpRule rules = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - 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); - } + 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; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (this_._internal_fully_decode_reserved_expansion() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -858,17 +463,19 @@ ::size_t Http::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + { // repeated .google.api.HttpRule rules = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1UL * this_._internal_rules_size(); for (const auto& msg : this_._internal_rules()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + } + { // bool fully_decode_reserved_expansion = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000001u) != 0) { if (this_._internal_fully_decode_reserved_expansion() != 0) { total_size += 2; } @@ -878,39 +485,28 @@ ::size_t Http::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Http::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_internal_mutable_rules()->MergeFrom( + from._internal_rules()); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_rules()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_rules()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - if (from._internal_fully_decode_reserved_expansion() != 0) { - _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; - } + if ((cached_has_bits & 0x00000001u) != 0) { + if (from._internal_fully_decode_reserved_expansion() != 0) { + _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Http::CopyFrom(const Http& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http) +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http) if (&from == this) return; Clear(); MergeFrom(from); @@ -930,6 +526,16 @@ ::google::protobuf::Metadata Http::GetMetadata() const { } // =================================================================== +class HttpRule::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); +}; + void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_NULLABLE custom) { ::google::protobuf::Arena* message_arena = GetArena(); clear_pattern(); @@ -945,7 +551,7 @@ void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_N } HttpRule::HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, HttpRule_get_class_data()) { + : ::google::protobuf::Message(arena, HttpRule_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -953,18 +559,12 @@ HttpRule::HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) } PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::google::api::HttpRule& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::google::api::HttpRule& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - additional_bindings_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::HttpRule, - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() - , from.additional_bindings_ - } - , + additional_bindings_{visibility, arena, from.additional_bindings_}, selector_(arena, from.selector_), body_(arena, from.body_), response_body_(arena, from.response_body_), @@ -975,8 +575,7 @@ HttpRule::HttpRule( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HttpRule& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, HttpRule_get_class_data()) { - + : ::google::protobuf::Message(arena, HttpRule_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1011,14 +610,10 @@ HttpRule::HttpRule( // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) } PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - additional_bindings_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::google::api::HttpRule, - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() - } - , + additional_bindings_{visibility, arena}, selector_(arena), body_(arena), response_body_(arena), @@ -1034,9 +629,6 @@ HttpRule::~HttpRule() { } inline void HttpRule::SharedDtor(MessageLite& self) { HttpRule& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.selector_.Destroy(); @@ -1088,10 +680,53 @@ void HttpRule::clear_pattern() { } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL HttpRule::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HttpRule(arena); +} +constexpr auto HttpRule::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_) + + decltype(HttpRule::_impl_.additional_bindings_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(HttpRule), alignof(HttpRule), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&HttpRule::PlacementNew_, + sizeof(HttpRule), + alignof(HttpRule)); + } +} +constexpr auto HttpRule::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_HttpRule_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &HttpRule::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HttpRule::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &HttpRule::ByteSizeLong, + &HttpRule::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._cached_size_), + false, + }, + &HttpRule::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_ = - HttpRule::InternalGenerateClassData_(HttpRule_globals_._default); + HttpRule::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL HttpRule::GetClassData() const { @@ -1099,21 +734,93 @@ HttpRule::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(HttpRule_class_data_.tc_table); return HttpRule_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -HttpRule::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&HttpRule_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&HttpRule_globals_)); - return HttpRule_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HttpRule::ParseTableT_ - HttpRule::_table_ = - HttpRule::InternalGenerateParseTable_(HttpRule_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 10, 2, 82, 2> +HttpRule::_table_ = { + { + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 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, 2, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // string body = 7; + {::_pbi::TcParser::FastUS1, + {58, 1, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string selector = 1; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_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_), -1, 1, + (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // string response_body = 12; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_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" + }}, +}; PROTOBUF_NOINLINE void HttpRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpRule) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1121,18 +828,16 @@ PROTOBUF_NOINLINE void HttpRule::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.additional_bindings_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.additional_bindings_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.selector_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.body_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.response_body_.ClearNonDefaultToEmpty(); } } @@ -1152,16 +857,12 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const HttpRule& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string selector = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_selector().empty()) { const ::std::string& _s = this_._internal_selector(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1210,7 +911,7 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( break; } // string body = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_body().empty()) { const ::std::string& _s = this_._internal_body(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1227,20 +928,18 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( } // repeated .google.api.HttpRule additional_bindings = 11; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - 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); - } + 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 (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_response_body().empty()) { const ::std::string& _s = this_._internal_response_body(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1273,31 +972,33 @@ ::size_t HttpRule::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + { // repeated .google.api.HttpRule additional_bindings = 11; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1UL * this_._internal_additional_bindings_size(); for (const auto& msg : this_._internal_additional_bindings()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000007u) != 0) { // string selector = 1; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_selector().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_selector()); } } // string body = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_body().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_body()); } } // string response_body = 12; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_response_body().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_response_body()); @@ -1349,27 +1050,20 @@ ::size_t HttpRule::ByteSizeLong() const { &this_._impl_._cached_size_); } -void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; + (void) cached_has_bits; + _this->_internal_mutable_additional_bindings()->MergeFrom( + from._internal_additional_bindings()); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_additional_bindings()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_additional_bindings()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_selector().empty()) { _this->_internal_set_selector(from._internal_selector()); } else { @@ -1378,7 +1072,7 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_body().empty()) { _this->_internal_set_body(from._internal_body()); } else { @@ -1387,7 +1081,7 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_response_body().empty()) { _this->_internal_set_response_body(from._internal_response_body()); } else { @@ -1398,8 +1092,7 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = - from._impl_._oneof_case_[0]) { + 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) { @@ -1457,12 +1150,11 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void HttpRule::CopyFrom(const HttpRule& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule) +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule) if (&from == this) return; Clear(); MergeFrom(from); @@ -1488,9 +1180,17 @@ ::google::protobuf::Metadata HttpRule::GetMetadata() const { } // =================================================================== +class CustomHttpPattern::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_); +}; + CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CustomHttpPattern_get_class_data()) { + : ::google::protobuf::Message(arena, CustomHttpPattern_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1498,9 +1198,9 @@ CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABL // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::google::api::CustomHttpPattern& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::google::api::CustomHttpPattern& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, kind_(arena, from.kind_), @@ -1510,8 +1210,7 @@ CustomHttpPattern::CustomHttpPattern( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CustomHttpPattern& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CustomHttpPattern_get_class_data()) { - + : ::google::protobuf::Message(arena, CustomHttpPattern_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1524,8 +1223,8 @@ CustomHttpPattern::CustomHttpPattern( // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, kind_(arena), path_(arena) {} @@ -1539,9 +1238,6 @@ CustomHttpPattern::~CustomHttpPattern() { } inline void CustomHttpPattern::SharedDtor(MessageLite& self) { CustomHttpPattern& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.kind_.Destroy(); @@ -1549,10 +1245,41 @@ inline void CustomHttpPattern::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL CustomHttpPattern::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CustomHttpPattern(arena); +} +constexpr auto CustomHttpPattern::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CustomHttpPattern), + alignof(CustomHttpPattern)); +} +constexpr auto CustomHttpPattern::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_CustomHttpPattern_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &CustomHttpPattern::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CustomHttpPattern::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CustomHttpPattern::ByteSizeLong, + &CustomHttpPattern::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._cached_size_), + false, + }, + &CustomHttpPattern::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_ = - CustomHttpPattern::InternalGenerateClassData_(CustomHttpPattern_globals_._default); + CustomHttpPattern::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL CustomHttpPattern::GetClassData() const { @@ -1560,21 +1287,50 @@ CustomHttpPattern::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(CustomHttpPattern_class_data_.tc_table); return CustomHttpPattern_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -CustomHttpPattern::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&CustomHttpPattern_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&CustomHttpPattern_globals_)); - return CustomHttpPattern_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CustomHttpPattern::ParseTableT_ - CustomHttpPattern::_table_ = - CustomHttpPattern::InternalGenerateParseTable_(CustomHttpPattern_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 45, 2> +CustomHttpPattern::_table_ = { + { + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, + // string kind = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string kind = 1; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string path = 2; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\34\4\4\0\0\0\0\0" + "google.api.CustomHttpPattern" + "kind" + "path" + }}, +}; PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1583,11 +1339,11 @@ PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.kind_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.path_.ClearNonDefaultToEmpty(); } } @@ -1606,16 +1362,12 @@ ::uint8_t* PROTOBUF_NONNULL CustomHttpPattern::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const CustomHttpPattern& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string kind = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_kind().empty()) { const ::std::string& _s = this_._internal_kind(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1625,7 +1377,7 @@ ::uint8_t* PROTOBUF_NONNULL CustomHttpPattern::_InternalSerialize( } // string path = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_path().empty()) { const ::std::string& _s = this_._internal_path(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1659,16 +1411,16 @@ ::size_t CustomHttpPattern::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string kind = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_kind().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_kind()); } } // string path = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_path().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_path()); @@ -1679,21 +1431,17 @@ ::size_t CustomHttpPattern::ByteSizeLong() const { &this_._impl_._cached_size_); } -void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_kind().empty()) { _this->_internal_set_kind(from._internal_kind()); } else { @@ -1702,7 +1450,7 @@ void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_path().empty()) { _this->_internal_set_path(from._internal_path()); } else { @@ -1713,12 +1461,11 @@ void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern) +// @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern) if (&from == this) return; Clear(); MergeFrom(from); diff --git a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc index fca85e8411..6492e88787 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/annotations.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #include "protoc-gen-openapiv2/options/annotations.pb.h" @@ -24,7 +24,6 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -48,14 +47,14 @@ namespace options { } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc -static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto = nullptr; const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* PROTOBUF_NULLABLE schemas = nullptr; -static constexpr ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE - file_message_globals = nullptr; +static constexpr ::_pb::Message* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE + file_default_instances = nullptr; const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { "\n.protoc-gen-openapiv2/options/annotatio" @@ -97,7 +96,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2 2, 0, schemas, - file_message_globals, + file_default_instances, TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto::offsets, file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto, file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto, @@ -109,23 +108,23 @@ namespace options { 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_globals_); + 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_globals_); + 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_globals_); + 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_globals_); + 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_globals_); + openapiv2_field(kOpenapiv2FieldFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_); // @@protoc_insertion_point(namespace_scope) } // namespace options } // namespace protoc_gen_openapiv2 diff --git a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc index ec27698fe2..3fe044b275 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/openapiv2.proto -// Protobuf C++ Version: 7.35.1 +// Protobuf C++ Version: 6.31.1 #include "protoc-gen-openapiv2/options/openapiv2.pb.h" @@ -24,7 +24,6 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" -#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -40,554 +39,73 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; -#ifdef PROTOBUF_MESSAGE_GLOBALS -namespace { -PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData - file_reflection_data[] = { - // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Operation - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Header - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Response - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Info - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Contact - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::License - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Schema - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Tag - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, - // ::grpc::gateway::protoc_gen_openapiv2::options::Scopes - {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, -}; -} // namespace -#endif namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -class SecurityRequirement_SecurityRequirementValue::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_); -}; - -constexpr SecurityRequirement_SecurityRequirementValue::ParseTableT_ SecurityRequirement_SecurityRequirementValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // repeated string scope = 1; - {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_), _Internal::kHasBitsOffset + 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" - }}, - }; -} - inline constexpr SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() - } - {} + : scope_{}, + _cached_size_{0} {} template -constexpr SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement_SecurityRequirementValue(arena); -} -constexpr auto SecurityRequirement_SecurityRequirementValue::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementValue), alignof(SecurityRequirement_SecurityRequirementValue)); -} -constexpr auto SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityRequirement_SecurityRequirementValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement_SecurityRequirementValue::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement_SecurityRequirementValue::ByteSizeLong, - &SecurityRequirement_SecurityRequirementValue::_InternalSerialize, + : ::google::protobuf::Message(SecurityRequirement_SecurityRequirementValue_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[25], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityRequirement_SecurityRequirementValue_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_( - _default, &SecurityRequirement_SecurityRequirementValue_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal() {} +struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement_SecurityRequirementValue _default; + SecurityRequirement_SecurityRequirementValue _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityRequirement_SecurityRequirementValue_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityRequirement_SecurityRequirementValue_globals_.GetClassData(); -#else - return SecurityRequirement_SecurityRequirementValue_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Scopes_ScopeEntry_DoNotUse::ParseTableT_ Scopes_ScopeEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\73\3\5\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry" - "key" - "value" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; template -constexpr Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Scopes_ScopeEntry_DoNotUse::MapEntry( +PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Scopes_ScopeEntry_DoNotUse(arena); -} -constexpr auto Scopes_ScopeEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes_ScopeEntry_DoNotUse), alignof(Scopes_ScopeEntry_DoNotUse)); + : Scopes_ScopeEntry_DoNotUse::MapEntry(Scopes_ScopeEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Scopes_ScopeEntry_DoNotUse::MapEntry() { } -constexpr auto Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Scopes_ScopeEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Scopes_ScopeEntry_DoNotUse::SharedDtor, - static_cast(&Scopes_ScopeEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[28], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Scopes_ScopeEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_( - _default, &Scopes_ScopeEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal() {} +struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Scopes_ScopeEntry_DoNotUse _default; + Scopes_ScopeEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Scopes_ScopeEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Scopes_ScopeEntry_DoNotUse_globals_.GetClassData(); -#else - return Scopes_ScopeEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Response_ExamplesEntry_DoNotUse::ParseTableT_ Response_ExamplesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\100\3\5\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry" - "key" - "value" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; template -constexpr Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Response_ExamplesEntry_DoNotUse::MapEntry( +PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_ExamplesEntry_DoNotUse(arena); -} -constexpr auto Response_ExamplesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExamplesEntry_DoNotUse), alignof(Response_ExamplesEntry_DoNotUse)); + : Response_ExamplesEntry_DoNotUse::MapEntry(Response_ExamplesEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Response_ExamplesEntry_DoNotUse::MapEntry() { } -constexpr auto Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Response_ExamplesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_ExamplesEntry_DoNotUse::SharedDtor, - static_cast(&Response_ExamplesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[8], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Response_ExamplesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Response_ExamplesEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Response_ExamplesEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_( - _default, &Response_ExamplesEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Response_ExamplesEntry_DoNotUseGlobalsTypeInternal() {} +struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Response_ExamplesEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Response_ExamplesEntry_DoNotUse _default; + Response_ExamplesEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Response_ExamplesEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Response_ExamplesEntry_DoNotUse_globals_.GetClassData(); -#else - return Response_ExamplesEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class License::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_); -}; - -constexpr License::ParseTableT_ License::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(License, _impl_.url_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(License, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(License, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(License, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\61\4\3\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.License" - "name" - "url" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; inline constexpr License::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( @@ -598,147 +116,26 @@ inline constexpr License::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr License::License(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL License::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) License(arena); -} -constexpr auto License::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(License), alignof(License)); -} -constexpr auto License::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &License::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR License::License(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &License::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &License::ByteSizeLong, - &License::_InternalSerialize, + : ::google::protobuf::Message(License_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(License, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[14], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct LicenseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr LicenseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - License_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(License::InternalGenerateClassData_( - _default, &License_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~LicenseGlobalsTypeInternal() {} +struct LicenseDefaultTypeInternal { + PROTOBUF_CONSTEXPR LicenseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~LicenseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) License _default; + License _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(LicenseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST LicenseGlobalsTypeInternal License_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* License_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return License_globals_.GetClassData(); -#else - return License_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class JSONSchema_FieldConfiguration::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_); -}; - -constexpr JSONSchema_FieldConfiguration::ParseTableT_ JSONSchema_FieldConfiguration::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_), - 0, // no _extensions_ - 47, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967295, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 0, 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LicenseDefaultTypeInternal _License_default_instance_; inline constexpr JSONSchema_FieldConfiguration::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, path_param_name_( @@ -746,176 +143,26 @@ inline constexpr JSONSchema_FieldConfiguration::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema_FieldConfiguration(arena); -} -constexpr auto JSONSchema_FieldConfiguration::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_FieldConfiguration), alignof(JSONSchema_FieldConfiguration)); -} -constexpr auto JSONSchema_FieldConfiguration::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &JSONSchema_FieldConfiguration::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema_FieldConfiguration::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &JSONSchema_FieldConfiguration::ByteSizeLong, - &JSONSchema_FieldConfiguration::_InternalSerialize, + : ::google::protobuf::Message(JSONSchema_FieldConfiguration_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[17], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct JSONSchema_FieldConfigurationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr JSONSchema_FieldConfigurationGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - JSONSchema_FieldConfiguration_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(JSONSchema_FieldConfiguration::InternalGenerateClassData_( - _default, &JSONSchema_FieldConfiguration_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~JSONSchema_FieldConfigurationGlobalsTypeInternal() {} +struct JSONSchema_FieldConfigurationDefaultTypeInternal { + PROTOBUF_CONSTEXPR JSONSchema_FieldConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JSONSchema_FieldConfigurationDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) JSONSchema_FieldConfiguration _default; + JSONSchema_FieldConfiguration _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfigurationGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* JSONSchema_FieldConfiguration_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return JSONSchema_FieldConfiguration_globals_.GetClassData(); -#else - return JSONSchema_FieldConfiguration_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Header::_Internal { - public: - using HasBits = decltype(::std::declval
()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); -}; - -constexpr Header::ParseTableT_ Header::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), - 0, // no _extensions_ - 13, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294963160, // skipmap - offsetof(ParseTableT_, field_entries), - 5, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.description_)}}, - // string type = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.type_)}}, - // string format = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.format_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string pattern = 13; - {::_pbi::TcParser::FastUS1, - {106, 4, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_)}}, - // string default = 6; - {::_pbi::TcParser::FastUS1, - {50, 3, 0, - PROTOBUF_FIELD_OFFSET(Header, _impl_.default__)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string format = 3; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.format_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string default = 6; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pattern = 13; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; inline constexpr Header::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -935,152 +182,26 @@ inline constexpr Header::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr Header::Header(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Header::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Header(arena); -} -constexpr auto Header::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), alignof(Header)); -} -constexpr auto Header::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Header::MergeImpl, - ::google::protobuf::Message::GetNewImpl
(), +PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Header::SharedDtor, - ::google::protobuf::Message::GetClearImpl
(), &Header::ByteSizeLong, - &Header::_InternalSerialize, + : ::google::protobuf::Message(Header_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[6], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct HeaderGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr HeaderGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Header_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Header::InternalGenerateClassData_( - _default, &Header_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable
( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~HeaderGlobalsTypeInternal() {} +struct HeaderDefaultTypeInternal { + PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~HeaderDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Header _default; + Header _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable
( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(HeaderGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HeaderGlobalsTypeInternal Header_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Header_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Header_globals_.GetClassData(); -#else - return Header_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class ExternalDocumentation::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_); -}; - -constexpr ExternalDocumentation::ParseTableT_ ExternalDocumentation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_)}}, - // string description = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\77\13\3\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" - "description" - "url" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; inline constexpr ExternalDocumentation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -1091,160 +212,26 @@ inline constexpr ExternalDocumentation::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr ExternalDocumentation::ExternalDocumentation(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR ExternalDocumentation::ExternalDocumentation(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data + : ::google::protobuf::Message(ExternalDocumentation_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { + _impl_(::_pbi::ConstantInitialized()) { } -inline void* PROTOBUF_NONNULL ExternalDocumentation::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ExternalDocumentation(arena); -} -constexpr auto ExternalDocumentation::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ExternalDocumentation), alignof(ExternalDocumentation)); -} -constexpr auto ExternalDocumentation::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &ExternalDocumentation::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ExternalDocumentation::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ExternalDocumentation::ByteSizeLong, - &ExternalDocumentation::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[15], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct ExternalDocumentationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr ExternalDocumentationGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - ExternalDocumentation_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(ExternalDocumentation::InternalGenerateClassData_( - _default, &ExternalDocumentation_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~ExternalDocumentationGlobalsTypeInternal() {} +struct ExternalDocumentationDefaultTypeInternal { + PROTOBUF_CONSTEXPR ExternalDocumentationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ExternalDocumentationDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) ExternalDocumentation _default; + ExternalDocumentation _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(ExternalDocumentationGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* ExternalDocumentation_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return ExternalDocumentation_globals_.GetClassData(); -#else - return ExternalDocumentation_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Contact::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_); -}; - -constexpr Contact::ParseTableT_ Contact::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_), - 0, // no _extensions_ - 3, 24, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967288, // skipmap - offsetof(ParseTableT_, field_entries), - 3, // num_field_entries - 0, // num_aux_entries - offsetof(ParseTableT_, field_names), // no aux_entries - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_)}}, - // string url = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_)}}, - // string email = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, - PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 3; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; inline constexpr Contact::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( @@ -1258,157 +245,26 @@ inline constexpr Contact::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -constexpr Contact::Contact(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR Contact::Contact(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Contact::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Contact(arena); -} -constexpr auto Contact::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Contact), alignof(Contact)); -} -constexpr auto Contact::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Contact::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Contact::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Contact::ByteSizeLong, - &Contact::_InternalSerialize, + : ::google::protobuf::Message(Contact_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Contact, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[13], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct ContactGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr ContactGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Contact_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Contact::InternalGenerateClassData_( - _default, &Contact_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~ContactGlobalsTypeInternal() {} +struct ContactDefaultTypeInternal { + PROTOBUF_CONSTEXPR ContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ContactDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Contact _default; + Contact _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(ContactGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContactGlobalsTypeInternal Contact_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Contact_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Contact_globals_.GetClassData(); -#else - return Contact_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Tag::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_); -}; - -constexpr Tag::ParseTableT_ Tag::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_), - 0, // no _extensions_ - 3, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967289, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - {::_pbi::TcParser::FastMtS1, - {26, 1, 0, - PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 2; - {PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - {PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, - #endif - }}, - {{ - "\55\13\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Tag" - "description" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactDefaultTypeInternal _Contact_default_instance_; inline constexpr Tag::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -1417,1492 +273,198 @@ inline constexpr Tag::Impl_::Impl_( external_docs_{nullptr} {} template -constexpr Tag::Tag(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Tag::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Tag(arena); -} -constexpr auto Tag::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Tag), alignof(Tag)); -} -constexpr auto Tag::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Tag::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR Tag::Tag(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Tag::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Tag::ByteSizeLong, - &Tag::_InternalSerialize, + : ::google::protobuf::Message(Tag_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Tag, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[20], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct TagGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr TagGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Tag_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Tag::InternalGenerateClassData_( - _default, &Tag_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~TagGlobalsTypeInternal() {} +struct TagDefaultTypeInternal { + PROTOBUF_CONSTEXPR TagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~TagDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Tag _default; + Tag _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(TagGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TagGlobalsTypeInternal Tag_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Tag_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Tag_globals_.GetClassData(); -#else - return Tag_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TagDefaultTypeInternal _Tag_default_instance_; +template +PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Swagger_ExtensionsEntry_DoNotUse::MapEntry(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Swagger_ExtensionsEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -constexpr Swagger_ExtensionsEntry_DoNotUse::ParseTableT_ Swagger_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\101\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry" - "key" - }}, +struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + Swagger_ExtensionsEntry_DoNotUse _instance; }; -} +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; template -constexpr Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Swagger_ExtensionsEntry_DoNotUse::MapEntry( +PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ExtensionsEntry_DoNotUse), alignof(Swagger_ExtensionsEntry_DoNotUse)); + : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry() { } -constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Swagger_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Swagger_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[1], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &Swagger_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} +struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Swagger_ExtensionsEntry_DoNotUse _default; + SecurityScheme_ExtensionsEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Swagger_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Swagger_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return Swagger_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -constexpr SecurityScheme_ExtensionsEntry_DoNotUse::ParseTableT_ SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\110\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry" - "key" - }}, +struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() {} + union { + SecurityRequirement_SecurityRequirementEntry_DoNotUse _instance; }; -} +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; + +inline constexpr Scopes::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : scope_{}, + _cached_size_{0} {} template -constexpr SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityScheme_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme_ExtensionsEntry_DoNotUse), alignof(SecurityScheme_ExtensionsEntry_DoNotUse)); -} -constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityScheme_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR Scopes::Scopes(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityScheme_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&SecurityScheme_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , + : ::google::protobuf::Message(Scopes_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[23], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &SecurityScheme_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} +struct ScopesDefaultTypeInternal { + PROTOBUF_CONSTEXPR ScopesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ScopesDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) SecurityScheme_ExtensionsEntry_DoNotUse _default; + Scopes _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityScheme_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScopesDefaultTypeInternal _Scopes_default_instance_; +template +PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Response_HeadersEntry_DoNotUse::MapEntry(Response_HeadersEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Response_HeadersEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse::ParseTableT_ SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_}, - #endif - }}, - {{ - "\126\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry" - "key" - }}, +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_; template -constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry( +PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement_SecurityRequirementEntry_DoNotUse(arena); -} -constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementEntry_DoNotUse), alignof(SecurityRequirement_SecurityRequirementEntry_DoNotUse)); + : Response_ExtensionsEntry_DoNotUse::MapEntry(Response_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Response_ExtensionsEntry_DoNotUse::MapEntry() { } -constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityRequirement_SecurityRequirementEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement_SecurityRequirementEntry_DoNotUse::SharedDtor, - static_cast(&SecurityRequirement_SecurityRequirementEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[26], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS +struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + Response_ExtensionsEntry_DoNotUse _instance; }; +}; + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Operation_ExtensionsEntry_DoNotUse::MapEntry(Operation_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Operation_ExtensionsEntry_DoNotUse::MapEntry() { } -struct SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_( - _default, &SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal() {} +#endif // PROTOBUF_CUSTOM_VTABLE +struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement_SecurityRequirementEntry_DoNotUse _default; + Operation_ExtensionsEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_.GetClassData(); -#else - return SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -class Scopes::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Scopes, _impl_._has_bits_); +struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + JSONSchema_ExtensionsEntry_DoNotUse _instance; + }; }; -constexpr Scopes::ParseTableT_ Scopes::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Scopes, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 9, 0)}, - }}, - {{ - "\60\5\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Scopes" - "scope" - }}, - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal _JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Info_ExtensionsEntry_DoNotUse::MapEntry(Info_ExtensionsEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Info_ExtensionsEntry_DoNotUse::MapEntry() { } +#endif // PROTOBUF_CUSTOM_VTABLE +struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + union { + Info_ExtensionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; -inline constexpr Scopes::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() - } - {} - -template -constexpr Scopes::Scopes(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Scopes::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Scopes(arena); -} -constexpr auto Scopes::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes), alignof(Scopes)); -} -constexpr auto Scopes::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Scopes::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Scopes::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Scopes::ByteSizeLong, - &Scopes::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Scopes, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[29], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct ScopesGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr ScopesGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Scopes_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Scopes::InternalGenerateClassData_( - _default, &Scopes_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~ScopesGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Scopes _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(ScopesGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ScopesGlobalsTypeInternal Scopes_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Scopes_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Scopes_globals_.GetClassData(); -#else - return Scopes_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Response_HeadersEntry_DoNotUse::ParseTableT_ Response_HeadersEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; - {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_}, - #endif - }}, - {{ - "\77\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry" - "key" - }}, - }; -} - -template -constexpr Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Response_HeadersEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_HeadersEntry_DoNotUse(arena); -} -constexpr auto Response_HeadersEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_HeadersEntry_DoNotUse), alignof(Response_HeadersEntry_DoNotUse)); -} -constexpr auto Response_HeadersEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Response_HeadersEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_HeadersEntry_DoNotUse::SharedDtor, - static_cast(&Response_HeadersEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[7], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Response_HeadersEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Response_HeadersEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Response_HeadersEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Response_HeadersEntry_DoNotUse::InternalGenerateClassData_( - _default, &Response_HeadersEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Response_HeadersEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Response_HeadersEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Response_HeadersEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Response_HeadersEntry_DoNotUse_globals_.GetClassData(); -#else - return Response_HeadersEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Response_ExtensionsEntry_DoNotUse::ParseTableT_ Response_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\102\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry" - "key" - }}, - }; -} - -template -constexpr Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Response_ExtensionsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Response_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExtensionsEntry_DoNotUse), alignof(Response_ExtensionsEntry_DoNotUse)); -} -constexpr auto Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Response_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Response_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[9], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Response_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &Response_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Response_ExtensionsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Response_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Response_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return Response_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Operation_ExtensionsEntry_DoNotUse::ParseTableT_ Operation_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\103\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry" - "key" - }}, - }; -} - -template -constexpr Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Operation_ExtensionsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ExtensionsEntry_DoNotUse), alignof(Operation_ExtensionsEntry_DoNotUse)); -} -constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Operation_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Operation_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[4], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Operation_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &Operation_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Operation_ExtensionsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Operation_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Operation_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return Operation_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr JSONSchema_ExtensionsEntry_DoNotUse::ParseTableT_ JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\104\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry" - "key" - }}, - }; -} - -template -constexpr JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_ExtensionsEntry_DoNotUse), alignof(JSONSchema_ExtensionsEntry_DoNotUse)); -} -constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &JSONSchema_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&JSONSchema_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[18], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &JSONSchema_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) JSONSchema_ExtensionsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* JSONSchema_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return JSONSchema_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Info_ExtensionsEntry_DoNotUse::ParseTableT_ Info_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\76\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry" - "key" - }}, - }; -} - -template -constexpr Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Info_ExtensionsEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Info_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Info_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info_ExtensionsEntry_DoNotUse), alignof(Info_ExtensionsEntry_DoNotUse)); -} -constexpr auto Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Info_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Info_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Info_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[11], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Info_ExtensionsEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( - _default, &Info_ExtensionsEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) Info_ExtensionsEntry_DoNotUse _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Info_ExtensionsEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Info_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -#else - return Info_ExtensionsEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class SecurityScheme::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_); -}; - -constexpr SecurityScheme::ParseTableT_ SecurityScheme::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_), - 0, // no _extensions_ - 9, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294966784, // skipmap - offsetof(ParseTableT_, field_entries), - 9, // num_field_entries - 3, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 4, 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_), 5>(), - {8, 5, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_)}}, - // string description = 2; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_)}}, - // string name = 3; - {::_pbi::TcParser::FastUS1, - {26, 1, 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_), 6>(), - {32, 6, 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_), 7>(), - {40, 7, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_)}}, - // string authorization_url = 6; - {::_pbi::TcParser::FastUS1, - {50, 2, 0, - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_)}}, - // string token_url = 7; - {::_pbi::TcParser::FastUS1, - {58, 3, 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_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // string description = 2; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 3; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // string authorization_url = 6; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string token_url = 7; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map extensions = 9; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\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" - }}, - }; -} - - -inline constexpr SecurityScheme::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr SecurityScheme::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, + extensions_{}, description_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -2918,1999 +480,310 @@ inline constexpr SecurityScheme::Impl_::Impl_( 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)}, - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() - } - {} - -template -constexpr SecurityScheme::SecurityScheme(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL SecurityScheme::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityScheme(arena); -} -constexpr auto SecurityScheme::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme), alignof(SecurityScheme)); -} -constexpr auto SecurityScheme::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityScheme::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityScheme::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityScheme::ByteSizeLong, - &SecurityScheme::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[24], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct SecuritySchemeGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecuritySchemeGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityScheme_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityScheme::InternalGenerateClassData_( - _default, &SecurityScheme_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecuritySchemeGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) SecurityScheme _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecuritySchemeGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityScheme_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityScheme_globals_.GetClassData(); -#else - return SecurityScheme_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class SecurityRequirement::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._has_bits_); -}; - -constexpr SecurityRequirement::ParseTableT_ SecurityRequirement::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_}, - #endif - }}, - {{ - "\75\24\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement" - "security_requirement" - }}, - }; -} - - -inline constexpr SecurityRequirement::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - security_requirement_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() - } - {} - -template -constexpr SecurityRequirement::SecurityRequirement(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL SecurityRequirement::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement(arena); -} -constexpr auto SecurityRequirement::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement), alignof(SecurityRequirement)); -} -constexpr auto SecurityRequirement::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityRequirement::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement::ByteSizeLong, - &SecurityRequirement::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[27], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct SecurityRequirementGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityRequirementGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityRequirement_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityRequirement::InternalGenerateClassData_( - _default, &SecurityRequirement_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityRequirementGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirementGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityRequirement_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityRequirement_globals_.GetClassData(); -#else - return SecurityRequirement_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -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_); -}; - -constexpr JSONSchema::ParseTableT_ JSONSchema::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._has_bits_), - 0, // no _extensions_ - 1001, 248, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4232445963, // skipmap - offsetof(ParseTableT_, field_entries), - 26, // num_field_entries - 3, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 4, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string title = 5; - {::_pbi::TcParser::FastUS1, - {42, 5, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_)}}, - // string description = 6; - {::_pbi::TcParser::FastUS1, - {50, 6, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_)}}, - // string default = 7; - {::_pbi::TcParser::FastUS1, - {58, 7, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__)}}, - // bool read_only = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 21, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_)}}, - // string example = 9; - {::_pbi::TcParser::FastUS1, - {74, 8, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_)}}, - // double multiple_of = 10; - {::_pbi::TcParser::FastF64S1, - {81, 12, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_)}}, - // double maximum = 11; - {::_pbi::TcParser::FastF64S1, - {89, 13, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_)}}, - // bool exclusive_maximum = 12; - {::_pbi::TcParser::SingularVarintNoZag1(), - {96, 22, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_)}}, - // double minimum = 13; - {::_pbi::TcParser::FastF64S1, - {105, 14, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_)}}, - // bool exclusive_minimum = 14; - {::_pbi::TcParser::SingularVarintNoZag1(), - {112, 23, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_)}}, - // uint64 max_length = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(JSONSchema, _impl_.max_length_), 15>(), - {120, 15, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_)}}, - // uint64 min_length = 16; - {::_pbi::TcParser::FastV64S2, - {384, 16, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_)}}, - // string pattern = 17; - {::_pbi::TcParser::FastUS2, - {394, 9, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_)}}, - // repeated string array = 34; - {::_pbi::TcParser::FastUR2, - {658, 1, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - {::_pbi::TcParser::FastV32P2, - {666, 2, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_)}}, - // uint64 max_items = 20; - {::_pbi::TcParser::FastV64S2, - {416, 17, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_)}}, - // uint64 min_items = 21; - {::_pbi::TcParser::FastV64S2, - {424, 18, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_)}}, - // bool unique_items = 22; - {::_pbi::TcParser::FastV8S2, - {432, 24, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 max_properties = 24; - {::_pbi::TcParser::FastV64S2, - {448, 19, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_)}}, - // uint64 min_properties = 25; - {::_pbi::TcParser::FastV64S2, - {456, 20, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_)}}, - // repeated string required = 26; - {::_pbi::TcParser::FastUR2, - {466, 0, 0, - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated string enum = 46; - {::_pbi::TcParser::FastUR2, - {754, 3, 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_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string title = 5; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 6; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string default = 7; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool read_only = 8; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // string example = 9; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double multiple_of = 10; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // double maximum = 11; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // bool exclusive_maximum = 12; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // double minimum = 13; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // bool exclusive_minimum = 14; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint64 max_length = 15; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_length = 16; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // string pattern = 17; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 max_items = 20; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_items = 21; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // bool unique_items = 22; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint64 max_properties = 24; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_properties = 25; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // repeated string required = 26; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string array = 34; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_), _Internal::kHasBitsOffset + 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_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // string format = 36; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.format_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string enum = 46; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // map extensions = 48; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_), _Internal::kHasBitsOffset + 25, 1, (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 + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\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" - }}, - }; -} - - -inline constexpr JSONSchema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - required_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() - } - , - array_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() - } - , - type_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() - } - , - _type_cached_byte_size_{0}, - enum__ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() - } - , - 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}, - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() - } - {} + flow_{static_cast< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow >(0)} {} template -constexpr JSONSchema::JSONSchema(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR SecurityScheme::SecurityScheme(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL JSONSchema::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema(arena); -} -constexpr auto JSONSchema::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema), alignof(JSONSchema)); -} -constexpr auto JSONSchema::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &JSONSchema::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &JSONSchema::ByteSizeLong, - &JSONSchema::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[19], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct JSONSchemaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr JSONSchemaGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - JSONSchema_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(JSONSchema::InternalGenerateClassData_( - _default, &JSONSchema_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~JSONSchemaGlobalsTypeInternal() {} - union { - alignas(::_pbi::kMaxMessageAlignment) JSONSchema _default; - }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif -}; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(JSONSchemaGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchemaGlobalsTypeInternal JSONSchema_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* JSONSchema_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return JSONSchema_globals_.GetClassData(); -#else - return JSONSchema_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Info::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_); -}; - -constexpr Info::ParseTableT_ Info::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_), - 0, // no _extensions_ - 7, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967168, // skipmap - offsetof(ParseTableT_, field_entries), - 7, // num_field_entries - 4, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(Info, _impl_.title_)}}, - // string description = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Info, _impl_.description_)}}, - // string terms_of_service = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, - PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - {::_pbi::TcParser::FastMtS1, - {34, 4, 0, - PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - {::_pbi::TcParser::FastMtS1, - {42, 5, 1, - PROTOBUF_FIELD_OFFSET(Info, _impl_.license_)}}, - // string version = 6; - {::_pbi::TcParser::FastUS1, - {50, 3, 0, - PROTOBUF_FIELD_OFFSET(Info, _impl_.version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string title = 1; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.title_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string terms_of_service = 3; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_), _Internal::kHasBitsOffset + 4, 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 + 5, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string version = 6; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // map extensions = 7; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Contact>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::License>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::License_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\56\5\13\20\0\0\7\12" - "grpc.gateway.protoc_gen_openapiv2.options.Info" - "title" - "description" - "terms_of_service" - "version" - "extensions" - }}, - }; -} - - -inline constexpr Info::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - 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}, - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Info, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() - } - {} - -template -constexpr Info::Info(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Info::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Info(arena); -} -constexpr auto Info::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info), alignof(Info)); -} -constexpr auto Info::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Info::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Info::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Info::ByteSizeLong, - &Info::_InternalSerialize, + : ::google::protobuf::Message(SecurityScheme_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Info, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[12], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct InfoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr InfoGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Info_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Info::InternalGenerateClassData_( - _default, &Info_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~InfoGlobalsTypeInternal() {} +struct SecuritySchemeDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecuritySchemeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecuritySchemeDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Info _default; + SecurityScheme _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(InfoGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST InfoGlobalsTypeInternal Info_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Info_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Info_globals_.GetClassData(); -#else - return Info_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr SecurityDefinitions_SecurityEntry_DoNotUse::ParseTableT_ SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_}, - #endif - }}, - {{ - "\113\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry" - "key" - }}, - }; -} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; + +inline constexpr SecurityRequirement::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : security_requirement_{}, + _cached_size_{0} {} template -constexpr SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityDefinitions_SecurityEntry_DoNotUse(arena); -} -constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions_SecurityEntry_DoNotUse), alignof(SecurityDefinitions_SecurityEntry_DoNotUse)); -} -constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityDefinitions_SecurityEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR SecurityRequirement::SecurityRequirement(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityDefinitions_SecurityEntry_DoNotUse::SharedDtor, - static_cast(&SecurityDefinitions_SecurityEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , + : ::google::protobuf::Message(SecurityRequirement_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[21], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_( - _default, &SecurityDefinitions_SecurityEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal() {} +struct SecurityRequirementDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityRequirementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityRequirementDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) SecurityDefinitions_SecurityEntry_DoNotUse _default; + SecurityRequirement _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityDefinitions_SecurityEntry_DoNotUse_globals_.GetClassData(); -#else - return SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Schema::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_); -}; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; -constexpr Schema::ParseTableT_ Schema::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_), - 0, // no _extensions_ - 6, 56, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967240, // skipmap - offsetof(ParseTableT_, field_entries), - 5, // num_field_entries - 2, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 2, 0, - PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)}}, - // string discriminator = 2; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, - PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_)}}, - // bool read_only = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 4, 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, 3, 1, - PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_)}}, - // string example = 6; - {::_pbi::TcParser::FastUS1, - {50, 1, 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 + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string discriminator = 2; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool read_only = 3; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string example = 6; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, - #endif - }}, - {{ - "\60\0\15\0\0\7\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Schema" - "discriminator" - "example" - }}, - }; -} - - -inline constexpr Schema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr JSONSchema::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - discriminator_( + 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()), - json_schema_{nullptr}, - external_docs_{nullptr}, - read_only_{false} {} + 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} {} template -constexpr Schema::Schema(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Schema::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Schema(arena); -} -constexpr auto Schema::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Schema), alignof(Schema)); -} -constexpr auto Schema::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Schema::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR JSONSchema::JSONSchema(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Schema::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Schema::ByteSizeLong, - &Schema::_InternalSerialize, + : ::google::protobuf::Message(JSONSchema_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Schema, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[16], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SchemaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SchemaGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Schema_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Schema::InternalGenerateClassData_( - _default, &Schema_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SchemaGlobalsTypeInternal() {} +struct JSONSchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR JSONSchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~JSONSchemaDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Schema _default; + JSONSchema _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SchemaGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SchemaGlobalsTypeInternal Schema_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Schema_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Schema_globals_.GetClassData(); -#else - return Schema_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class SecurityDefinitions::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._has_bits_); -}; - -constexpr SecurityDefinitions::ParseTableT_ SecurityDefinitions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._has_bits_), - 0, // no _extensions_ - 1, 0, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967294, // skipmap - offsetof(ParseTableT_, field_entries), - 1, // num_field_entries - 2, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_}, - #endif - }}, - {{ - "\75\10\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" - "security" - }}, - }; -} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchemaDefaultTypeInternal _JSONSchema_default_instance_; - -inline constexpr SecurityDefinitions::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, +inline constexpr Info::Impl_::Impl_( ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() - } - {} + 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 -constexpr SecurityDefinitions::SecurityDefinitions(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL SecurityDefinitions::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityDefinitions(arena); -} -constexpr auto SecurityDefinitions::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions), alignof(SecurityDefinitions)); -} -constexpr auto SecurityDefinitions::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &SecurityDefinitions::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR Info::Info(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityDefinitions::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityDefinitions::ByteSizeLong, - &SecurityDefinitions::_InternalSerialize, + : ::google::protobuf::Message(Info_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[22], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SecurityDefinitionsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SecurityDefinitionsGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - SecurityDefinitions_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(SecurityDefinitions::InternalGenerateClassData_( - _default, &SecurityDefinitions_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SecurityDefinitionsGlobalsTypeInternal() {} +struct InfoDefaultTypeInternal { + PROTOBUF_CONSTEXPR InfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~InfoDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) SecurityDefinitions _default; + Info _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SecurityDefinitionsGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* SecurityDefinitions_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return SecurityDefinitions_globals_.GetClassData(); -#else - return SecurityDefinitions_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Response::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); -}; - -constexpr Response::ParseTableT_ Response::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_), - 0, // no _extensions_ - 5, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967264, // skipmap - offsetof(ParseTableT_, field_entries), - 5, // num_field_entries - 6, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 1, 0, - PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_)}}, - // string description = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Response, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map headers = 3; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map examples = 4; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map extensions = 5; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Schema>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 9, 0)}, - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\62\13\0\7\10\12\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response" - "description" - "headers" - "examples" - "extensions" - }}, - }; -} - - -inline constexpr Response::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - ::_pbi::ConstantInitialized) noexcept - : _cached_size_{0}, - description_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - schema_{nullptr}, - headers_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() - } - , - examples_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() - } - {} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InfoDefaultTypeInternal _Info_default_instance_; template -constexpr Response::Response(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( +PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Response::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response(arena); -} -constexpr auto Response::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response), alignof(Response)); + : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry() { } -constexpr auto Response::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Response::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, - &Response::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[10], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; -} -struct ResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr ResponseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Response_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Response::InternalGenerateClassData_( - _default, &Response_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~ResponseGlobalsTypeInternal() {} +struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Response _default; + SecurityDefinitions_SecurityEntry_DoNotUse _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(ResponseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ResponseGlobalsTypeInternal Response_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Response_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Response_globals_.GetClassData(); -#else - return Response_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Swagger_ResponsesEntry_DoNotUse::ParseTableT_ Swagger_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, - #endif - }}, - {{ - "\100\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry" - "key" - }}, - }; -} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal _SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; -template -constexpr Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Swagger_ResponsesEntry_DoNotUse::MapEntry( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger_ResponsesEntry_DoNotUse(arena); -} -constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ResponsesEntry_DoNotUse), alignof(Swagger_ResponsesEntry_DoNotUse)); -} -constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Swagger_ResponsesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +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 Schema::Schema(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger_ResponsesEntry_DoNotUse::SharedDtor, - static_cast(&Swagger_ResponsesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , + : ::google::protobuf::Message(Schema_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[0], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Swagger_ResponsesEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_( - _default, &Swagger_ResponsesEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal() {} +struct SchemaDefaultTypeInternal { + PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SchemaDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Swagger_ResponsesEntry_DoNotUse _default; + Schema _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Swagger_ResponsesEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Swagger_ResponsesEntry_DoNotUse_globals_.GetClassData(); -#else - return Swagger_ResponsesEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -constexpr Operation_ResponsesEntry_DoNotUse::ParseTableT_ Operation_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._has_bits_), - 0, // no _extensions_ - 2, 8, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294967292, // skipmap - offsetof(ParseTableT_, field_entries), - 2, // num_field_entries - 1, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, - #endif - }}, - {{ - "\102\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry" - "key" - }}, - }; -} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; + +inline constexpr SecurityDefinitions::Impl_::Impl_( + ::_pbi::ConstantInitialized) noexcept + : security_{}, + _cached_size_{0} {} template -constexpr Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : Operation_ResponsesEntry_DoNotUse::MapEntry( +PROTOBUF_CONSTEXPR SecurityDefinitions::SecurityDefinitions(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - class_data + : ::google::protobuf::Message(SecurityDefinitions_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - ) { -} -inline void* PROTOBUF_NONNULL Operation_ResponsesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation_ResponsesEntry_DoNotUse(arena); -} -constexpr auto Operation_ResponsesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ResponsesEntry_DoNotUse), alignof(Operation_ResponsesEntry_DoNotUse)); + _impl_(::_pbi::ConstantInitialized()) { } -constexpr auto Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Operation_ResponsesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +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 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 Response::Response(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation_ResponsesEntry_DoNotUse::SharedDtor, - static_cast(&Operation_ResponsesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , + : ::google::protobuf::Message(Response_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[3], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Operation_ResponsesEntry_DoNotUse_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_( - _default, &Operation_ResponsesEntry_DoNotUse_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal() {} +struct ResponseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~ResponseDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Operation_ResponsesEntry_DoNotUse _default; + Response _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Operation_ResponsesEntry_DoNotUse_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Operation_ResponsesEntry_DoNotUse_globals_.GetClassData(); -#else - return Operation_ResponsesEntry_DoNotUse_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; +template +PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Swagger_ResponsesEntry_DoNotUse::MapEntry(Swagger_ResponsesEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Swagger_ResponsesEntry_DoNotUse::MapEntry() { } -} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -class Swagger::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_); +struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() {} + union { + Swagger_ResponsesEntry_DoNotUse _instance; + }; }; -constexpr Swagger::ParseTableT_ Swagger::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_), - 0, // no _extensions_ - 15, 120, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294939008, // skipmap - offsetof(ParseTableT_, field_entries), - 12, // num_field_entries - 8, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 4, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - {::_pbi::TcParser::FastMtS1, - {18, 7, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)}}, - // string host = 3; - {::_pbi::TcParser::FastUS1, - {26, 5, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_)}}, - // string base_path = 4; - {::_pbi::TcParser::FastUS1, - {34, 6, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - {::_pbi::TcParser::FastV32P1, - {42, 0, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_)}}, - // repeated string consumes = 6; - {::_pbi::TcParser::FastUR1, - {50, 1, 0, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_)}}, - // repeated string produces = 7; - {::_pbi::TcParser::FastUR1, - {58, 2, 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, 8, 1, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {::_pbi::TcParser::FastMtR1, - {98, 3, 2, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - {::_pbi::TcParser::FastMtS1, - {114, 9, 3, - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string swagger = 1; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string host = 3; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string base_path = 4; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // repeated string consumes = 6; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string produces = 7; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // map responses = 10; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_), _Internal::kHasBitsOffset + 10, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_), _Internal::kHasBitsOffset + 3, 2, (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 + 9, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // map extensions = 15; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_), _Internal::kHasBitsOffset + 11, 6, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\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" - }}, - }; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; +template +PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) +#if defined(PROTOBUF_CUSTOM_VTABLE) + : Operation_ResponsesEntry_DoNotUse::MapEntry(Operation_ResponsesEntry_DoNotUse_class_data_.base()){} +#else // PROTOBUF_CUSTOM_VTABLE + : Operation_ResponsesEntry_DoNotUse::MapEntry() { } +#endif // PROTOBUF_CUSTOM_VTABLE +struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() {} + union { + Operation_ResponsesEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; inline constexpr Swagger::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() - } - , + schemes_{}, _schemes_cached_byte_size_{0}, - consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() - } - , - produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() - } - , - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() - } - , + consumes_{}, + produces_{}, + responses_{}, + security_{}, + extensions_{}, swagger_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -4922,282 +795,39 @@ inline constexpr Swagger::Impl_::Impl_( ::_pbi::ConstantInitialized()), info_{nullptr}, security_definitions_{nullptr}, - external_docs_{nullptr}, - responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() - } - {} + external_docs_{nullptr} {} template -constexpr Swagger::Swagger(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Swagger::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger(arena); -} -constexpr auto Swagger::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger), alignof(Swagger)); -} -constexpr auto Swagger::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Swagger::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR Swagger::Swagger(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Swagger::ByteSizeLong, - &Swagger::_InternalSerialize, + : ::google::protobuf::Message(Swagger_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[2], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct SwaggerGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr SwaggerGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Swagger_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Swagger::InternalGenerateClassData_( - _default, &Swagger_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~SwaggerGlobalsTypeInternal() {} +struct SwaggerDefaultTypeInternal { + PROTOBUF_CONSTEXPR SwaggerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~SwaggerDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Swagger _default; + Swagger _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(SwaggerGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SwaggerGlobalsTypeInternal Swagger_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Swagger_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Swagger_globals_.GetClassData(); -#else - return Swagger_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE -class Operation::_Internal { - public: - using HasBits = decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); -}; - -constexpr Operation::ParseTableT_ Operation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { - return ParseTableT_{ - { - PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_), - 0, // no _extensions_ - 13, 120, // max_field_number, fast_idx_mask - offsetof(ParseTableT_, field_lookup_table), - 4294959232, // skipmap - offsetof(ParseTableT_, field_entries), - 12, // num_field_entries - 6, // num_aux_entries - offsetof(ParseTableT_, aux_entries), - class_data, - nullptr, // post_loop_handler - ::_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, 0, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_)}}, - // string summary = 2; - {::_pbi::TcParser::FastUS1, - {18, 5, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_)}}, - // string description = 3; - {::_pbi::TcParser::FastUS1, - {26, 6, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - {::_pbi::TcParser::FastMtS1, - {34, 8, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)}}, - // string operation_id = 5; - {::_pbi::TcParser::FastUS1, - {42, 7, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_)}}, - // repeated string consumes = 6; - {::_pbi::TcParser::FastUR1, - {50, 1, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_)}}, - // repeated string produces = 7; - {::_pbi::TcParser::FastUR1, - {58, 2, 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, 3, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_)}}, - // bool deprecated = 11; - {::_pbi::TcParser::SingularVarintNoZag1(), - {88, 9, 0, - PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {::_pbi::TcParser::FastMtR1, - {98, 4, 1, - 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // string summary = 2; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 3; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string operation_id = 5; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // repeated string consumes = 6; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // repeated string produces = 7; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, - // map responses = 9; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_), _Internal::kHasBitsOffset + 10, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, - // bool deprecated = 11; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // map extensions = 13; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_), _Internal::kHasBitsOffset + 11, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, - #endif - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, - #endif - {::_pbi::TcParser::GetMapAuxInfo( - 1, 0, 9, 11, 0)}, - #ifndef PROTOBUF_MESSAGE_GLOBALS - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - #else - {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, - #endif - }}, - {{ - "\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" - }}, - }; -} - + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SwaggerDefaultTypeInternal _Swagger_default_instance_; inline constexpr Operation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - tags_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() - } - , - consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() - } - , - produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() - } - , - schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() - } - , + tags_{}, + consumes_{}, + produces_{}, + responses_{}, + schemes_{}, _schemes_cached_byte_size_{0}, - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() - } - , + security_{}, + extensions_{}, summary_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -5208,117 +838,34 @@ inline constexpr Operation::Impl_::Impl_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), external_docs_{nullptr}, - deprecated_{false}, - responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() - } - {} + deprecated_{false} {} template -constexpr Operation::Operation(::_pbi::ConstantInitialized, - const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) - : ::google::protobuf::Message( -#if defined(PROTOBUF_CUSTOM_VTABLE) - class_data -#endif // PROTOBUF_CUSTOM_VTABLE - ), - _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { -} -inline void* PROTOBUF_NONNULL Operation::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation(arena); -} -constexpr auto Operation::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation), alignof(Operation)); -} -constexpr auto Operation::InternalGenerateClassData_( - const MessageLite& prototype, - const ::google::protobuf::internal::TcParseTableBase* tc_table) { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &prototype, -#ifndef PROTOBUF_MESSAGE_GLOBALS - &_table_.header, -#else - tc_table, -#endif - nullptr, // IsInitialized - &Operation::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), +PROTOBUF_CONSTEXPR Operation::Operation(::_pbi::ConstantInitialized) #if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Operation::ByteSizeLong, - &Operation::_InternalSerialize, + : ::google::protobuf::Message(Operation_class_data_.base()), +#else // PROTOBUF_CUSTOM_VTABLE + : ::google::protobuf::Message(), #endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation, _impl_._cached_size_), - false, - }, -#ifdef PROTOBUF_MESSAGE_GLOBALS - &file_reflection_data[5], -#else // !PROTOBUF_MESSAGE_GLOBALS - &::_pbi::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker -#endif // PROTOBUF_MESSAGE_GLOBALS - }; + _impl_(::_pbi::ConstantInitialized()) { } -struct OperationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { - constexpr OperationGlobalsTypeInternal() - : -#ifndef PROTOBUF_MESSAGE_GLOBALS - _default(::_pbi::ConstantInitialized{}, - Operation_class_data_.base()) -#else // !PROTOBUF_MESSAGE_GLOBALS - MessageGlobalsBase(Operation::InternalGenerateClassData_( - _default, &Operation_globals_._table.header)), - _default(::_pbi::ConstantInitialized{}, GetClassData()), - _table(::_pbi::PrivateAccess::GenerateParseTable( - GetClassData())) -#endif // PROTOBUF_MESSAGE_GLOBALS - { - } - ~OperationGlobalsTypeInternal() {} +struct OperationDefaultTypeInternal { + PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} + ~OperationDefaultTypeInternal() {} union { - alignas(::_pbi::kMaxMessageAlignment) Operation _default; + Operation _instance; }; -#ifdef PROTOBUF_MESSAGE_GLOBALS - decltype(::_pbi::PrivateAccess::GenerateParseTable( - ::std::declval())) _table; -#endif }; -#ifdef PROTOBUF_MESSAGE_GLOBALS -static_assert(PROTOBUF_FIELD_OFFSET(OperationGlobalsTypeInternal, _default) == - ::_pbi::MessageGlobalsBase::OffsetToDefault()); -#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OperationGlobalsTypeInternal Operation_globals_ - PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); -#if defined(PROTOBUF_CUSTOM_VTABLE) -namespace { -const ::_pbi::ClassData* Operation_get_class_data() { -#ifdef PROTOBUF_MESSAGE_GLOBALS - return Operation_globals_.GetClassData(); -#else - return Operation_class_data_.base(); -#endif // PROTOBUF_MESSAGE_GLOBALS -} -} // namespace -#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[5]; -static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto = nullptr; const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -5352,18 +899,18 @@ const ::uint32_t 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_), - 4, - 7, - 5, - 6, 0, + 3, 1, 2, - 10, - 8, - 3, - 9, - 11, + ~0u, + ~0u, + ~0u, + ~0u, + 4, + ~0u, + 5, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -5393,18 +940,18 @@ const ::uint32_t 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, 0, - 5, - 6, - 8, - 7, 1, - 2, - 10, 3, - 9, + 2, + ~0u, + ~0u, + ~0u, + ~0u, 4, - 11, + ~0u, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_._has_bits_), 8, // hasbit index offset @@ -5449,9 +996,9 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_), 0, 1, - 2, - 3, - 4, + ~0u, + ~0u, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -5475,7 +1022,7 @@ const ::uint32_t 4, 5, 3, - 6, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_._has_bits_), 6, // hasbit index offset @@ -5553,32 +1100,32 @@ const ::uint32_t 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_), + 0, + 1, + 2, + 3, + 17, 4, - 5, - 6, - 7, - 21, 8, + 9, + 18, + 10, + 19, + 11, 12, + 5, 13, - 22, 14, - 23, + 20, 15, 16, - 9, - 17, - 18, - 24, - 19, - 20, - 0, - 1, - 2, - 10, - 3, - 11, - 25, + ~0u, + ~0u, + ~0u, + 6, + ~0u, + 7, + ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_._has_bits_), 5, // hasbit index offset @@ -5593,11 +1140,8 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), 0, 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_._has_bits_), - 4, // hasbit index offset + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_), - 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -5625,12 +1169,9 @@ const ::uint32_t 2, 3, 4, - 8, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_), - 4, // hasbit index offset + ~0u, + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_), - 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -5638,11 +1179,8 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), 0, 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_._has_bits_), - 4, // hasbit index offset + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_), - 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -5650,11 +1188,8 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _impl_.value_), 0, 1, - 0x081, // bitmap - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_._has_bits_), - 4, // hasbit index offset + 0x000, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_), - 0, }; static const ::_pbi::MigrationSchema @@ -5682,46 +1217,45 @@ static const ::_pbi::MigrationSchema {256, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Tag)}, {263, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse)}, {270, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions)}, - {275, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, - {282, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, - {303, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, - {308, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, - {315, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, - {320, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, - {327, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, + {272, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, + {279, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, + {300, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, + {302, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, + {309, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, + {311, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, + {318, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, }; -static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const - file_message_globals[] = { - &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Operation_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::License_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Tag_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse_globals_, - &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_, +static const ::_pb::Message* PROTOBUF_NONNULL 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, + &::grpc::gateway::protoc_gen_openapiv2::options::_Swagger_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_ResponsesEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_ExtensionsEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Header_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Response_HeadersEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Response_ExamplesEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Response_ExtensionsEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Response_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Info_ExtensionsEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Info_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Contact_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_License_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Schema_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_FieldConfiguration_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_Tag_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityScheme_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_SecurityRequirementValue_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_._instance, + &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_default_instance_._instance, + &::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[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -5895,7 +1429,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2 1, 30, schemas, - file_message_globals, + file_default_instances, TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets, file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, @@ -5904,127 +1438,251 @@ namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -JSONSchema_JSONSchemaSimpleTypes_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL 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, }; -[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_Type_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL 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, }; -[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_In_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL 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, }; -[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -SecurityScheme_Flow_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL 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, }; -[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL -Scheme_descriptor() { +const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL 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, }; -// =================================================================== +PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { + 327680u, 0u, }; +// =================================================================== + +#if defined(PROTOBUF_CUSTOM_VTABLE) +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() + : SuperType(Swagger_ResponsesEntry_DoNotUse_class_data_.base()) {} +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : SuperType(arena, Swagger_ResponsesEntry_DoNotUse_class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType() {} +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +inline void* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger_ResponsesEntry_DoNotUse(arena); +} +constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ResponsesEntry_DoNotUse), + alignof(Swagger_ResponsesEntry_DoNotUse)); +} +constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Swagger_ResponsesEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Swagger_ResponsesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Swagger_ResponsesEntry_DoNotUse::SharedDtor, + static_cast(&Swagger_ResponsesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Swagger_ResponsesEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} -#if defined(PROTOBUF_CUSTOM_VTABLE) -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType(Swagger_ResponsesEntry_DoNotUse_get_class_data()) {} -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Swagger_ResponsesEntry_DoNotUse_get_class_data()) {} -#else // PROTOBUF_CUSTOM_VTABLE -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType() {} -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} -#endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_ = - Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_(Swagger_ResponsesEntry_DoNotUse_globals_._default); + Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ResponsesEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Swagger_ResponsesEntry_DoNotUse_class_data_.tc_table); return Swagger_ResponsesEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Swagger_ResponsesEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ResponsesEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_ResponsesEntry_DoNotUse_globals_)); - return Swagger_ResponsesEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger_ResponsesEntry_DoNotUse::ParseTableT_ - Swagger_ResponsesEntry_DoNotUse::_table_ = - Swagger_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(Swagger_ResponsesEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 76, 2> +Swagger_ResponsesEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._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), + Swagger_ResponsesEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + }}, + {{ + "\100\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry" + "key" + }}, +}; // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() : SuperType(Swagger_ExtensionsEntry_DoNotUse_get_class_data()) {} +Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() + : SuperType(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) {} Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Swagger_ExtensionsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() : SuperType() {} Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ExtensionsEntry_DoNotUse), + alignof(Swagger_ExtensionsEntry_DoNotUse)); +} +constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Swagger_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Swagger_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Swagger_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Swagger_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Swagger_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_ = - Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Swagger_ExtensionsEntry_DoNotUse_globals_._default); + Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Swagger_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Swagger_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Swagger_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_ExtensionsEntry_DoNotUse_globals_)); - return Swagger_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger_ExtensionsEntry_DoNotUse::ParseTableT_ - Swagger_ExtensionsEntry_DoNotUse::_table_ = - Swagger_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 77, 2> +Swagger_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._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), + Swagger_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\101\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +class Swagger::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_); +}; + void Swagger::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } Swagger::Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Swagger_get_class_data()) { + : ::google::protobuf::Message(arena, Swagger_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6032,64 +1690,27 @@ Swagger::Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Swagger& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Swagger& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - schemes_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() - , from.schemes_ - } - , + schemes_{visibility, arena, from.schemes_}, _schemes_cached_byte_size_{0}, - consumes_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() - , from.consumes_ - } - , - produces_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() - , from.produces_ - } - , - security_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() - , from.security_ - } - , + 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_), - responses_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() - , from.responses_ - } - , - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() - , from.extensions_ - } - {} + base_path_(arena, from.base_path_) {} Swagger::Swagger( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Swagger& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Swagger_get_class_data()) { - + : ::google::protobuf::Message(arena, Swagger_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6099,60 +1720,36 @@ Swagger::Swagger( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.info_ = (CheckHasBit(cached_has_bits, 0x00000080U)) + _impl_.info_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.info_) : nullptr; - _impl_.security_definitions_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + _impl_.security_definitions_ = ((cached_has_bits & 0x00000010u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.security_definitions_) : nullptr; - _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000200U)) + _impl_.external_docs_ = ((cached_has_bits & 0x00000020u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() - } - , + schemes_{visibility, arena}, _schemes_cached_byte_size_{0}, - consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() - } - , - produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() - } - , - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() - } - , + consumes_{visibility, arena}, + produces_{visibility, arena}, + responses_{visibility, arena}, + security_{visibility, arena}, + extensions_{visibility, arena}, swagger_(arena), host_(arena), - base_path_(arena), - responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() - } - {} + base_path_(arena) {} inline void Swagger::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, info_), 0, offsetof(Impl_, external_docs_) - @@ -6165,9 +1762,6 @@ Swagger::~Swagger() { } inline void Swagger::SharedDtor(MessageLite& self) { Swagger& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.swagger_.Destroy(); @@ -6179,10 +1773,81 @@ inline void Swagger::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Swagger::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger(arena); +} +constexpr auto Swagger::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_) + + decltype(Swagger::_impl_.schemes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_) + + decltype(Swagger::_impl_.consumes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_) + + decltype(Swagger::_impl_.produces_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_) + + decltype(Swagger::_impl_.responses_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_) + + decltype(Swagger::_impl_.responses_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_) + + decltype(Swagger::_impl_.security_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_) + + decltype(Swagger::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_) + + decltype(Swagger::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Swagger), alignof(Swagger), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Swagger::PlacementNew_, + sizeof(Swagger), + alignof(Swagger)); + } +} +constexpr auto Swagger::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Swagger_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Swagger::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Swagger::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Swagger::ByteSizeLong, + &Swagger::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Swagger, _impl_._cached_size_), + false, + }, + &Swagger::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_class_data_ = - Swagger::InternalGenerateClassData_(Swagger_globals_._default); + Swagger::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger::GetClassData() const { @@ -6190,21 +1855,128 @@ Swagger::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Swagger_class_data_.tc_table); return Swagger_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Swagger::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_globals_)); - return Swagger_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger::ParseTableT_ - Swagger::_table_ = - Swagger::InternalGenerateParseTable_(Swagger_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 3, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)}}, + // string host = 3; + {::_pbi::TcParser::FastUS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_)}}, + // string base_path = 4; + {::_pbi::TcParser::FastUS1, + {34, 2, 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, 4, 1, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 2, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + {::_pbi::TcParser::FastMtS1, + {114, 5, 3, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string swagger = 1; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string host = 3; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string base_path = 4; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_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, 4, + (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_), _Internal::kHasBitsOffset + 4, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_), -1, 2, + (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 + 5, 3, + (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::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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::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" + }}, +}; PROTOBUF_NOINLINE void Swagger::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6212,49 +1984,35 @@ PROTOBUF_NOINLINE void Swagger::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.schemes_.Clear(); + _impl_.consumes_.Clear(); + _impl_.produces_.Clear(); + _impl_.responses_.Clear(); + _impl_.security_.Clear(); + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.schemes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.consumes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.produces_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.security_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.swagger_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.host_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.base_path_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.info_ != nullptr); _impl_.info_->Clear(); } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(_impl_.security_definitions_ != nullptr); _impl_.security_definitions_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _impl_.responses_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _impl_.extensions_.Clear(); - } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -6271,16 +2029,12 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Swagger& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string swagger = 1; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_swagger().empty()) { const ::std::string& _s = this_._internal_swagger(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6289,15 +2043,16 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.info_, this_._impl_.info_->GetCachedSize(), target, stream); } // string host = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_host().empty()) { const ::std::string& _s = this_._internal_host(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6307,7 +2062,7 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } // string base_path = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_base_path().empty()) { const ::std::string& _s = this_._internal_base_path(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6317,117 +2072,105 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - { - ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 5, this_._internal_schemes(), byte_size, target); - } + { + ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 5, this_._internal_schemes(), byte_size, target); } } // repeated string consumes = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { + 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; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { + 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 (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (!this_._internal_responses().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_responses().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 10, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 11, *this_._impl_.security_definitions_, this_._impl_.security_definitions_->GetCachedSize(), target, stream); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - 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); - } + 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 (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 14, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // map extensions = 15; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 15, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -6456,15 +2199,14 @@ ::size_t Swagger::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + { // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_schemes(), 1, this_._impl_._schemes_cached_byte_size_); } // repeated string consumes = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_consumes().size()); for (int i = 0, n = this_._internal_consumes().size(); i < n; ++i) { @@ -6473,7 +2215,7 @@ ::size_t Swagger::ByteSizeLong() const { } } // repeated string produces = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_produces().size()); for (int i = 0, n = this_._internal_produces().size(); i < n; ++i) { @@ -6481,110 +2223,96 @@ ::size_t Swagger::ByteSizeLong() const { this_._internal_produces().Get(i)); } } + // map responses = 10; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); + for (const auto& entry : this_._internal_responses()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + { total_size += 1UL * this_._internal_security_size(); for (const auto& msg : this_._internal_security()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + // map extensions = 15; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000003fu) != 0) { // string swagger = 1; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_swagger().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_swagger()); } } // string host = 3; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_host().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_host()); } } // string base_path = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_base_path().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_base_path()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.info_); } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.security_definitions_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } - // map responses = 10; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); - for (const auto& entry : this_._internal_responses()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } - // map extensions = 15; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); + _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->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_consumes()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_consumes()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_mutable_produces()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_produces()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_mutable_security()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_security()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_swagger().empty()) { _this->_internal_set_swagger(from._internal_swagger()); } else { @@ -6593,7 +2321,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_host().empty()) { _this->_internal_set_host(from._internal_host()); } else { @@ -6602,7 +2330,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_base_path().empty()) { _this->_internal_set_base_path(from._internal_base_path()); } else { @@ -6611,7 +2339,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.info_ != nullptr); if (_this->_impl_.info_ == nullptr) { _this->_impl_.info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.info_); @@ -6619,9 +2347,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.info_->MergeFrom(*from._impl_.info_); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(from._impl_.security_definitions_ != nullptr); if (_this->_impl_.security_definitions_ == nullptr) { _this->_impl_.security_definitions_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.security_definitions_); @@ -6629,7 +2355,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.security_definitions_->MergeFrom(*from._impl_.security_definitions_); } } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -6637,20 +2363,13 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _this->_impl_.responses_.MergeFrom(from._impl_.responses_); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Swagger::CopyFrom(const Swagger& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) if (&from == this) return; Clear(); MergeFrom(from); @@ -6666,7 +2385,9 @@ void Swagger::InternalSwap(Swagger* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); _impl_.produces_.InternalSwap(&other->_impl_.produces_); + _impl_.responses_.InternalSwap(&other->_impl_.responses_); _impl_.security_.InternalSwap(&other->_impl_.security_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); ::_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); @@ -6676,8 +2397,6 @@ void Swagger::InternalSwap(Swagger* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)>( reinterpret_cast(&_impl_.info_), reinterpret_cast(&other->_impl_.info_)); - _impl_.responses_.InternalSwap(&other->_impl_.responses_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Swagger::GetMetadata() const { @@ -6686,89 +2405,218 @@ ::google::protobuf::Metadata Swagger::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() : SuperType(Operation_ResponsesEntry_DoNotUse_get_class_data()) {} +Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() + : SuperType(Operation_ResponsesEntry_DoNotUse_class_data_.base()) {} Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Operation_ResponsesEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Operation_ResponsesEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() : SuperType() {} Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Operation_ResponsesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation_ResponsesEntry_DoNotUse(arena); +} +constexpr auto Operation_ResponsesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ResponsesEntry_DoNotUse), + alignof(Operation_ResponsesEntry_DoNotUse)); +} +constexpr auto Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Operation_ResponsesEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Operation_ResponsesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Operation_ResponsesEntry_DoNotUse::SharedDtor, + static_cast(&Operation_ResponsesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Operation_ResponsesEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_ = - Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_(Operation_ResponsesEntry_DoNotUse_globals_._default); + Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Operation_ResponsesEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ResponsesEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Operation_ResponsesEntry_DoNotUse_class_data_.tc_table); return Operation_ResponsesEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Operation_ResponsesEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ResponsesEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_ResponsesEntry_DoNotUse_globals_)); - return Operation_ResponsesEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation_ResponsesEntry_DoNotUse::ParseTableT_ - Operation_ResponsesEntry_DoNotUse::_table_ = - Operation_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(Operation_ResponsesEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS -// =================================================================== +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 78, 2> +Operation_ResponsesEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._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), + Operation_ResponsesEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + }}, + {{ + "\102\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry" + "key" + }}, +}; +// =================================================================== + +#if defined(PROTOBUF_CUSTOM_VTABLE) +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() + : SuperType(Operation_ExtensionsEntry_DoNotUse_class_data_.base()) {} +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : SuperType(arena, Operation_ExtensionsEntry_DoNotUse_class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType() {} +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +inline void* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ExtensionsEntry_DoNotUse), + alignof(Operation_ExtensionsEntry_DoNotUse)); +} +constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Operation_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Operation_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Operation_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Operation_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Operation_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} -#if defined(PROTOBUF_CUSTOM_VTABLE) -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType(Operation_ExtensionsEntry_DoNotUse_get_class_data()) {} -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Operation_ExtensionsEntry_DoNotUse_get_class_data()) {} -#else // PROTOBUF_CUSTOM_VTABLE -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType() {} -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} -#endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_ = - Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Operation_ExtensionsEntry_DoNotUse_globals_._default); + Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Operation_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Operation_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Operation_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_ExtensionsEntry_DoNotUse_globals_)); - return Operation_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation_ExtensionsEntry_DoNotUse::ParseTableT_ - Operation_ExtensionsEntry_DoNotUse::_table_ = - Operation_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Operation_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 79, 2> +Operation_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._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), + Operation_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\103\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +class Operation::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); +}; + void Operation::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } Operation::Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Operation_get_class_data()) { + : ::google::protobuf::Message(arena, Operation_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6776,71 +2624,28 @@ Operation::Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Operation& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Operation& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - tags_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() - , from.tags_ - } - , - consumes_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() - , from.consumes_ - } - , - produces_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() - , from.produces_ - } - , - schemes_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() - , from.schemes_ - } - , + 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, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() - , from.security_ - } - , + security_{visibility, arena, from.security_}, + extensions_{visibility, arena, from.extensions_}, summary_(arena, from.summary_), description_(arena, from.description_), - operation_id_(arena, from.operation_id_), - responses_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() - , from.responses_ - } - , - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() - , from.extensions_ - } - {} + operation_id_(arena, from.operation_id_) {} Operation::Operation( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Operation& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Operation_get_class_data()) { - + : ::google::protobuf::Message(arena, Operation_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6850,7 +2655,7 @@ Operation::Operation( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000100U)) + _impl_.external_docs_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; _impl_.deprecated_ = from._impl_.deprecated_; @@ -6858,52 +2663,24 @@ Operation::Operation( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - tags_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() - } - , - consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() - } - , - produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() - } - , - schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() - } - , + tags_{visibility, arena}, + consumes_{visibility, arena}, + produces_{visibility, arena}, + responses_{visibility, arena}, + schemes_{visibility, arena}, _schemes_cached_byte_size_{0}, - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() - } - , + security_{visibility, arena}, + extensions_{visibility, arena}, summary_(arena), description_(arena), - operation_id_(arena), - responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Operation, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() - } - {} + operation_id_(arena) {} inline void Operation::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, external_docs_), 0, offsetof(Impl_, deprecated_) - @@ -6916,9 +2693,6 @@ Operation::~Operation() { } inline void Operation::SharedDtor(MessageLite& self) { Operation& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.summary_.Destroy(); @@ -6928,10 +2702,85 @@ inline void Operation::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Operation::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation(arena); +} +constexpr auto Operation::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_) + + decltype(Operation::_impl_.tags_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_) + + decltype(Operation::_impl_.consumes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_) + + decltype(Operation::_impl_.produces_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_) + + decltype(Operation::_impl_.responses_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_) + + decltype(Operation::_impl_.responses_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_) + + decltype(Operation::_impl_.schemes_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_) + + decltype(Operation::_impl_.security_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_) + + decltype(Operation::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_) + + decltype(Operation::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Operation), alignof(Operation), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Operation::PlacementNew_, + sizeof(Operation), + alignof(Operation)); + } +} +constexpr auto Operation::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Operation_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Operation::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Operation::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Operation::ByteSizeLong, + &Operation::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Operation, _impl_._cached_size_), + false, + }, + &Operation::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_class_data_ = - Operation::InternalGenerateClassData_(Operation_globals_._default); + Operation::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Operation::GetClassData() const { @@ -6939,21 +2788,127 @@ Operation::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Operation_class_data_.tc_table); return Operation_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Operation::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Operation_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_globals_)); - return Operation_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation::ParseTableT_ - Operation::_table_ = - Operation::InternalGenerateParseTable_(Operation_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_)}}, + // string description = 3; + {::_pbi::TcParser::FastUS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {::_pbi::TcParser::FastMtS1, + {34, 3, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)}}, + // string operation_id = 5; + {::_pbi::TcParser::FastUS1, + {42, 2, 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, 4, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 63, 1, 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_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 3; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string operation_id = 5; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_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, 2, + (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_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_), -1, 1, + (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::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::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" + }}, +}; PROTOBUF_NOINLINE void Operation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6961,46 +2916,30 @@ PROTOBUF_NOINLINE void Operation::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.tags_.Clear(); + _impl_.consumes_.Clear(); + _impl_.produces_.Clear(); + _impl_.responses_.Clear(); + _impl_.schemes_.Clear(); + _impl_.security_.Clear(); + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.tags_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.consumes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.produces_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.schemes_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _impl_.security_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.summary_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.operation_id_.ClearNonDefaultToEmpty(); } - } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - ABSL_DCHECK(_impl_.external_docs_ != nullptr); - _impl_.external_docs_->Clear(); - } - if (BatchCheckHasBit(cached_has_bits, 0x00000e00U)) { - _impl_.deprecated_ = false; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _impl_.responses_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _impl_.extensions_.Clear(); + if ((cached_has_bits & 0x00000008u) != 0) { + ABSL_DCHECK(_impl_.external_docs_ != nullptr); + _impl_.external_docs_->Clear(); } } + _impl_.deprecated_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -7016,26 +2955,20 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Operation& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // repeated string tags = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_tags_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_tags_size(); i < n; ++i) { + 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 (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_summary().empty()) { const ::std::string& _s = this_._internal_summary(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7045,7 +2978,7 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } // string description = 3; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7054,15 +2987,16 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // string operation_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_operation_id().empty()) { const ::std::string& _s = this_._internal_operation_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7072,67 +3006,59 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } // repeated string consumes = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { + 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; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { + 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 (CheckHasBit(cached_has_bits, 0x00000400U)) { - if (!this_._internal_responses().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_responses().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - { - ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 10, this_._internal_schemes(), byte_size, target); - } + { + ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 10, this_._internal_schemes(), byte_size, target); } } // bool deprecated = 11; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (this_._internal_deprecated() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -7141,43 +3067,39 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - 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); - } + 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 (CheckHasBit(cached_has_bits, 0x00000800U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 13, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -7206,10 +3128,9 @@ ::size_t Operation::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + { // repeated string tags = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_tags().size()); for (int i = 0, n = this_._internal_tags().size(); i < n; ++i) { @@ -7218,7 +3139,7 @@ ::size_t Operation::ByteSizeLong() const { } } // repeated string consumes = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_consumes().size()); for (int i = 0, n = this_._internal_consumes().size(); i < n; ++i) { @@ -7227,7 +3148,7 @@ ::size_t Operation::ByteSizeLong() const { } } // repeated string produces = 7; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_produces().size()); for (int i = 0, n = this_._internal_produces().size(); i < n; ++i) { @@ -7235,116 +3156,98 @@ ::size_t Operation::ByteSizeLong() const { this_._internal_produces().Get(i)); } } + // map responses = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); + for (const auto& entry : this_._internal_responses()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_schemes(), 1, this_._impl_._schemes_cached_byte_size_); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + { total_size += 1UL * this_._internal_security_size(); for (const auto& msg : this_._internal_security()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } + // map extensions = 13; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x0000001fu) != 0) { // string summary = 2; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_summary().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_summary()); } } // string description = 3; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string operation_id = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_operation_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_operation_id()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } // bool deprecated = 11; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (this_._internal_deprecated() != 0) { total_size += 2; } } - // map responses = 9; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); - for (const auto& entry : this_._internal_responses()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } - // map extensions = 13; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_internal_mutable_tags()->MergeFrom(from._internal_tags()); + _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_schemes()->MergeFrom(from._internal_schemes()); + _this->_internal_mutable_security()->MergeFrom( + from._internal_security()); + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_tags()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_tags()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_consumes()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_consumes()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_mutable_produces()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_produces()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_internal_mutable_security()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_security()); - } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_summary().empty()) { _this->_internal_set_summary(from._internal_summary()); } else { @@ -7353,7 +3256,7 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -7362,7 +3265,7 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_operation_id().empty()) { _this->_internal_set_operation_id(from._internal_operation_id()); } else { @@ -7371,9 +3274,7 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -7381,25 +3282,18 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (from._internal_deprecated() != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { - _this->_impl_.responses_.MergeFrom(from._impl_.responses_); - } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Operation::CopyFrom(const Operation& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) if (&from == this) return; Clear(); MergeFrom(from); @@ -7415,8 +3309,10 @@ void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other _impl_.tags_.InternalSwap(&other->_impl_.tags_); _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); _impl_.produces_.InternalSwap(&other->_impl_.produces_); + _impl_.responses_.InternalSwap(&other->_impl_.responses_); _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); _impl_.security_.InternalSwap(&other->_impl_.security_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); ::_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); @@ -7426,8 +3322,6 @@ void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other - PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)>( reinterpret_cast(&_impl_.external_docs_), reinterpret_cast(&other->_impl_.external_docs_)); - _impl_.responses_.InternalSwap(&other->_impl_.responses_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Operation::GetMetadata() const { @@ -7435,9 +3329,17 @@ ::google::protobuf::Metadata Operation::GetMetadata() const { } // =================================================================== +class Header::_Internal { + public: + using HasBits = + decltype(::std::declval
()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); +}; + Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Header_get_class_data()) { + : ::google::protobuf::Message(arena, Header_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7445,9 +3347,9 @@ Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Header& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Header& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_), @@ -7460,8 +3362,7 @@ Header::Header( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Header_get_class_data()) { - + : ::google::protobuf::Message(arena, Header_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7474,8 +3375,8 @@ Header::Header( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena), type_(arena), @@ -7492,9 +3393,6 @@ Header::~Header() { } inline void Header::SharedDtor(MessageLite& self) { Header& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -7505,10 +3403,41 @@ inline void Header::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Header::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Header(arena); +} +constexpr auto Header::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), + alignof(Header)); +} +constexpr auto Header::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Header_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Header::MergeImpl, + ::google::protobuf::Message::GetNewImpl
(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Header::SharedDtor, + ::google::protobuf::Message::GetClearImpl
(), &Header::ByteSizeLong, + &Header::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), + false, + }, + &Header::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Header_class_data_ = - Header::InternalGenerateClassData_(Header_globals_._default); + Header::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Header::GetClassData() const { @@ -7516,21 +3445,74 @@ Header::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Header_class_data_.tc_table); return Header_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Header::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Header_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Header_globals_)); - return Header_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Header::ParseTableT_ - Header::_table_ = - Header::InternalGenerateParseTable_(Header_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<3, 5, 0, 92, 2> +Header::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Header, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.description_)}}, + // string type = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.type_)}}, + // string format = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.format_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string pattern = 13; + {::_pbi::TcParser::FastUS1, + {106, 4, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_)}}, + // string default = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.default__)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string type = 2; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string format = 3; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.format_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 6; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string pattern = 13; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_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" + }}, +}; PROTOBUF_NOINLINE void Header::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7539,20 +3521,20 @@ PROTOBUF_NOINLINE void Header::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.type_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.format_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.default__.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { _impl_.pattern_.ClearNonDefaultToEmpty(); } } @@ -7571,16 +3553,12 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Header& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7590,7 +3568,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string type = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_type().empty()) { const ::std::string& _s = this_._internal_type(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7600,7 +3578,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string format = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_format().empty()) { const ::std::string& _s = this_._internal_format(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7610,7 +3588,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string default = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { if (!this_._internal_default_().empty()) { const ::std::string& _s = this_._internal_default_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7620,7 +3598,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string pattern = 13; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { if (!this_._internal_pattern().empty()) { const ::std::string& _s = this_._internal_pattern(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7654,37 +3632,37 @@ ::size_t Header::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if ((cached_has_bits & 0x0000001fu) != 0) { // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string type = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_type().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type()); } } // string format = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_format().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_format()); } } // string default = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_default_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_default_()); } } // string pattern = 13; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (!this_._internal_pattern().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_pattern()); @@ -7695,21 +3673,17 @@ ::size_t Header::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -7718,7 +3692,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_type().empty()) { _this->_internal_set_type(from._internal_type()); } else { @@ -7727,7 +3701,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_format().empty()) { _this->_internal_set_format(from._internal_format()); } else { @@ -7736,7 +3710,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!from._internal_default_().empty()) { _this->_internal_set_default_(from._internal_default_()); } else { @@ -7745,7 +3719,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (!from._internal_pattern().empty()) { _this->_internal_set_pattern(from._internal_pattern()); } else { @@ -7756,12 +3730,11 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Header::CopyFrom(const Header& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) if (&from == this) return; Clear(); MergeFrom(from); @@ -7784,130 +3757,319 @@ void Header::InternalSwap(Header* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { ::google::protobuf::Metadata Header::GetMetadata() const { return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full()); } -// =================================================================== +// =================================================================== + +#if defined(PROTOBUF_CUSTOM_VTABLE) +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() + : SuperType(Response_HeadersEntry_DoNotUse_class_data_.base()) {} +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : SuperType(arena, Response_HeadersEntry_DoNotUse_class_data_.base()) {} +#else // PROTOBUF_CUSTOM_VTABLE +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() : SuperType() {} +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +inline void* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_HeadersEntry_DoNotUse(arena); +} +constexpr auto Response_HeadersEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_HeadersEntry_DoNotUse), + alignof(Response_HeadersEntry_DoNotUse)); +} +constexpr auto Response_HeadersEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Response_HeadersEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Response_HeadersEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_HeadersEntry_DoNotUse::SharedDtor, + static_cast(&Response_HeadersEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Response_HeadersEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} -#if defined(PROTOBUF_CUSTOM_VTABLE) -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() : SuperType(Response_HeadersEntry_DoNotUse_get_class_data()) {} -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_HeadersEntry_DoNotUse_get_class_data()) {} -#else // PROTOBUF_CUSTOM_VTABLE -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() : SuperType() {} -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} -#endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_ = - Response_HeadersEntry_DoNotUse::InternalGenerateClassData_(Response_HeadersEntry_DoNotUse_globals_._default); + Response_HeadersEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_HeadersEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_HeadersEntry_DoNotUse_class_data_.tc_table); return Response_HeadersEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Response_HeadersEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Response_HeadersEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_HeadersEntry_DoNotUse_globals_)); - return Response_HeadersEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_HeadersEntry_DoNotUse::ParseTableT_ - Response_HeadersEntry_DoNotUse::_table_ = - Response_HeadersEntry_DoNotUse::InternalGenerateParseTable_(Response_HeadersEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 75, 2> +Response_HeadersEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._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), + Response_HeadersEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; + {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, + }}, + {{ + "\77\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry" + "key" + }}, +}; // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() : SuperType(Response_ExamplesEntry_DoNotUse_get_class_data()) {} +Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() + : SuperType(Response_ExamplesEntry_DoNotUse_class_data_.base()) {} Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_ExamplesEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Response_ExamplesEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() : SuperType() {} Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_ExamplesEntry_DoNotUse(arena); +} +constexpr auto Response_ExamplesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExamplesEntry_DoNotUse), + alignof(Response_ExamplesEntry_DoNotUse)); +} +constexpr auto Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Response_ExamplesEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Response_ExamplesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_ExamplesEntry_DoNotUse::SharedDtor, + static_cast(&Response_ExamplesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Response_ExamplesEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_ = - Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_(Response_ExamplesEntry_DoNotUse_globals_._default); + Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExamplesEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_ExamplesEntry_DoNotUse_class_data_.tc_table); return Response_ExamplesEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Response_ExamplesEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExamplesEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_ExamplesEntry_DoNotUse_globals_)); - return Response_ExamplesEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_ExamplesEntry_DoNotUse::ParseTableT_ - Response_ExamplesEntry_DoNotUse::_table_ = - Response_ExamplesEntry_DoNotUse::InternalGenerateParseTable_(Response_ExamplesEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 81, 2> +Response_ExamplesEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._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 + Response_ExamplesEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\100\3\5\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry" + "key" + "value" + }}, +}; // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() : SuperType(Response_ExtensionsEntry_DoNotUse_get_class_data()) {} +Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() + : SuperType(Response_ExtensionsEntry_DoNotUse_class_data_.base()) {} Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_ExtensionsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Response_ExtensionsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() : SuperType() {} Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Response_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExtensionsEntry_DoNotUse), + alignof(Response_ExtensionsEntry_DoNotUse)); +} +constexpr auto Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Response_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Response_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Response_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Response_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_ = - Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Response_ExtensionsEntry_DoNotUse_globals_._default); + Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Response_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Response_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_ExtensionsEntry_DoNotUse_globals_)); - return Response_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_ExtensionsEntry_DoNotUse::ParseTableT_ - Response_ExtensionsEntry_DoNotUse::_table_ = - Response_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Response_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 78, 2> +Response_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._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), + Response_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\102\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +class Response::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); +}; + void Response::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_get_class_data()) { + : ::google::protobuf::Message(arena, Response_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7915,40 +4077,21 @@ Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Response& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Response& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - description_(arena, from.description_), - headers_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() - , from.headers_ - } - , - examples_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() - , from.examples_ - } - , - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() - , from.extensions_ - } - {} + headers_{visibility, arena, from.headers_}, + examples_{visibility, arena, from.examples_}, + extensions_{visibility, arena, from.extensions_}, + description_(arena, from.description_) {} Response::Response( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_get_class_data()) { - + : ::google::protobuf::Message(arena, Response_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7958,32 +4101,20 @@ Response::Response( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.schema_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + _impl_.schema_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.schema_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - description_(arena), - headers_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() - } - , - examples_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() - } - , - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Response, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() - } - {} + headers_{visibility, arena}, + examples_{visibility, arena}, + extensions_{visibility, arena}, + description_(arena) {} inline void Response::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -7995,9 +4126,6 @@ Response::~Response() { } inline void Response::SharedDtor(MessageLite& self) { Response& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -8005,10 +4133,73 @@ inline void Response::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Response::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response(arena); +} +constexpr auto Response::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_) + + decltype(Response::_impl_.headers_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_) + + decltype(Response::_impl_.headers_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_) + + decltype(Response::_impl_.examples_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_) + + decltype(Response::_impl_.examples_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_) + + decltype(Response::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_) + + decltype(Response::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Response), alignof(Response), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Response::PlacementNew_, + sizeof(Response), + alignof(Response)); + } +} +constexpr auto Response::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Response_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Response::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, + &Response::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), + false, + }, + &Response::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_class_data_ = - Response::InternalGenerateClassData_(Response_globals_._default); + Response::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response::GetClassData() const { @@ -8016,21 +4207,74 @@ Response::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Response_class_data_.tc_table); return Response_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Response::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Response_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_globals_)); - return Response_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response::ParseTableT_ - Response::_table_ = - Response::InternalGenerateParseTable_(Response_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_), _Internal::kHasBitsOffset + 1, 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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 9, + 0)}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\62\13\0\7\10\12\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response" + "description" + "headers" + "examples" + "extensions" + }}, +}; PROTOBUF_NOINLINE void Response::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8038,24 +4282,18 @@ PROTOBUF_NOINLINE void Response::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.headers_.Clear(); + _impl_.examples_.Clear(); + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.schema_ != nullptr); _impl_.schema_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.headers_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.examples_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _impl_.extensions_.Clear(); - } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -8072,16 +4310,12 @@ ::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Response& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8090,102 +4324,97 @@ ::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.schema_, this_._impl_.schema_->GetCachedSize(), target, stream); } // map headers = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - if (!this_._internal_headers().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_headers().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 (CheckHasBit(cached_has_bits, 0x00000008U)) { - if (!this_._internal_examples().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::std::string>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>; - const auto& field = this_._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()), + if (!this_._internal_examples().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::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 (CheckHasBit(cached_has_bits, 0x00000010U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -8214,71 +4443,72 @@ ::size_t Response::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_description()); - } - } - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.schema_); - } + { // map headers = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers_size()); for (const auto& entry : this_._internal_headers()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } // map examples = 4; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_examples_size()); for (const auto& entry : this_._internal_examples()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } // map extensions = 5; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x00000003u) != 0) { + // string description = 1; + if ((cached_has_bits & 0x00000001u) != 0) { + if (!this_._internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_description()); + } + } + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + if ((cached_has_bits & 0x00000002u) != 0) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.schema_); + } + } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + _this->_impl_.examples_.MergeFrom(from._impl_.examples_); + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -8287,7 +4517,7 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.schema_ != nullptr); if (_this->_impl_.schema_ == nullptr) { _this->_impl_.schema_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.schema_); @@ -8295,23 +4525,13 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.schema_->MergeFrom(*from._impl_.schema_); } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_impl_.headers_.MergeFrom(from._impl_.headers_); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_impl_.examples_.MergeFrom(from._impl_.examples_); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Response::CopyFrom(const Response& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Response) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Response) if (&from == this) return; Clear(); MergeFrom(from); @@ -8324,11 +4544,11 @@ void Response::InternalSwap(Response* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) 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_, &other->_impl_.description_, arena); - swap(_impl_.schema_, other->_impl_.schema_); _impl_.headers_.InternalSwap(&other->_impl_.headers_); _impl_.examples_.InternalSwap(&other->_impl_.examples_); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); + ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); + swap(_impl_.schema_, other->_impl_.schema_); } ::google::protobuf::Metadata Response::GetMetadata() const { @@ -8337,51 +4557,119 @@ ::google::protobuf::Metadata Response::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() : SuperType(Info_ExtensionsEntry_DoNotUse_get_class_data()) {} +Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() + : SuperType(Info_ExtensionsEntry_DoNotUse_class_data_.base()) {} Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Info_ExtensionsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Info_ExtensionsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() : SuperType() {} Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Info_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Info_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info_ExtensionsEntry_DoNotUse), + alignof(Info_ExtensionsEntry_DoNotUse)); +} +constexpr auto Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Info_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Info_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Info_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Info_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Info_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_ = - Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Info_ExtensionsEntry_DoNotUse_globals_._default); + Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Info_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Info_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Info_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Info_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Info_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Info_ExtensionsEntry_DoNotUse_globals_)); - return Info_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Info_ExtensionsEntry_DoNotUse::ParseTableT_ - Info_ExtensionsEntry_DoNotUse::_table_ = - Info_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Info_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 74, 2> +Info_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._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), + Info_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\76\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +class Info::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_); +}; + void Info::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } Info::Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Info_get_class_data()) { + : ::google::protobuf::Message(arena, Info_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8389,29 +4677,22 @@ Info::Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Info& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Info& from_msg) : _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_), - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Info, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() - , from.extensions_ - } - {} + version_(arena, from.version_) {} Info::Info( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Info& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Info_get_class_data()) { - + : ::google::protobuf::Message(arena, Info_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8421,32 +4702,28 @@ Info::Info( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.contact_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + _impl_.contact_ = ((cached_has_bits & 0x00000010u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.contact_) : nullptr; - _impl_.license_ = (CheckHasBit(cached_has_bits, 0x00000020U)) + _impl_.license_ = ((cached_has_bits & 0x00000020u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.license_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, + extensions_{visibility, arena}, title_(arena), description_(arena), terms_of_service_(arena), - version_(arena), - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Info, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() - } - {} + version_(arena) {} inline void Info::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, contact_), 0, offsetof(Impl_, license_) - @@ -8459,9 +4736,6 @@ Info::~Info() { } inline void Info::SharedDtor(MessageLite& self) { Info& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.title_.Destroy(); @@ -8473,10 +4747,57 @@ inline void Info::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Info::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Info(arena); +} +constexpr auto Info::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_) + + decltype(Info::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_) + + decltype(Info::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Info), alignof(Info), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Info::PlacementNew_, + sizeof(Info), + alignof(Info)); + } +} +constexpr auto Info::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Info_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Info::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Info::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Info::ByteSizeLong, + &Info::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Info, _impl_._cached_size_), + false, + }, + &Info::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Info_class_data_ = - Info::InternalGenerateClassData_(Info_globals_._default); + Info::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Info::GetClassData() const { @@ -8484,21 +4805,89 @@ Info::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Info_class_data_.tc_table); return Info_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Info::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Info_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Info_globals_)); - return Info_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Info::ParseTableT_ - Info::_table_ = - Info::InternalGenerateParseTable_(Info_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.title_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.description_)}}, + // string terms_of_service = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {::_pbi::TcParser::FastMtS1, + {34, 4, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + {::_pbi::TcParser::FastMtS1, + {42, 5, 1, PROTOBUF_FIELD_OFFSET(Info, _impl_.license_)}}, + // string version = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string title = 1; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.title_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string terms_of_service = 3; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_), _Internal::kHasBitsOffset + 4, 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 + 5, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string version = 6; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::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" + }}, +}; PROTOBUF_NOINLINE void Info::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8506,31 +4895,29 @@ PROTOBUF_NOINLINE void Info::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.title_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.terms_of_service_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.version_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(_impl_.contact_ != nullptr); _impl_.contact_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(_impl_.license_ != nullptr); _impl_.license_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _impl_.extensions_.Clear(); - } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -8547,16 +4934,12 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Info& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string title = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_title().empty()) { const ::std::string& _s = this_._internal_title(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8566,7 +4949,7 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8576,7 +4959,7 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // string terms_of_service = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_terms_of_service().empty()) { const ::std::string& _s = this_._internal_terms_of_service(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8585,22 +4968,23 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.contact_, this_._impl_.contact_->GetCachedSize(), target, stream); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5, *this_._impl_.license_, this_._impl_.license_->GetCachedSize(), target, stream); } // string version = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_version().empty()) { const ::std::string& _s = this_._internal_version(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8610,30 +4994,28 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // map extensions = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 7, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -8662,77 +5044,76 @@ ::size_t Info::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map extensions = 7; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if ((cached_has_bits & 0x0000003fu) != 0) { // string title = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_title().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_title()); } } // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string terms_of_service = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_terms_of_service().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_terms_of_service()); } } // string version = 6; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_version().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_version()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.contact_); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.license_); } - // map extensions = 7; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000003fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_title().empty()) { _this->_internal_set_title(from._internal_title()); } else { @@ -8741,7 +5122,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -8750,7 +5131,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_terms_of_service().empty()) { _this->_internal_set_terms_of_service(from._internal_terms_of_service()); } else { @@ -8759,7 +5140,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!from._internal_version().empty()) { _this->_internal_set_version(from._internal_version()); } else { @@ -8768,7 +5149,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(from._impl_.contact_ != nullptr); if (_this->_impl_.contact_ == nullptr) { _this->_impl_.contact_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.contact_); @@ -8776,7 +5157,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.contact_->MergeFrom(*from._impl_.contact_); } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { ABSL_DCHECK(from._impl_.license_ != nullptr); if (_this->_impl_.license_ == nullptr) { _this->_impl_.license_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.license_); @@ -8784,17 +5165,13 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.license_->MergeFrom(*from._impl_.license_); } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Info::CopyFrom(const Info& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Info) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Info) if (&from == this) return; Clear(); MergeFrom(from); @@ -8807,6 +5184,7 @@ void Info::InternalSwap(Info* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 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_, &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); @@ -8817,7 +5195,6 @@ void Info::InternalSwap(Info* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)>( reinterpret_cast(&_impl_.contact_), reinterpret_cast(&other->_impl_.contact_)); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Info::GetMetadata() const { @@ -8825,9 +5202,17 @@ ::google::protobuf::Metadata Info::GetMetadata() const { } // =================================================================== +class Contact::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_); +}; + Contact::Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Contact_get_class_data()) { + : ::google::protobuf::Message(arena, Contact_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8835,9 +5220,9 @@ Contact::Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), @@ -8848,8 +5233,7 @@ Contact::Contact( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Contact& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Contact_get_class_data()) { - + : ::google::protobuf::Message(arena, Contact_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8862,8 +5246,8 @@ Contact::Contact( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), url_(arena), @@ -8878,9 +5262,6 @@ Contact::~Contact() { } inline void Contact::SharedDtor(MessageLite& self) { Contact& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -8889,10 +5270,41 @@ inline void Contact::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Contact::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Contact(arena); +} +constexpr auto Contact::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Contact), + alignof(Contact)); +} +constexpr auto Contact::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Contact_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Contact::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Contact::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Contact::ByteSizeLong, + &Contact::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Contact, _impl_._cached_size_), + false, + }, + &Contact::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Contact_class_data_ = - Contact::InternalGenerateClassData_(Contact_globals_._default); + Contact::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Contact::GetClassData() const { @@ -8900,21 +5312,58 @@ Contact::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Contact_class_data_.tc_table); return Contact_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Contact::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Contact_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Contact_globals_)); - return Contact_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Contact::ParseTableT_ - Contact::_table_ = - Contact::InternalGenerateParseTable_(Contact_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<2, 3, 0, 70, 2> +Contact::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Contact, _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 + 0, // num_aux_entries + offsetof(decltype(_table_), field_names), // no aux_entries + Contact_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_)}}, + // string url = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_)}}, + // string email = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string email = 3; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_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" + }}, +}; PROTOBUF_NOINLINE void Contact::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8923,14 +5372,14 @@ PROTOBUF_NOINLINE void Contact::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.url_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.email_.ClearNonDefaultToEmpty(); } } @@ -8949,16 +5398,12 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Contact& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8968,7 +5413,7 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8978,7 +5423,7 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( } // string email = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_email().empty()) { const ::std::string& _s = this_._internal_email(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9012,23 +5457,23 @@ ::size_t Contact::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if ((cached_has_bits & 0x00000007u) != 0) { // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); } } // string email = 3; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_email().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_email()); @@ -9039,21 +5484,17 @@ ::size_t Contact::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000007u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -9062,7 +5503,7 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -9071,7 +5512,7 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_email().empty()) { _this->_internal_set_email(from._internal_email()); } else { @@ -9082,12 +5523,11 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Contact::CopyFrom(const Contact& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) if (&from == this) return; Clear(); MergeFrom(from); @@ -9110,9 +5550,17 @@ ::google::protobuf::Metadata Contact::GetMetadata() const { } // =================================================================== +class License::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_); +}; + License::License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, License_get_class_data()) { + : ::google::protobuf::Message(arena, License_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9120,9 +5568,9 @@ License::License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::License& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::License& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), @@ -9132,8 +5580,7 @@ License::License( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const License& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, License_get_class_data()) { - + : ::google::protobuf::Message(arena, License_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9146,8 +5593,8 @@ License::License( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), url_(arena) {} @@ -9161,9 +5608,6 @@ License::~License() { } inline void License::SharedDtor(MessageLite& self) { License& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -9171,10 +5615,41 @@ inline void License::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL License::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) License(arena); +} +constexpr auto License::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(License), + alignof(License)); +} +constexpr auto License::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_License_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &License::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &License::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &License::ByteSizeLong, + &License::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(License, _impl_._cached_size_), + false, + }, + &License::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull License_class_data_ = - License::InternalGenerateClassData_(License_globals_._default); + License::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL License::GetClassData() const { @@ -9182,21 +5657,50 @@ License::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(License_class_data_.tc_table); return License_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -License::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&License_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&License_globals_)); - return License_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const License::ParseTableT_ - License::_table_ = - License::InternalGenerateParseTable_(License_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 65, 2> +License::_table_ = { + { + PROTOBUF_FIELD_OFFSET(License, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.url_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(License, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(License, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\4\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.License" + "name" + "url" + }}, +}; PROTOBUF_NOINLINE void License::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.License) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9205,11 +5709,11 @@ PROTOBUF_NOINLINE void License::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.url_.ClearNonDefaultToEmpty(); } } @@ -9228,16 +5732,12 @@ ::uint8_t* PROTOBUF_NONNULL License::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const License& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.License) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9247,7 +5747,7 @@ ::uint8_t* PROTOBUF_NONNULL License::_InternalSerialize( } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9281,16 +5781,16 @@ ::size_t License::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string name = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); @@ -9301,21 +5801,17 @@ ::size_t License::ByteSizeLong() const { &this_._impl_._cached_size_); } -void License::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -9324,7 +5820,7 @@ void License::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -9335,12 +5831,11 @@ void License::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void License::CopyFrom(const License& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) if (&from == this) return; Clear(); MergeFrom(from); @@ -9362,9 +5857,17 @@ ::google::protobuf::Metadata License::GetMetadata() const { } // =================================================================== +class ExternalDocumentation::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_); +}; + ExternalDocumentation::ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ExternalDocumentation_get_class_data()) { + : ::google::protobuf::Message(arena, ExternalDocumentation_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9372,9 +5875,9 @@ ExternalDocumentation::ExternalDocumentation(::google::protobuf::Arena* PROTOBUF // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_), @@ -9384,8 +5887,7 @@ ExternalDocumentation::ExternalDocumentation( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ExternalDocumentation& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ExternalDocumentation_get_class_data()) { - + : ::google::protobuf::Message(arena, ExternalDocumentation_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9398,8 +5900,8 @@ ExternalDocumentation::ExternalDocumentation( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena), url_(arena) {} @@ -9413,9 +5915,6 @@ ExternalDocumentation::~ExternalDocumentation() { } inline void ExternalDocumentation::SharedDtor(MessageLite& self) { ExternalDocumentation& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -9423,10 +5922,41 @@ inline void ExternalDocumentation::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL ExternalDocumentation::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ExternalDocumentation(arena); +} +constexpr auto ExternalDocumentation::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ExternalDocumentation), + alignof(ExternalDocumentation)); +} +constexpr auto ExternalDocumentation::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_ExternalDocumentation_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &ExternalDocumentation::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ExternalDocumentation::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ExternalDocumentation::ByteSizeLong, + &ExternalDocumentation::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._cached_size_), + false, + }, + &ExternalDocumentation::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_ = - ExternalDocumentation::InternalGenerateClassData_(ExternalDocumentation_globals_._default); + ExternalDocumentation::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ExternalDocumentation::GetClassData() const { @@ -9434,21 +5964,50 @@ ExternalDocumentation::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(ExternalDocumentation_class_data_.tc_table); return ExternalDocumentation_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -ExternalDocumentation::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&ExternalDocumentation_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ExternalDocumentation_globals_)); - return ExternalDocumentation_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ExternalDocumentation::ParseTableT_ - ExternalDocumentation::_table_ = - ExternalDocumentation::InternalGenerateParseTable_(ExternalDocumentation_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 86, 2> +ExternalDocumentation::_table_ = { + { + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\77\13\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" + "description" + "url" + }}, +}; PROTOBUF_NOINLINE void ExternalDocumentation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9457,11 +6016,11 @@ PROTOBUF_NOINLINE void ExternalDocumentation::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.url_.ClearNonDefaultToEmpty(); } } @@ -9480,16 +6039,12 @@ ::uint8_t* PROTOBUF_NONNULL ExternalDocumentation::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ExternalDocumentation& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9499,7 +6054,7 @@ ::uint8_t* PROTOBUF_NONNULL ExternalDocumentation::_InternalSerialize( } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9533,16 +6088,16 @@ ::size_t ExternalDocumentation::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string description = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string url = 2; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); @@ -9553,21 +6108,17 @@ ::size_t ExternalDocumentation::ByteSizeLong() const { &this_._impl_._cached_size_); } -void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -9576,7 +6127,7 @@ void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -9587,12 +6138,11 @@ void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void ExternalDocumentation::CopyFrom(const ExternalDocumentation& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) if (&from == this) return; Clear(); MergeFrom(from); @@ -9614,9 +6164,17 @@ ::google::protobuf::Metadata ExternalDocumentation::GetMetadata() const { } // =================================================================== +class Schema::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_); +}; + Schema::Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Schema_get_class_data()) { + : ::google::protobuf::Message(arena, Schema_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9624,9 +6182,9 @@ Schema::Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, discriminator_(arena, from.discriminator_), @@ -9636,8 +6194,7 @@ Schema::Schema( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Schema& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Schema_get_class_data()) { - + : ::google::protobuf::Message(arena, Schema_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9647,10 +6204,10 @@ Schema::Schema( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.json_schema_ = (CheckHasBit(cached_has_bits, 0x00000004U)) + _impl_.json_schema_ = ((cached_has_bits & 0x00000004u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.json_schema_) : nullptr; - _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000008U)) + _impl_.external_docs_ = ((cached_has_bits & 0x00000008u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; _impl_.read_only_ = from._impl_.read_only_; @@ -9658,15 +6215,15 @@ Schema::Schema( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, discriminator_(arena), example_(arena) {} inline void Schema::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, json_schema_), 0, offsetof(Impl_, read_only_) - @@ -9679,9 +6236,6 @@ Schema::~Schema() { } inline void Schema::SharedDtor(MessageLite& self) { Schema& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.discriminator_.Destroy(); @@ -9691,10 +6245,41 @@ inline void Schema::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Schema::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Schema(arena); +} +constexpr auto Schema::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Schema), + alignof(Schema)); +} +constexpr auto Schema::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Schema_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Schema::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Schema::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Schema::ByteSizeLong, + &Schema::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Schema, _impl_._cached_size_), + false, + }, + &Schema::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Schema_class_data_ = - Schema::InternalGenerateClassData_(Schema_globals_._default); + Schema::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Schema::GetClassData() const { @@ -9702,21 +6287,74 @@ Schema::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Schema_class_data_.tc_table); return Schema_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Schema::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Schema_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Schema_globals_)); - return Schema_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Schema::ParseTableT_ - Schema::_table_ = - Schema::InternalGenerateParseTable_(Schema_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 2, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)}}, + // string discriminator = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_)}}, + // bool read_only = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 4, 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, 3, 1, PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_)}}, + // string example = 6; + {::_pbi::TcParser::FastUS1, + {50, 1, 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 + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string discriminator = 2; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 3; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 1, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string example = 6; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_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" + }}, +}; PROTOBUF_NOINLINE void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9725,18 +6363,18 @@ PROTOBUF_NOINLINE void Schema::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000000fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.discriminator_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.example_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { ABSL_DCHECK(_impl_.json_schema_ != nullptr); _impl_.json_schema_->Clear(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } @@ -9757,23 +6395,20 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Schema& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.json_schema_, this_._impl_.json_schema_->GetCachedSize(), target, stream); } // string discriminator = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_discriminator().empty()) { const ::std::string& _s = this_._internal_discriminator(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9783,7 +6418,7 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( } // bool read_only = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (this_._internal_read_only() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -9792,14 +6427,14 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // string example = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_example().empty()) { const ::std::string& _s = this_._internal_example(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9833,33 +6468,33 @@ ::size_t Schema::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if ((cached_has_bits & 0x0000001fu) != 0) { // string discriminator = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_discriminator().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_discriminator()); } } // string example = 6; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_example().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_example()); } } // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.json_schema_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } // bool read_only = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (this_._internal_read_only() != 0) { total_size += 2; } @@ -9869,22 +6504,18 @@ ::size_t Schema::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_discriminator().empty()) { _this->_internal_set_discriminator(from._internal_discriminator()); } else { @@ -9893,7 +6524,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_example().empty()) { _this->_internal_set_example(from._internal_example()); } else { @@ -9902,7 +6533,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { ABSL_DCHECK(from._impl_.json_schema_ != nullptr); if (_this->_impl_.json_schema_ == nullptr) { _this->_impl_.json_schema_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.json_schema_); @@ -9910,7 +6541,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.json_schema_->MergeFrom(*from._impl_.json_schema_); } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -9918,19 +6549,18 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (from._internal_read_only() != 0) { _this->_impl_.read_only_ = from._impl_.read_only_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Schema::CopyFrom(const Schema& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) if (&from == this) return; Clear(); MergeFrom(from); @@ -9958,9 +6588,17 @@ ::google::protobuf::Metadata Schema::GetMetadata() const { } // =================================================================== +class JSONSchema_FieldConfiguration::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_); +}; + JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_get_class_data()) { + : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9968,9 +6606,9 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::google::protobuf: // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, path_param_name_(arena, from.path_param_name_) {} @@ -9979,8 +6617,7 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema_FieldConfiguration& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_get_class_data()) { - + : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9993,8 +6630,8 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, path_param_name_(arena) {} @@ -10007,19 +6644,47 @@ JSONSchema_FieldConfiguration::~JSONSchema_FieldConfiguration() { } inline void JSONSchema_FieldConfiguration::SharedDtor(MessageLite& self) { JSONSchema_FieldConfiguration& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.path_param_name_.Destroy(); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema_FieldConfiguration(arena); +} +constexpr auto JSONSchema_FieldConfiguration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_FieldConfiguration), + alignof(JSONSchema_FieldConfiguration)); +} +constexpr auto JSONSchema_FieldConfiguration::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_JSONSchema_FieldConfiguration_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &JSONSchema_FieldConfiguration::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema_FieldConfiguration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &JSONSchema_FieldConfiguration::ByteSizeLong, + &JSONSchema_FieldConfiguration::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._cached_size_), + false, + }, + &JSONSchema_FieldConfiguration::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_ = - JSONSchema_FieldConfiguration::InternalGenerateClassData_(JSONSchema_FieldConfiguration_globals_._default); + JSONSchema_FieldConfiguration::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::GetClassData() const { @@ -10027,21 +6692,45 @@ JSONSchema_FieldConfiguration::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_FieldConfiguration_class_data_.tc_table); return JSONSchema_FieldConfiguration_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -JSONSchema_FieldConfiguration::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_FieldConfiguration_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_FieldConfiguration_globals_)); - return JSONSchema_FieldConfiguration_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema_FieldConfiguration::ParseTableT_ - JSONSchema_FieldConfiguration::_table_ = - JSONSchema_FieldConfiguration::InternalGenerateParseTable_(JSONSchema_FieldConfiguration_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<0, 1, 0, 95, 7> +JSONSchema_FieldConfiguration::_table_ = { + { + PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 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_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_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" + }}, +}; PROTOBUF_NOINLINE void JSONSchema_FieldConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -10050,7 +6739,7 @@ PROTOBUF_NOINLINE void JSONSchema_FieldConfiguration::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.path_param_name_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); @@ -10068,16 +6757,12 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const JSONSchema_FieldConfiguration& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@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; - cached_has_bits = this_._impl_._has_bits_[0]; // string path_param_name = 47; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_path_param_name().empty()) { const ::std::string& _s = this_._internal_path_param_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10112,7 +6797,7 @@ ::size_t JSONSchema_FieldConfiguration::ByteSizeLong() const { { // string path_param_name = 47; cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_path_param_name().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_path_param_name()); @@ -10123,20 +6808,16 @@ ::size_t JSONSchema_FieldConfiguration::ByteSizeLong() const { &this_._impl_._cached_size_); } -void JSONSchema_FieldConfiguration::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_path_param_name().empty()) { _this->_internal_set_path_param_name(from._internal_path_param_name()); } else { @@ -10146,12 +6827,11 @@ void JSONSchema_FieldConfiguration::MergeImpl(::google::protobuf::MessageLite& t } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::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) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) if (&from == this) return; Clear(); MergeFrom(from); @@ -10173,51 +6853,119 @@ ::google::protobuf::Metadata JSONSchema_FieldConfiguration::GetMetadata() const // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() : SuperType(JSONSchema_ExtensionsEntry_DoNotUse_get_class_data()) {} +JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() + : SuperType(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) {} JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, JSONSchema_ExtensionsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() : SuperType() {} JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_ExtensionsEntry_DoNotUse), + alignof(JSONSchema_ExtensionsEntry_DoNotUse)); +} +constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &JSONSchema_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&JSONSchema_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &JSONSchema_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_ = - JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(JSONSchema_ExtensionsEntry_DoNotUse_globals_._default); + JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.tc_table); return JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -JSONSchema_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_ExtensionsEntry_DoNotUse_globals_)); - return JSONSchema_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema_ExtensionsEntry_DoNotUse::ParseTableT_ - JSONSchema_ExtensionsEntry_DoNotUse::_table_ = - JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 80, 2> +JSONSchema_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._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), + JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\104\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +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_); +}; + void JSONSchema::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x02000000U); } JSONSchema::JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_get_class_data()) { + : ::google::protobuf::Message(arena, JSONSchema_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10225,61 +6973,30 @@ JSONSchema::JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) } PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - required_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() - , from.required_ - } - , - array_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() - , from.array_ - } - , - type_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() - , from.type_ - } - , + required_{visibility, arena, from.required_}, + array_{visibility, arena, from.array_}, + type_{visibility, arena, from.type_}, _type_cached_byte_size_{0}, - enum__ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() - , from.enum__ - } - , + 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_), - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() - , from.extensions_ - } - {} + format_(arena, from.format_) {} JSONSchema::JSONSchema( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_get_class_data()) { - + : ::google::protobuf::Message(arena, JSONSchema_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10289,12 +7006,12 @@ JSONSchema::JSONSchema( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.field_configuration_ = (CheckHasBit(cached_has_bits, 0x00000800U)) + _impl_.field_configuration_ = ((cached_has_bits & 0x00000080u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.field_configuration_) : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, multiple_of_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, multiple_of_), offsetof(Impl_, unique_items_) - offsetof(Impl_, multiple_of_) + @@ -10303,46 +7020,26 @@ JSONSchema::JSONSchema( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) } PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - required_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() - } - , - array_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() - } - , - type_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() - } - , + required_{visibility, arena}, + array_{visibility, arena}, + type_{visibility, arena}, _type_cached_byte_size_{0}, - enum__ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() - } - , + enum__{visibility, arena}, + extensions_{visibility, arena}, ref_(arena), title_(arena), description_(arena), default__(arena), example_(arena), pattern_(arena), - format_(arena), - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() - } - {} + format_(arena) {} inline void JSONSchema::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, field_configuration_), 0, offsetof(Impl_, unique_items_) - @@ -10355,9 +7052,6 @@ JSONSchema::~JSONSchema() { } inline void JSONSchema::SharedDtor(MessageLite& self) { JSONSchema& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.ref_.Destroy(); @@ -10371,10 +7065,73 @@ inline void JSONSchema::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL JSONSchema::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema(arena); +} +constexpr auto JSONSchema::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_) + + decltype(JSONSchema::_impl_.required_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_) + + decltype(JSONSchema::_impl_.array_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_) + + decltype(JSONSchema::_impl_.type_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__) + + decltype(JSONSchema::_impl_.enum__):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_) + + decltype(JSONSchema::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_) + + decltype(JSONSchema::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(JSONSchema), alignof(JSONSchema), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&JSONSchema::PlacementNew_, + sizeof(JSONSchema), + alignof(JSONSchema)); + } +} +constexpr auto JSONSchema::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_JSONSchema_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &JSONSchema::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &JSONSchema::ByteSizeLong, + &JSONSchema::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._cached_size_), + false, + }, + &JSONSchema::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_ = - JSONSchema::InternalGenerateClassData_(JSONSchema_globals_._default); + JSONSchema::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema::GetClassData() const { @@ -10382,21 +7139,213 @@ JSONSchema::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_class_data_.tc_table); return JSONSchema_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -JSONSchema::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_globals_)); - return JSONSchema_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema::ParseTableT_ - JSONSchema::_table_ = - JSONSchema::InternalGenerateParseTable_(JSONSchema_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string title = 5; + {::_pbi::TcParser::FastUS1, + {42, 1, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_)}}, + // string description = 6; + {::_pbi::TcParser::FastUS1, + {50, 2, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_)}}, + // string default = 7; + {::_pbi::TcParser::FastUS1, + {58, 3, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__)}}, + // bool read_only = 8; + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 17, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_)}}, + // string example = 9; + {::_pbi::TcParser::FastUS1, + {74, 4, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_)}}, + // double multiple_of = 10; + {::_pbi::TcParser::FastF64S1, + {81, 8, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_)}}, + // double maximum = 11; + {::_pbi::TcParser::FastF64S1, + {89, 9, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_)}}, + // bool exclusive_maximum = 12; + {::_pbi::TcParser::SingularVarintNoZag1(), + {96, 18, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_)}}, + // double minimum = 13; + {::_pbi::TcParser::FastF64S1, + {105, 10, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_)}}, + // bool exclusive_minimum = 14; + {::_pbi::TcParser::SingularVarintNoZag1(), + {112, 19, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_)}}, + // uint64 max_length = 15; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(JSONSchema, _impl_.max_length_), 11>(), + {120, 11, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_)}}, + // uint64 min_length = 16; + {::_pbi::TcParser::FastV64S2, + {384, 12, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_)}}, + // string pattern = 17; + {::_pbi::TcParser::FastUS2, + {394, 5, 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, 13, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_)}}, + // uint64 min_items = 21; + {::_pbi::TcParser::FastV64S2, + {424, 14, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_)}}, + // bool unique_items = 22; + {::_pbi::TcParser::FastV8S2, + {432, 20, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint64 max_properties = 24; + {::_pbi::TcParser::FastV64S2, + {448, 15, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_)}}, + // uint64 min_properties = 25; + {::_pbi::TcParser::FastV64S2, + {456, 16, 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_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string title = 5; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 6; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 7; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 8; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_), _Internal::kHasBitsOffset + 17, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // string example = 9; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_), _Internal::kHasBitsOffset + 4, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // double multiple_of = 10; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_), _Internal::kHasBitsOffset + 8, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double maximum = 11; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_), _Internal::kHasBitsOffset + 9, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool exclusive_maximum = 12; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_), _Internal::kHasBitsOffset + 18, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // double minimum = 13; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_), _Internal::kHasBitsOffset + 10, 0, + (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool exclusive_minimum = 14; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_), _Internal::kHasBitsOffset + 19, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // uint64 max_length = 15; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_), _Internal::kHasBitsOffset + 11, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_length = 16; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_), _Internal::kHasBitsOffset + 12, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // string pattern = 17; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 max_items = 20; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_), _Internal::kHasBitsOffset + 13, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_items = 21; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_), _Internal::kHasBitsOffset + 14, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bool unique_items = 22; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_), _Internal::kHasBitsOffset + 20, 0, + (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // uint64 max_properties = 24; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_), _Internal::kHasBitsOffset + 15, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_properties = 25; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_), _Internal::kHasBitsOffset + 16, 0, + (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_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, 1, + (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 + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>()}, + {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\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" + }}, +}; PROTOBUF_NOINLINE void JSONSchema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -10404,63 +7353,48 @@ PROTOBUF_NOINLINE void JSONSchema::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.required_.Clear(); + _impl_.array_.Clear(); + _impl_.type_.Clear(); + _impl_.enum__.Clear(); + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.required_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _impl_.array_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _impl_.type_.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _impl_.enum__.Clear(); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.ref_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.title_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.default__.ClearNonDefaultToEmpty(); } - } - if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { _impl_.example_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { _impl_.pattern_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if ((cached_has_bits & 0x00000040u) != 0) { _impl_.format_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if ((cached_has_bits & 0x00000080u) != 0) { ABSL_DCHECK(_impl_.field_configuration_ != nullptr); _impl_.field_configuration_->Clear(); } } - if (BatchCheckHasBit(cached_has_bits, 0x0000f000U)) { + if ((cached_has_bits & 0x0000ff00u) != 0) { ::memset(&_impl_.multiple_of_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_length_) - - reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.max_length_)); + reinterpret_cast(&_impl_.max_properties_) - + reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.max_properties_)); } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - ::memset(&_impl_.min_length_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.exclusive_minimum_) - - reinterpret_cast(&_impl_.min_length_)) + sizeof(_impl_.exclusive_minimum_)); - } - if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { - _impl_.unique_items_ = false; - if (CheckHasBit(cached_has_bits, 0x02000000U)) { - _impl_.extensions_.Clear(); - } + if ((cached_has_bits & 0x001f0000u) != 0) { + ::memset(&_impl_.min_properties_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.unique_items_) - + reinterpret_cast(&_impl_.min_properties_)) + sizeof(_impl_.unique_items_)); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -10477,16 +7411,12 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const JSONSchema& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string ref = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_ref().empty()) { const ::std::string& _s = this_._internal_ref(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10496,7 +7426,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string title = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_title().empty()) { const ::std::string& _s = this_._internal_title(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10506,7 +7436,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string description = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10516,7 +7446,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string default = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { if (!this_._internal_default_().empty()) { const ::std::string& _s = this_._internal_default_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10526,7 +7456,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool read_only = 8; - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if ((this_._impl_._has_bits_[0] & 0x00020000u) != 0) { if (this_._internal_read_only() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10535,7 +7465,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string example = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { if (!this_._internal_example().empty()) { const ::std::string& _s = this_._internal_example(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10545,7 +7475,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double multiple_of = 10; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_multiple_of()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -10554,7 +7484,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double maximum = 11; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_maximum()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -10563,7 +7493,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool exclusive_maximum = 12; - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if ((this_._impl_._has_bits_[0] & 0x00040000u) != 0) { if (this_._internal_exclusive_maximum() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10572,7 +7502,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double minimum = 13; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_minimum()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -10581,7 +7511,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool exclusive_minimum = 14; - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if ((this_._impl_._has_bits_[0] & 0x00080000u) != 0) { if (this_._internal_exclusive_minimum() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10590,7 +7520,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_length = 15; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if ((this_._impl_._has_bits_[0] & 0x00000800u) != 0) { if (this_._internal_max_length() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10599,7 +7529,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_length = 16; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if ((this_._impl_._has_bits_[0] & 0x00001000u) != 0) { if (this_._internal_min_length() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10608,7 +7538,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string pattern = 17; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { if (!this_._internal_pattern().empty()) { const ::std::string& _s = this_._internal_pattern(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10618,7 +7548,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_items = 20; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if ((this_._impl_._has_bits_[0] & 0x00002000u) != 0) { if (this_._internal_max_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10627,7 +7557,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_items = 21; - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if ((this_._impl_._has_bits_[0] & 0x00004000u) != 0) { if (this_._internal_min_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10636,7 +7566,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool unique_items = 22; - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if ((this_._impl_._has_bits_[0] & 0x00100000u) != 0) { if (this_._internal_unique_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -10645,7 +7575,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_properties = 24; - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if ((this_._impl_._has_bits_[0] & 0x00008000u) != 0) { if (this_._internal_max_properties() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10654,7 +7584,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_properties = 25; - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if ((this_._impl_._has_bits_[0] & 0x00010000u) != 0) { if (this_._internal_min_properties() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -10663,38 +7593,32 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // repeated string required = 26; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_required_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_required_size(); i < n; ++i) { + 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; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - for (int i = 0, n = this_._internal_array_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_array_size(); i < n; ++i) { + 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; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - { - ::size_t byte_size = this_._impl_._type_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 35, this_._internal_type(), byte_size, target); - } + { + ::size_t byte_size = this_._impl_._type_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 35, this_._internal_type(), byte_size, target); } } // string format = 36; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { if (!this_._internal_format().empty()) { const ::std::string& _s = this_._internal_format(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -10704,46 +7628,43 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // repeated string enum = 46; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - for (int i = 0, n = this_._internal_enum__size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_enum__size(); i < n; ++i) { + 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 (CheckHasBit(cached_has_bits, 0x02000000U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 48, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if ((cached_has_bits & 0x00000080u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1001, *this_._impl_.field_configuration_, this_._impl_.field_configuration_->GetCachedSize(), target, stream); @@ -10773,10 +7694,9 @@ ::size_t JSONSchema::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + { // repeated string required = 26; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_required().size()); for (int i = 0, n = this_._internal_required().size(); i < n; ++i) { @@ -10785,7 +7705,7 @@ ::size_t JSONSchema::ByteSizeLong() const { } } // repeated string array = 34; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_array().size()); for (int i = 0, n = this_._internal_array().size(); i < n; ++i) { @@ -10794,12 +7714,12 @@ ::size_t JSONSchema::ByteSizeLong() const { } } // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_type(), 2, this_._impl_._type_cached_byte_size_); } // repeated string enum = 46; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_enum_().size()); for (int i = 0, n = this_._internal_enum_().size(); i < n; ++i) { @@ -10807,199 +7727,183 @@ ::size_t JSONSchema::ByteSizeLong() const { this_._internal_enum_().Get(i)); } } + // map extensions = 48; + { + total_size += + 2 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } + cached_has_bits = this_._impl_._has_bits_[0]; + if ((cached_has_bits & 0x000000ffu) != 0) { // string ref = 3; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_ref().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_ref()); } } // string title = 5; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_title().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_title()); } } // string description = 6; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string default = 7; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_default_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_default_()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // string example = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (!this_._internal_example().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_example()); } } // string pattern = 17; - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (!this_._internal_pattern().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_pattern()); } } // string format = 36; - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (!this_._internal_format().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_format()); } } // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if ((cached_has_bits & 0x00000080u) != 0) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.field_configuration_); } + } + if ((cached_has_bits & 0x0000ff00u) != 0) { // double multiple_of = 10; - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + if ((cached_has_bits & 0x00000100u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_multiple_of()) != 0) { total_size += 9; } } // double maximum = 11; - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if ((cached_has_bits & 0x00000200u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_maximum()) != 0) { total_size += 9; } } // double minimum = 13; - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if ((cached_has_bits & 0x00000400u) != 0) { if (::absl::bit_cast<::uint64_t>(this_._internal_minimum()) != 0) { total_size += 9; } } // uint64 max_length = 15; - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if ((cached_has_bits & 0x00000800u) != 0) { if (this_._internal_max_length() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_max_length()); } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint64 min_length = 16; - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if ((cached_has_bits & 0x00001000u) != 0) { if (this_._internal_min_length() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_length()); } } // uint64 max_items = 20; - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if ((cached_has_bits & 0x00002000u) != 0) { if (this_._internal_max_items() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_max_items()); } } // uint64 min_items = 21; - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if ((cached_has_bits & 0x00004000u) != 0) { if (this_._internal_min_items() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_items()); } } // uint64 max_properties = 24; - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if ((cached_has_bits & 0x00008000u) != 0) { if (this_._internal_max_properties() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_max_properties()); } } + } + if ((cached_has_bits & 0x001f0000u) != 0) { // uint64 min_properties = 25; - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + if ((cached_has_bits & 0x00010000u) != 0) { if (this_._internal_min_properties() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_properties()); } } // bool read_only = 8; - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if ((cached_has_bits & 0x00020000u) != 0) { if (this_._internal_read_only() != 0) { total_size += 2; } } // bool exclusive_maximum = 12; - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if ((cached_has_bits & 0x00040000u) != 0) { if (this_._internal_exclusive_maximum() != 0) { total_size += 2; } } // bool exclusive_minimum = 14; - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if ((cached_has_bits & 0x00080000u) != 0) { if (this_._internal_exclusive_minimum() != 0) { total_size += 2; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { // bool unique_items = 22; - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if ((cached_has_bits & 0x00100000u) != 0) { if (this_._internal_unique_items() != 0) { total_size += 3; } } - // map extensions = 48; - if (CheckHasBit(cached_has_bits, 0x02000000U)) { - total_size += - 2 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); - } - } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_internal_mutable_required()->MergeFrom(from._internal_required()); + _this->_internal_mutable_array()->MergeFrom(from._internal_array()); + _this->_internal_mutable_type()->MergeFrom(from._internal_type()); + _this->_internal_mutable_enum_()->MergeFrom(from._internal_enum_()); + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_required()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_required()); - } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { - _this->_internal_mutable_array()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_array()); - } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { - _this->_internal_mutable_type()->MergeFrom(from._internal_type()); - } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { - _this->_internal_mutable_enum_()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_enum_()); - } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_ref().empty()) { _this->_internal_set_ref(from._internal_ref()); } else { @@ -11008,7 +7912,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_title().empty()) { _this->_internal_set_title(from._internal_title()); } else { @@ -11017,7 +7921,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -11026,7 +7930,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!from._internal_default_().empty()) { _this->_internal_set_default_(from._internal_default_()); } else { @@ -11035,9 +7939,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - } - if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { - if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if ((cached_has_bits & 0x00000010u) != 0) { if (!from._internal_example().empty()) { _this->_internal_set_example(from._internal_example()); } else { @@ -11046,7 +7948,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000200U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (!from._internal_pattern().empty()) { _this->_internal_set_pattern(from._internal_pattern()); } else { @@ -11055,7 +7957,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (!from._internal_format().empty()) { _this->_internal_set_format(from._internal_format()); } else { @@ -11064,7 +7966,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if ((cached_has_bits & 0x00000080u) != 0) { ABSL_DCHECK(from._impl_.field_configuration_ != nullptr); if (_this->_impl_.field_configuration_ == nullptr) { _this->_impl_.field_configuration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.field_configuration_); @@ -11072,86 +7974,82 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.field_configuration_->MergeFrom(*from._impl_.field_configuration_); } } - if (CheckHasBit(cached_has_bits, 0x00001000U)) { + } + if ((cached_has_bits & 0x0000ff00u) != 0) { + if ((cached_has_bits & 0x00000100u) != 0) { if (::absl::bit_cast<::uint64_t>(from._internal_multiple_of()) != 0) { _this->_impl_.multiple_of_ = from._impl_.multiple_of_; } } - if (CheckHasBit(cached_has_bits, 0x00002000U)) { + if ((cached_has_bits & 0x00000200u) != 0) { if (::absl::bit_cast<::uint64_t>(from._internal_maximum()) != 0) { _this->_impl_.maximum_ = from._impl_.maximum_; } } - if (CheckHasBit(cached_has_bits, 0x00004000U)) { + if ((cached_has_bits & 0x00000400u) != 0) { if (::absl::bit_cast<::uint64_t>(from._internal_minimum()) != 0) { _this->_impl_.minimum_ = from._impl_.minimum_; } } - if (CheckHasBit(cached_has_bits, 0x00008000U)) { + if ((cached_has_bits & 0x00000800u) != 0) { if (from._internal_max_length() != 0) { _this->_impl_.max_length_ = from._impl_.max_length_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { - if (CheckHasBit(cached_has_bits, 0x00010000U)) { + if ((cached_has_bits & 0x00001000u) != 0) { if (from._internal_min_length() != 0) { _this->_impl_.min_length_ = from._impl_.min_length_; } } - if (CheckHasBit(cached_has_bits, 0x00020000U)) { + if ((cached_has_bits & 0x00002000u) != 0) { if (from._internal_max_items() != 0) { _this->_impl_.max_items_ = from._impl_.max_items_; } } - if (CheckHasBit(cached_has_bits, 0x00040000U)) { + if ((cached_has_bits & 0x00004000u) != 0) { if (from._internal_min_items() != 0) { _this->_impl_.min_items_ = from._impl_.min_items_; } } - if (CheckHasBit(cached_has_bits, 0x00080000U)) { + if ((cached_has_bits & 0x00008000u) != 0) { if (from._internal_max_properties() != 0) { _this->_impl_.max_properties_ = from._impl_.max_properties_; } } - if (CheckHasBit(cached_has_bits, 0x00100000U)) { + } + if ((cached_has_bits & 0x001f0000u) != 0) { + if ((cached_has_bits & 0x00010000u) != 0) { if (from._internal_min_properties() != 0) { _this->_impl_.min_properties_ = from._impl_.min_properties_; } } - if (CheckHasBit(cached_has_bits, 0x00200000U)) { + if ((cached_has_bits & 0x00020000u) != 0) { if (from._internal_read_only() != 0) { _this->_impl_.read_only_ = from._impl_.read_only_; } } - if (CheckHasBit(cached_has_bits, 0x00400000U)) { + if ((cached_has_bits & 0x00040000u) != 0) { if (from._internal_exclusive_maximum() != 0) { _this->_impl_.exclusive_maximum_ = from._impl_.exclusive_maximum_; } } - if (CheckHasBit(cached_has_bits, 0x00800000U)) { + if ((cached_has_bits & 0x00080000u) != 0) { if (from._internal_exclusive_minimum() != 0) { _this->_impl_.exclusive_minimum_ = from._impl_.exclusive_minimum_; } } - } - if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { - if (CheckHasBit(cached_has_bits, 0x01000000U)) { + if ((cached_has_bits & 0x00100000u) != 0) { if (from._internal_unique_items() != 0) { _this->_impl_.unique_items_ = from._impl_.unique_items_; } } - if (CheckHasBit(cached_has_bits, 0x02000000U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void JSONSchema::CopyFrom(const JSONSchema& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) if (&from == this) return; Clear(); MergeFrom(from); @@ -11168,6 +8066,7 @@ void JSONSchema::InternalSwap(JSONSchema* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth _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_, &other->_impl_.ref_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); @@ -11181,7 +8080,6 @@ void JSONSchema::InternalSwap(JSONSchema* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.field_configuration_)>( reinterpret_cast(&_impl_.field_configuration_), reinterpret_cast(&other->_impl_.field_configuration_)); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata JSONSchema::GetMetadata() const { @@ -11189,9 +8087,17 @@ ::google::protobuf::Metadata JSONSchema::GetMetadata() const { } // =================================================================== +class Tag::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_); +}; + Tag::Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Tag_get_class_data()) { + : ::google::protobuf::Message(arena, Tag_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11199,9 +8105,9 @@ Tag::Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Tag& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Tag& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_) {} @@ -11210,8 +8116,7 @@ Tag::Tag( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tag& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Tag_get_class_data()) { - + : ::google::protobuf::Message(arena, Tag_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11221,15 +8126,15 @@ Tag::Tag( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000002U)) + _impl_.external_docs_ = ((cached_has_bits & 0x00000002u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena) {} @@ -11241,22 +8146,50 @@ Tag::~Tag() { // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) SharedDtor(*this); } -inline void Tag::SharedDtor(MessageLite& self) { - Tag& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.description_.Destroy(); - delete this_._impl_.external_docs_; - this_._impl_.~Impl_(); +inline void Tag::SharedDtor(MessageLite& self) { + Tag& this_ = static_cast(self); + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.description_.Destroy(); + delete this_._impl_.external_docs_; + this_._impl_.~Impl_(); +} + +inline void* PROTOBUF_NONNULL Tag::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Tag(arena); +} +constexpr auto Tag::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Tag), + alignof(Tag)); +} +constexpr auto Tag::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Tag_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Tag::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Tag::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Tag::ByteSizeLong, + &Tag::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Tag, _impl_._cached_size_), + false, + }, + &Tag::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; } -#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Tag_class_data_ = - Tag::InternalGenerateClassData_(Tag_globals_._default); + Tag::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Tag::GetClassData() const { @@ -11264,21 +8197,51 @@ Tag::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Tag_class_data_.tc_table); return Tag_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Tag::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Tag_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Tag_globals_)); - return Tag_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Tag::ParseTableT_ - Tag::_table_ = - Tag::InternalGenerateParseTable_(Tag_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_), _Internal::kHasBitsOffset + 1, 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" + }}, +}; PROTOBUF_NOINLINE void Tag::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11287,11 +8250,11 @@ PROTOBUF_NOINLINE void Tag::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } @@ -11311,16 +8274,12 @@ ::uint8_t* PROTOBUF_NONNULL Tag::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Tag& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -11329,8 +8288,9 @@ ::uint8_t* PROTOBUF_NONNULL Tag::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); @@ -11361,16 +8321,16 @@ ::size_t Tag::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if ((cached_has_bits & 0x00000003u) != 0) { // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } @@ -11379,22 +8339,18 @@ ::size_t Tag::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000003u) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -11403,7 +8359,7 @@ void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -11413,12 +8369,11 @@ void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Tag::CopyFrom(const Tag& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) if (&from == this) return; Clear(); MergeFrom(from); @@ -11441,46 +8396,111 @@ ::google::protobuf::Metadata Tag::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() : SuperType(SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data()) {} +SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() + : SuperType(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) {} SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() : SuperType() {} SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityDefinitions_SecurityEntry_DoNotUse(arena); +} +constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions_SecurityEntry_DoNotUse), + alignof(SecurityDefinitions_SecurityEntry_DoNotUse)); +} +constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityDefinitions_SecurityEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityDefinitions_SecurityEntry_DoNotUse::SharedDtor, + static_cast(&SecurityDefinitions_SecurityEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &SecurityDefinitions_SecurityEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_ = - SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_(SecurityDefinitions_SecurityEntry_DoNotUse_globals_._default); + SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_SecurityEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.tc_table); return SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityDefinitions_SecurityEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_SecurityEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityDefinitions_SecurityEntry_DoNotUse_globals_)); - return SecurityDefinitions_SecurityEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityDefinitions_SecurityEntry_DoNotUse::ParseTableT_ - SecurityDefinitions_SecurityEntry_DoNotUse::_table_ = - SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateParseTable_(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 87, 2> +SecurityDefinitions_SecurityEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._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), + SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, + }}, + {{ + "\113\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry" + "key" + }}, +}; // =================================================================== +class SecurityDefinitions::_Internal { + public: +}; + SecurityDefinitions::SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityDefinitions_get_class_data()) { + : ::google::protobuf::Message(arena, SecurityDefinitions_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11488,25 +8508,17 @@ SecurityDefinitions::SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NUL // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - security_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() - , from.security_ - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& from_msg) + : security_{visibility, arena, from.security_}, + _cached_size_{0} {} SecurityDefinitions::SecurityDefinitions( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityDefinitions& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityDefinitions_get_class_data()) { - + : ::google::protobuf::Message(arena, SecurityDefinitions_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11519,14 +8531,10 @@ SecurityDefinitions::SecurityDefinitions( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - security_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : security_{visibility, arena}, + _cached_size_{0} {} inline void SecurityDefinitions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -11537,18 +8545,62 @@ SecurityDefinitions::~SecurityDefinitions() { } inline void SecurityDefinitions::SharedDtor(MessageLite& self) { SecurityDefinitions& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityDefinitions::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityDefinitions(arena); +} +constexpr auto SecurityDefinitions::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_.security_) + + decltype(SecurityDefinitions::_impl_.security_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_.security_) + + decltype(SecurityDefinitions::_impl_.security_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(SecurityDefinitions), alignof(SecurityDefinitions), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SecurityDefinitions::PlacementNew_, + sizeof(SecurityDefinitions), + alignof(SecurityDefinitions)); + } +} +constexpr auto SecurityDefinitions::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityDefinitions_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityDefinitions::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityDefinitions::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityDefinitions::ByteSizeLong, + &SecurityDefinitions::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._cached_size_), + false, + }, + &SecurityDefinitions::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_ = - SecurityDefinitions::InternalGenerateClassData_(SecurityDefinitions_globals_._default); + SecurityDefinitions::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityDefinitions::GetClassData() const { @@ -11556,21 +8608,46 @@ SecurityDefinitions::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityDefinitions_class_data_.tc_table); return SecurityDefinitions_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityDefinitions::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityDefinitions_globals_)); - return SecurityDefinitions_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityDefinitions::ParseTableT_ - SecurityDefinitions::_table_ = - SecurityDefinitions::InternalGenerateParseTable_(SecurityDefinitions_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, + }}, + {{ + "\75\10\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" + "security" + }}, +}; PROTOBUF_NOINLINE void SecurityDefinitions::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11578,11 +8655,7 @@ PROTOBUF_NOINLINE void SecurityDefinitions::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.security_.Clear(); - } - _impl_._has_bits_.Clear(); + _impl_.security_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -11597,39 +8670,33 @@ ::uint8_t* PROTOBUF_NONNULL SecurityDefinitions::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityDefinitions& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // map security = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_security().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_security().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -11660,12 +8727,11 @@ ::size_t SecurityDefinitions::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map security = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_security_size()); for (const auto& entry : this_._internal_security()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -11675,29 +8741,20 @@ ::size_t SecurityDefinitions::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityDefinitions::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.security_.MergeFrom(from._impl_.security_); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_impl_.security_.MergeFrom(from._impl_.security_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) if (&from == this) return; Clear(); MergeFrom(from); @@ -11707,7 +8764,6 @@ void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { void SecurityDefinitions::InternalSwap(SecurityDefinitions* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.security_.InternalSwap(&other->_impl_.security_); } @@ -11717,51 +8773,119 @@ ::google::protobuf::Metadata SecurityDefinitions::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() : SuperType(SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data()) {} +SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() + : SuperType(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) {} SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() : SuperType() {} SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityScheme_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme_ExtensionsEntry_DoNotUse), + alignof(SecurityScheme_ExtensionsEntry_DoNotUse)); +} +constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityScheme_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityScheme_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&SecurityScheme_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &SecurityScheme_ExtensionsEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_ = - SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(SecurityScheme_ExtensionsEntry_DoNotUse_globals_._default); + SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.tc_table); return SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityScheme_ExtensionsEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_ExtensionsEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityScheme_ExtensionsEntry_DoNotUse_globals_)); - return SecurityScheme_ExtensionsEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityScheme_ExtensionsEntry_DoNotUse::ParseTableT_ - SecurityScheme_ExtensionsEntry_DoNotUse::_table_ = - SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 84, 2> +SecurityScheme_ExtensionsEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._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), + SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + }}, + {{ + "\110\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry" + "key" + }}, +}; // =================================================================== +class SecurityScheme::_Internal { + public: + using HasBits = + decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_); +}; + void SecurityScheme::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); - ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } SecurityScheme::SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityScheme_get_class_data()) { + : ::google::protobuf::Message(arena, SecurityScheme_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11769,29 +8893,22 @@ SecurityScheme::SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE aren // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme& from_msg) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme& from_msg) : _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_), - extensions_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() - , from.extensions_ - } - {} + token_url_(arena, from.token_url_) {} SecurityScheme::SecurityScheme( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityScheme& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityScheme_get_class_data()) { - + : ::google::protobuf::Message(arena, SecurityScheme_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -11801,12 +8918,12 @@ SecurityScheme::SecurityScheme( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.scopes_ = (CheckHasBit(cached_has_bits, 0x00000010U)) + _impl_.scopes_ = ((cached_has_bits & 0x00000010u) != 0) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.scopes_) : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, type_), offsetof(Impl_, flow_) - offsetof(Impl_, type_) + @@ -11815,22 +8932,18 @@ SecurityScheme::SecurityScheme( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, + extensions_{visibility, arena}, description_(arena), name_(arena), authorization_url_(arena), - token_url_(arena), - extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() - } - {} + token_url_(arena) {} inline void SecurityScheme::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, scopes_), 0, offsetof(Impl_, flow_) - @@ -11843,9 +8956,6 @@ SecurityScheme::~SecurityScheme() { } inline void SecurityScheme::SharedDtor(MessageLite& self) { SecurityScheme& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -11856,10 +8966,57 @@ inline void SecurityScheme::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityScheme::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityScheme(arena); +} +constexpr auto SecurityScheme::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_) + + decltype(SecurityScheme::_impl_.extensions_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_) + + decltype(SecurityScheme::_impl_.extensions_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(SecurityScheme), alignof(SecurityScheme), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SecurityScheme::PlacementNew_, + sizeof(SecurityScheme), + alignof(SecurityScheme)); + } +} +constexpr auto SecurityScheme::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityScheme_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityScheme::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityScheme::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityScheme::ByteSizeLong, + &SecurityScheme::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._cached_size_), + false, + }, + &SecurityScheme::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_ = - SecurityScheme::InternalGenerateClassData_(SecurityScheme_globals_._default); + SecurityScheme::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityScheme::GetClassData() const { @@ -11867,21 +9024,98 @@ SecurityScheme::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityScheme_class_data_.tc_table); return SecurityScheme_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityScheme::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityScheme_globals_)); - return SecurityScheme_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityScheme::ParseTableT_ - SecurityScheme::_table_ = - SecurityScheme::InternalGenerateParseTable_(SecurityScheme_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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, 4, 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_), 5>(), + {8, 5, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_)}}, + // string name = 3; + {::_pbi::TcParser::FastUS1, + {26, 1, 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_), 6>(), + {32, 6, 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_), 7>(), + {40, 7, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_)}}, + // string authorization_url = 6; + {::_pbi::TcParser::FastUS1, + {50, 2, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_)}}, + // string token_url = 7; + {::_pbi::TcParser::FastUS1, + {58, 3, 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_), _Internal::kHasBitsOffset + 5, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string name = 3; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_), _Internal::kHasBitsOffset + 6, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_), _Internal::kHasBitsOffset + 7, 0, + (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string authorization_url = 6; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_), _Internal::kHasBitsOffset + 2, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string token_url = 7; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_), _Internal::kHasBitsOffset + 3, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_), _Internal::kHasBitsOffset + 4, 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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::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" + }}, +}; PROTOBUF_NOINLINE void SecurityScheme::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -11889,33 +9123,31 @@ PROTOBUF_NOINLINE void SecurityScheme::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x0000001fu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { _impl_.description_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { _impl_.name_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { _impl_.authorization_url_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { _impl_.token_url_.ClearNonDefaultToEmpty(); } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(_impl_.scopes_ != nullptr); _impl_.scopes_->Clear(); } } - if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) { + if ((cached_has_bits & 0x000000e0u) != 0) { ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.flow_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.flow_)); } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _impl_.extensions_.Clear(); - } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -11931,16 +9163,12 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityScheme& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { if (this_._internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -11949,7 +9177,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -11959,7 +9187,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string name = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -11969,7 +9197,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { if (this_._internal_in() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -11978,7 +9206,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { if (this_._internal_flow() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -11987,7 +9215,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string authorization_url = 6; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { if (!this_._internal_authorization_url().empty()) { const ::std::string& _s = this_._internal_authorization_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -11997,7 +9225,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string token_url = 7; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { if (!this_._internal_token_url().empty()) { const ::std::string& _s = this_._internal_token_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -12006,38 +9234,37 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } } + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 8, *this_._impl_.scopes_, this_._impl_.scopes_->GetCachedSize(), target, stream); } // map extensions = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -12066,72 +9293,72 @@ ::size_t SecurityScheme::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); + { + // map extensions = 9; + { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); + } + } + } cached_has_bits = this_._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if ((cached_has_bits & 0x000000ffu) != 0) { // string description = 2; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string name = 3; - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string authorization_url = 6; - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!this_._internal_authorization_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_authorization_url()); } } // string token_url = 7; - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!this_._internal_token_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_token_url()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scopes_); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (this_._internal_type() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (this_._internal_in() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_in()); - } - } - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - if (CheckHasBit(cached_has_bits, 0x00000080U)) { - if (this_._internal_flow() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this_._internal_flow()); - } - } - } - { - // map extensions = 9; - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_in()); + } + } + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + if ((cached_has_bits & 0x00000080u) != 0) { + if (this_._internal_flow() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this_._internal_flow()); } } } @@ -12139,22 +9366,19 @@ ::size_t SecurityScheme::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } ::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; - (void)cached_has_bits; + (void) cached_has_bits; + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if ((cached_has_bits & 0x000000ffu) != 0) { + if ((cached_has_bits & 0x00000001u) != 0) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -12163,7 +9387,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if ((cached_has_bits & 0x00000002u) != 0) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -12172,7 +9396,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if ((cached_has_bits & 0x00000004u) != 0) { if (!from._internal_authorization_url().empty()) { _this->_internal_set_authorization_url(from._internal_authorization_url()); } else { @@ -12181,7 +9405,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if ((cached_has_bits & 0x00000008u) != 0) { if (!from._internal_token_url().empty()) { _this->_internal_set_token_url(from._internal_token_url()); } else { @@ -12190,7 +9414,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if ((cached_has_bits & 0x00000010u) != 0) { ABSL_DCHECK(from._impl_.scopes_ != nullptr); if (_this->_impl_.scopes_ == nullptr) { _this->_impl_.scopes_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.scopes_); @@ -12198,32 +9422,28 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, _this->_impl_.scopes_->MergeFrom(*from._impl_.scopes_); } } - if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if ((cached_has_bits & 0x00000020u) != 0) { if (from._internal_type() != 0) { _this->_impl_.type_ = from._impl_.type_; } } - if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if ((cached_has_bits & 0x00000040u) != 0) { if (from._internal_in() != 0) { _this->_impl_.in_ = from._impl_.in_; } } - if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if ((cached_has_bits & 0x00000080u) != 0) { if (from._internal_flow() != 0) { _this->_impl_.flow_ = from._impl_.flow_; } } } - if (CheckHasBit(cached_has_bits, 0x00000100U)) { - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); - } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityScheme::CopyFrom(const SecurityScheme& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) if (&from == this) return; Clear(); MergeFrom(from); @@ -12236,6 +9456,7 @@ void SecurityScheme::InternalSwap(SecurityScheme* PROTOBUF_RESTRICT PROTOBUF_NON 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_, &other->_impl_.description_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_url_, &other->_impl_.authorization_url_, arena); @@ -12246,7 +9467,6 @@ void SecurityScheme::InternalSwap(SecurityScheme* PROTOBUF_RESTRICT PROTOBUF_NON - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_)>( reinterpret_cast(&_impl_.scopes_), reinterpret_cast(&other->_impl_.scopes_)); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata SecurityScheme::GetMetadata() const { @@ -12254,9 +9474,13 @@ ::google::protobuf::Metadata SecurityScheme::GetMetadata() const { } // =================================================================== +class SecurityRequirement_SecurityRequirementValue::_Internal { + public: +}; + SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_get_class_data()) { + : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12264,25 +9488,17 @@ SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequir // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - scope_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() - , from.scope_ - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue& from_msg) + : scope_{visibility, arena, from.scope_}, + _cached_size_{0} {} SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement_SecurityRequirementValue& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_get_class_data()) { - + : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12295,14 +9511,10 @@ SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequir // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : scope_{visibility, arena}, + _cached_size_{0} {} inline void SecurityRequirement_SecurityRequirementValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -12313,18 +9525,58 @@ SecurityRequirement_SecurityRequirementValue::~SecurityRequirement_SecurityRequi } inline void SecurityRequirement_SecurityRequirementValue::SharedDtor(MessageLite& self) { SecurityRequirement_SecurityRequirementValue& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement_SecurityRequirementValue(arena); +} +constexpr auto SecurityRequirement_SecurityRequirementValue::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_) + + decltype(SecurityRequirement_SecurityRequirementValue::_impl_.scope_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::ZeroInit( + sizeof(SecurityRequirement_SecurityRequirementValue), alignof(SecurityRequirement_SecurityRequirementValue), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SecurityRequirement_SecurityRequirementValue::PlacementNew_, + sizeof(SecurityRequirement_SecurityRequirementValue), + alignof(SecurityRequirement_SecurityRequirementValue)); + } +} +constexpr auto SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityRequirement_SecurityRequirementValue_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityRequirement_SecurityRequirementValue::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement_SecurityRequirementValue::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement_SecurityRequirementValue::ByteSizeLong, + &SecurityRequirement_SecurityRequirementValue::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._cached_size_), + false, + }, + &SecurityRequirement_SecurityRequirementValue::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_ = - SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_(SecurityRequirement_SecurityRequirementValue_globals_._default); + SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::GetClassData() const { @@ -12332,21 +9584,43 @@ SecurityRequirement_SecurityRequirementValue::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_SecurityRequirementValue_class_data_.tc_table); return SecurityRequirement_SecurityRequirementValue_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityRequirement_SecurityRequirementValue::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementValue_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_SecurityRequirementValue_globals_)); - return SecurityRequirement_SecurityRequirementValue_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement_SecurityRequirementValue::ParseTableT_ - SecurityRequirement_SecurityRequirementValue::_table_ = - SecurityRequirement_SecurityRequirementValue::InternalGenerateParseTable_(SecurityRequirement_SecurityRequirementValue_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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" + }}, +}; PROTOBUF_NOINLINE void SecurityRequirement_SecurityRequirementValue::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12354,11 +9628,7 @@ PROTOBUF_NOINLINE void SecurityRequirement_SecurityRequirementValue::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.scope_.Clear(); - } - _impl_._has_bits_.Clear(); + _impl_.scope_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -12373,22 +9643,16 @@ ::uint8_t* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::_Inter ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityRequirement_SecurityRequirementValue& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@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; - cached_has_bits = this_._impl_._has_bits_[0]; // repeated string scope = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - for (int i = 0, n = this_._internal_scope_size(); i < n; ++i) { - 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); - } + for (int i = 0, n = this_._internal_scope_size(); i < n; ++i) { + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -12417,8 +9681,7 @@ ::size_t SecurityRequirement_SecurityRequirementValue::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // repeated string scope = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_scope().size()); for (int i = 0, n = this_._internal_scope().size(); i < n; ++i) { @@ -12431,32 +9694,20 @@ ::size_t SecurityRequirement_SecurityRequirementValue::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityRequirement_SecurityRequirementValue::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } - ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_internal_mutable_scope()->InternalMergeFromWithArena( - ::google::protobuf::MessageLite::internal_visibility(), arena, - from._internal_scope()); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_internal_mutable_scope()->MergeFrom(from._internal_scope()); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequirement_SecurityRequirementValue& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) if (&from == this) return; Clear(); MergeFrom(from); @@ -12466,7 +9717,6 @@ void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequir void SecurityRequirement_SecurityRequirementValue::InternalSwap(SecurityRequirement_SecurityRequirementValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.scope_.InternalSwap(&other->_impl_.scope_); } @@ -12476,46 +9726,111 @@ ::google::protobuf::Metadata SecurityRequirement_SecurityRequirementValue::GetMe // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() : SuperType(SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data()) {} +SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() + : SuperType(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) {} SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() : SuperType() {} SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement_SecurityRequirementEntry_DoNotUse(arena); +} +constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementEntry_DoNotUse), + alignof(SecurityRequirement_SecurityRequirementEntry_DoNotUse)); +} +constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityRequirement_SecurityRequirementEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement_SecurityRequirementEntry_DoNotUse::SharedDtor, + static_cast(&SecurityRequirement_SecurityRequirementEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &SecurityRequirement_SecurityRequirementEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_ = - SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_(SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_._default); + SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.tc_table); return SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_)); - return SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement_SecurityRequirementEntry_DoNotUse::ParseTableT_ - SecurityRequirement_SecurityRequirementEntry_DoNotUse::_table_ = - SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateParseTable_(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 1, 98, 2> +SecurityRequirement_SecurityRequirementEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._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), + SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, + }}, + {{ + "\126\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry" + "key" + }}, +}; // =================================================================== +class SecurityRequirement::_Internal { + public: +}; + SecurityRequirement::SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_get_class_data()) { + : ::google::protobuf::Message(arena, SecurityRequirement_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12523,25 +9838,17 @@ SecurityRequirement::SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NUL // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - security_requirement_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() - , from.security_requirement_ - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& from_msg) + : security_requirement_{visibility, arena, from.security_requirement_}, + _cached_size_{0} {} SecurityRequirement::SecurityRequirement( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_get_class_data()) { - + : ::google::protobuf::Message(arena, SecurityRequirement_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12554,14 +9861,10 @@ SecurityRequirement::SecurityRequirement( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - security_requirement_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : security_requirement_{visibility, arena}, + _cached_size_{0} {} inline void SecurityRequirement::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -12572,18 +9875,62 @@ SecurityRequirement::~SecurityRequirement() { } inline void SecurityRequirement::SharedDtor(MessageLite& self) { SecurityRequirement& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL SecurityRequirement::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement(arena); +} +constexpr auto SecurityRequirement::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_.security_requirement_) + + decltype(SecurityRequirement::_impl_.security_requirement_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_.security_requirement_) + + decltype(SecurityRequirement::_impl_.security_requirement_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(SecurityRequirement), alignof(SecurityRequirement), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&SecurityRequirement::PlacementNew_, + sizeof(SecurityRequirement), + alignof(SecurityRequirement)); + } +} +constexpr auto SecurityRequirement::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_SecurityRequirement_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &SecurityRequirement::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement::ByteSizeLong, + &SecurityRequirement::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._cached_size_), + false, + }, + &SecurityRequirement::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_ = - SecurityRequirement::InternalGenerateClassData_(SecurityRequirement_globals_._default); + SecurityRequirement::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement::GetClassData() const { @@ -12591,21 +9938,46 @@ SecurityRequirement::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_class_data_.tc_table); return SecurityRequirement_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -SecurityRequirement::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_globals_)); - return SecurityRequirement_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement::ParseTableT_ - SecurityRequirement::_table_ = - SecurityRequirement::InternalGenerateParseTable_(SecurityRequirement_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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(1, 0, 0, + 9, 11, + 0)}, + {::_pbi::TcParser::GetTable<::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" + }}, +}; PROTOBUF_NOINLINE void SecurityRequirement::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12613,11 +9985,7 @@ PROTOBUF_NOINLINE void SecurityRequirement::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.security_requirement_.Clear(); - } - _impl_._has_bits_.Clear(); + _impl_.security_requirement_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -12632,39 +10000,33 @@ ::uint8_t* PROTOBUF_NONNULL SecurityRequirement::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityRequirement& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // map security_requirement = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_security_requirement().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_MESSAGE>; - const auto& field = this_._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()), + if (!this_._internal_security_requirement().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); - } } } } @@ -12695,12 +10057,11 @@ ::size_t SecurityRequirement::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map security_requirement = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_security_requirement_size()); for (const auto& entry : this_._internal_security_requirement()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -12710,29 +10071,20 @@ ::size_t SecurityRequirement::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityRequirement::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) if (&from == this) return; Clear(); MergeFrom(from); @@ -12742,7 +10094,6 @@ void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { void SecurityRequirement::InternalSwap(SecurityRequirement* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.security_requirement_.InternalSwap(&other->_impl_.security_requirement_); } @@ -12752,46 +10103,110 @@ ::google::protobuf::Metadata SecurityRequirement::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() : SuperType(Scopes_ScopeEntry_DoNotUse_get_class_data()) {} +Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() + : SuperType(Scopes_ScopeEntry_DoNotUse_class_data_.base()) {} Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Scopes_ScopeEntry_DoNotUse_get_class_data()) {} + : SuperType(arena, Scopes_ScopeEntry_DoNotUse_class_data_.base()) {} #else // PROTOBUF_CUSTOM_VTABLE Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() : SuperType() {} Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Scopes_ScopeEntry_DoNotUse(arena); +} +constexpr auto Scopes_ScopeEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes_ScopeEntry_DoNotUse), + alignof(Scopes_ScopeEntry_DoNotUse)); +} +constexpr auto Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Scopes_ScopeEntry_DoNotUse_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Scopes_ScopeEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Scopes_ScopeEntry_DoNotUse::SharedDtor, + static_cast(&Scopes_ScopeEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._cached_size_), + false, + }, + &Scopes_ScopeEntry_DoNotUse::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_ = - Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_(Scopes_ScopeEntry_DoNotUse_globals_._default); + Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_(); -// including ~ all the vtables and everything they use become part -// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_ScopeEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Scopes_ScopeEntry_DoNotUse_class_data_.tc_table); return Scopes_ScopeEntry_DoNotUse_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Scopes_ScopeEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_ScopeEntry_DoNotUse_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Scopes_ScopeEntry_DoNotUse_globals_)); - return Scopes_ScopeEntry_DoNotUse_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Scopes_ScopeEntry_DoNotUse::ParseTableT_ - Scopes_ScopeEntry_DoNotUse::_table_ = - Scopes_ScopeEntry_DoNotUse::InternalGenerateParseTable_(Scopes_ScopeEntry_DoNotUse_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 +const ::_pbi::TcParseTable<1, 2, 0, 76, 2> +Scopes_ScopeEntry_DoNotUse::_table_ = { + { + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._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 + Scopes_ScopeEntry_DoNotUse_class_data_.base(), + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, + (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\73\3\5\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry" + "key" + "value" + }}, +}; // =================================================================== +class Scopes::_Internal { + public: +}; + Scopes::Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Scopes_get_class_data()) { + : ::google::protobuf::Message(arena, Scopes_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12799,25 +10214,17 @@ Scopes::Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& from_msg) - : _has_bits_{from._has_bits_}, - _cached_size_{0}, - scope_ { - visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() - , from.scope_ - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& from_msg) + : scope_{visibility, arena, from.scope_}, + _cached_size_{0} {} Scopes::Scopes( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Scopes& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Scopes_get_class_data()) { - + : ::google::protobuf::Message(arena, Scopes_class_data_.base()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -12830,14 +10237,10 @@ Scopes::Scopes( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( - [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, - [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : _cached_size_{0}, - scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< - ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, - PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() - } - {} + ::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : scope_{visibility, arena}, + _cached_size_{0} {} inline void Scopes::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -12848,18 +10251,62 @@ Scopes::~Scopes() { } inline void Scopes::SharedDtor(MessageLite& self) { Scopes& this_ = static_cast(self); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -#ifndef PROTOBUF_MESSAGE_GLOBALS +inline void* PROTOBUF_NONNULL Scopes::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Scopes(arena); +} +constexpr auto Scopes::InternalNewImpl_() { + constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ + PROTOBUF_FIELD_OFFSET(Scopes, _impl_.scope_) + + decltype(Scopes::_impl_.scope_):: + InternalGetArenaOffset( + ::google::protobuf::Message::internal_visibility()), + PROTOBUF_FIELD_OFFSET(Scopes, _impl_.scope_) + + decltype(Scopes::_impl_.scope_):: + InternalGetArenaOffsetAlt( + ::google::protobuf::Message::internal_visibility()), + }); + if (arena_bits.has_value()) { + return ::google::protobuf::internal::MessageCreator::CopyInit( + sizeof(Scopes), alignof(Scopes), *arena_bits); + } else { + return ::google::protobuf::internal::MessageCreator(&Scopes::PlacementNew_, + sizeof(Scopes), + alignof(Scopes)); + } +} +constexpr auto Scopes::InternalGenerateClassData_() { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &_Scopes_default_instance_._instance, + &_table_.header, + nullptr, // OnDemandRegisterArenaDtor + nullptr, // IsInitialized + &Scopes::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Scopes::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Scopes::ByteSizeLong, + &Scopes::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Scopes, _impl_._cached_size_), + false, + }, + &Scopes::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker + }; +} + PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Scopes_class_data_ = - Scopes::InternalGenerateClassData_(Scopes_globals_._default); + Scopes::InternalGenerateClassData_(); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Scopes::GetClassData() const { @@ -12867,21 +10314,45 @@ Scopes::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Scopes_class_data_.tc_table); return Scopes_class_data_.base(); } -#else -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Scopes::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_globals_); - ::google::protobuf::internal::PrefetchToLocalCache( - ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Scopes_globals_)); - return Scopes_globals_.GetClassData(); -} -#endif // !PROTOBUF_MESSAGE_GLOBALS -#ifndef PROTOBUF_MESSAGE_GLOBALS -PROTOBUF_CONSTINIT -PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Scopes::ParseTableT_ - Scopes::_table_ = - Scopes::InternalGenerateParseTable_(Scopes_class_data_.base()); -#endif // !PROTOBUF_MESSAGE_GLOBALS +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_class_data_.base(), + nullptr, // post_loop_handler + ::_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(1, 0, 0, + 9, 9, + 0)}, + }}, + {{ + "\60\5\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Scopes" + "scope" + }}, +}; PROTOBUF_NOINLINE void Scopes::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -12889,11 +10360,7 @@ PROTOBUF_NOINLINE void Scopes::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - cached_has_bits = _impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _impl_.scope_.Clear(); - } - _impl_._has_bits_.Clear(); + _impl_.scope_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -12908,45 +10375,39 @@ ::uint8_t* PROTOBUF_NONNULL Scopes::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Scopes& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - this_.CheckHasBitConsistency(); - } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; - cached_has_bits = this_._impl_._has_bits_[0]; // map scope = 1; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - if (!this_._internal_scope().empty()) { - using MapType = ::google::protobuf::Map<::std::string, ::std::string>; - using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, - _pbi::WireFormatLite::TYPE_STRING, - _pbi::WireFormatLite::TYPE_STRING>; - const auto& field = this_._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()), + if (!this_._internal_scope().empty()) { + using MapType = ::google::protobuf::Map; + using WireHelper = _pbi::MapEntryFuncs; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); - } } } } @@ -12977,12 +10438,11 @@ ::size_t Scopes::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map scope = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_scope_size()); for (const auto& entry : this_._internal_scope()) { - total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, + total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -12992,29 +10452,20 @@ ::size_t Scopes::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Scopes::MergeImpl(::google::protobuf::MessageLite& to_msg, - const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); - if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { - from.CheckHasBitConsistency(); - } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void)cached_has_bits; + (void) cached_has_bits; - cached_has_bits = from._impl_._has_bits_[0]; - if (CheckHasBit(cached_has_bits, 0x00000001U)) { - _this->_impl_.scope_.MergeFrom(from._impl_.scope_); - } - _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( - from._internal_metadata_); + _this->_impl_.scope_.MergeFrom(from._impl_.scope_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); } void Scopes::CopyFrom(const Scopes& from) { - // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) +// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) if (&from == this) return; Clear(); MergeFrom(from); @@ -13024,7 +10475,6 @@ void Scopes::CopyFrom(const Scopes& from) { void Scopes::InternalSwap(Scopes* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.scope_.InternalSwap(&other->_impl_.scope_); } From 4f1cd60794453564730033a5a3e259119caf0b3d Mon Sep 17 00:00:00 2001 From: Induri Reddy Date: Wed, 5 Aug 2026 06:35:06 +0000 Subject: [PATCH 4/4] Regenerate C++ SDK files with updated protobuf --- sdks/cpp/include/agones/sdk.pb.h | 1862 ++- sdks/cpp/include/google/api/annotations.pb.h | 9 +- sdks/cpp/include/google/api/http.pb.h | 564 +- .../options/annotations.pb.h | 21 +- .../options/openapiv2.pb.h | 4140 +++--- sdks/cpp/src/agones/sdk.pb.cc | 5506 ++++--- sdks/cpp/src/google/annotations.pb.cc | 15 +- sdks/cpp/src/google/http.pb.cc | 1203 +- .../protoc-gen-openapiv2/annotations.pb.cc | 23 +- .../src/protoc-gen-openapiv2/openapiv2.pb.cc | 12408 ++++++++++------ 10 files changed, 15307 insertions(+), 10444 deletions(-) diff --git a/sdks/cpp/include/agones/sdk.pb.h b/sdks/cpp/include/agones/sdk.pb.h index 2699f3b47d..73f2f66711 100644 --- a/sdks/cpp/include/agones/sdk.pb.h +++ b/sdks/cpp/include/agones/sdk.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: sdk.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #ifndef sdk_2eproto_2epb_2eh #define sdk_2eproto_2epb_2eh @@ -26,8 +26,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6031001 +#if PROTOBUF_VERSION != 7035001 #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" @@ -78,69 +79,133 @@ namespace agones { namespace dev { namespace sdk { class Duration; -struct DurationDefaultTypeInternal; -AGONES_EXPORT extern DurationDefaultTypeInternal _Duration_default_instance_; +struct DurationGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern DurationGlobalsTypeInternal Duration_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Duration_class_data_; +#else +AGONES_EXPORT extern const DurationGlobalsTypeInternal Duration_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Empty; -struct EmptyDefaultTypeInternal; -AGONES_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_; +struct EmptyGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern EmptyGlobalsTypeInternal Empty_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; +#else +AGONES_EXPORT extern const EmptyGlobalsTypeInternal Empty_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer; -struct GameServerDefaultTypeInternal; -AGONES_EXPORT extern GameServerDefaultTypeInternal _GameServer_default_instance_; +struct GameServerGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServerGlobalsTypeInternal GameServer_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_class_data_; +#else +AGONES_EXPORT extern const GameServerGlobalsTypeInternal GameServer_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta; -struct GameServer_ObjectMetaDefaultTypeInternal; -AGONES_EXPORT extern GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; +struct GameServer_ObjectMetaGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_; +#else +AGONES_EXPORT extern const GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse; -struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; +struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_ObjectMeta_LabelsEntry_DoNotUse; -struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; +struct GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Spec; -struct GameServer_SpecDefaultTypeInternal; -AGONES_EXPORT extern GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; +struct GameServer_SpecGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_; +#else +AGONES_EXPORT extern const GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Spec_Health; -struct GameServer_Spec_HealthDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; +struct GameServer_Spec_HealthGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_; +#else +AGONES_EXPORT extern const GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status; -struct GameServer_StatusDefaultTypeInternal; -AGONES_EXPORT extern GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; +struct GameServer_StatusGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_; +#else +AGONES_EXPORT extern const GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_Address; -struct GameServer_Status_AddressDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; +struct GameServer_Status_AddressGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_CounterStatus; -struct GameServer_Status_CounterStatusDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; +struct GameServer_Status_CounterStatusGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_CountersEntry_DoNotUse; -struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal _GameServer_Status_CountersEntry_DoNotUse_default_instance_; +struct GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_ListStatus; -struct GameServer_Status_ListStatusDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; +struct GameServer_Status_ListStatusGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_ListsEntry_DoNotUse; -struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal _GameServer_Status_ListsEntry_DoNotUse_default_instance_; +struct GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class GameServer_Status_Port; -struct GameServer_Status_PortDefaultTypeInternal; -AGONES_EXPORT extern GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; +struct GameServer_Status_PortGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_; +#else +AGONES_EXPORT extern const GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class KeyValue; -struct KeyValueDefaultTypeInternal; -AGONES_EXPORT extern KeyValueDefaultTypeInternal _KeyValue_default_instance_; +struct KeyValueGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern KeyValueGlobalsTypeInternal KeyValue_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_; +#else +AGONES_EXPORT extern const KeyValueGlobalsTypeInternal KeyValue_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace sdk } // namespace dev } // namespace agones @@ -158,25 +223,26 @@ namespace sdk { // ------------------------------------------------------------------- -class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED KeyValue final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.KeyValue) */ { public: inline KeyValue() : KeyValue(nullptr) {} ~KeyValue() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(KeyValue* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(KeyValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(KeyValue)); } #endif template - explicit PROTOBUF_CONSTEXPR KeyValue(::google::protobuf::internal::ConstantInitialized); + explicit constexpr KeyValue(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline KeyValue(const KeyValue& from) : KeyValue(nullptr, from) {} - inline KeyValue(KeyValue&& from) noexcept - : KeyValue(nullptr, ::std::move(from)) {} + inline KeyValue(KeyValue&& from) noexcept : KeyValue(nullptr, ::std::move(from)) {} inline KeyValue& operator=(const KeyValue& from) { CopyFrom(from); return *this; @@ -191,27 +257,27 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const KeyValue& default_instance() { - return *reinterpret_cast( - &_KeyValue_default_instance_); + [[nodiscard]] static const KeyValue& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&KeyValue_globals_); } static constexpr int kIndexInFileMessages = 1; friend void swap(KeyValue& a, KeyValue& b) { a.Swap(&b); } @@ -231,7 +297,8 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - KeyValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] KeyValue* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -244,31 +311,33 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -279,7 +348,6 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.KeyValue"; } - protected: explicit KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeyValue& from); KeyValue( @@ -294,9 +362,11 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -306,7 +376,7 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message }; // string key = 1; void clear_key() ; - const ::std::string& key() const; + [[nodiscard]] const ::std::string& key() const; template void set_key(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_key(); @@ -321,7 +391,7 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message public: // string value = 2; void clear_value() ; - const ::std::string& value() const; + [[nodiscard]] const ::std::string& value() const; template void set_value(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_value(); @@ -337,20 +407,27 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:agones.dev.sdk.KeyValue) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 40, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 40, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -367,29 +444,28 @@ class AGONES_EXPORT KeyValue final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_Port final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.Port) */ { public: inline GameServer_Status_Port() : GameServer_Status_Port(nullptr) {} ~GameServer_Status_Port() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_Port* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Status_Port* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_Port)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Status_Port(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_Port(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(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; @@ -404,27 +480,27 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_Port& default_instance() { - return *reinterpret_cast( - &_GameServer_Status_Port_default_instance_); + [[nodiscard]] static const GameServer_Status_Port& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_Port_globals_); } static constexpr int kIndexInFileMessages = 9; friend void swap(GameServer_Status_Port& a, GameServer_Status_Port& b) { a.Swap(&b); } @@ -444,7 +520,8 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me // implements Message ---------------------------------------------- - GameServer_Status_Port* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Status_Port* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -457,31 +534,33 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -492,7 +571,6 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Port"; } - protected: explicit GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Port& from); GameServer_Status_Port( @@ -507,9 +585,11 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -519,7 +599,7 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me }; // string name = 1; void clear_name() ; - const ::std::string& name() const; + [[nodiscard]] const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -534,7 +614,7 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me public: // int32 port = 2; void clear_port() ; - ::int32_t port() const; + [[nodiscard]] ::int32_t port() const; void set_port(::int32_t value); private: @@ -545,20 +625,27 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Port) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 50, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 50, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -575,29 +662,28 @@ class AGONES_EXPORT GameServer_Status_Port final : public ::google::protobuf::Me union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_ListStatus final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.ListStatus) */ { public: inline GameServer_Status_ListStatus() : GameServer_Status_ListStatus(nullptr) {} ~GameServer_Status_ListStatus() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_ListStatus* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Status_ListStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_ListStatus)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Status_ListStatus(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_ListStatus(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(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; @@ -612,27 +698,27 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_ListStatus& default_instance() { - return *reinterpret_cast( - &_GameServer_Status_ListStatus_default_instance_); + [[nodiscard]] static const GameServer_Status_ListStatus& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_ListStatus_globals_); } static constexpr int kIndexInFileMessages = 11; friend void swap(GameServer_Status_ListStatus& a, GameServer_Status_ListStatus& b) { a.Swap(&b); } @@ -652,7 +738,8 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob // implements Message ---------------------------------------------- - GameServer_Status_ListStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Status_ListStatus* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -665,31 +752,33 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -700,7 +789,6 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.ListStatus"; } - protected: explicit GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_ListStatus& from); GameServer_Status_ListStatus( @@ -715,9 +803,11 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -726,21 +816,26 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob kCapacityFieldNumber = 1, }; // repeated string values = 2; - int values_size() const; + [[nodiscard]] int values_size() + const; private: int _internal_values_size() const; public: void clear_values() ; - const ::std::string& values(int index) const; + [[nodiscard]] const ::std::string& values(int index) const; ::std::string* PROTOBUF_NONNULL mutable_values(int index); template void set_values(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_values(); template void add_values(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_values(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + values() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_values(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_values() const; @@ -749,7 +844,7 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob public: // int64 capacity = 1; void clear_capacity() ; - ::int64_t capacity() const; + [[nodiscard]] ::int64_t capacity() const; void set_capacity(::int64_t value); private: @@ -760,20 +855,27 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.ListStatus) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 58, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 58, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -790,29 +892,28 @@ class AGONES_EXPORT GameServer_Status_ListStatus final : public ::google::protob union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Status_CounterStatus final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Status.CounterStatus) */ { public: inline GameServer_Status_CounterStatus() : GameServer_Status_CounterStatus(nullptr) {} ~GameServer_Status_CounterStatus() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_CounterStatus* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Status_CounterStatus* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_CounterStatus)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_CounterStatus(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(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; @@ -827,27 +928,27 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_CounterStatus& default_instance() { - return *reinterpret_cast( - &_GameServer_Status_CounterStatus_default_instance_); + [[nodiscard]] static const GameServer_Status_CounterStatus& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_CounterStatus_globals_); } static constexpr int kIndexInFileMessages = 10; friend void swap(GameServer_Status_CounterStatus& a, GameServer_Status_CounterStatus& b) { a.Swap(&b); } @@ -867,7 +968,8 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro // implements Message ---------------------------------------------- - GameServer_Status_CounterStatus* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Status_CounterStatus* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -880,31 +982,33 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -915,7 +1019,6 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.CounterStatus"; } - protected: explicit GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_CounterStatus& from); GameServer_Status_CounterStatus( @@ -930,9 +1033,11 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -942,7 +1047,7 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro }; // int64 count = 1; void clear_count() ; - ::int64_t count() const; + [[nodiscard]] ::int64_t count() const; void set_count(::int64_t value); private: @@ -952,7 +1057,7 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro public: // int64 capacity = 2; void clear_capacity() ; - ::int64_t capacity() const; + [[nodiscard]] ::int64_t capacity() const; void set_capacity(::int64_t value); private: @@ -963,20 +1068,27 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.CounterStatus) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -993,29 +1105,28 @@ class AGONES_EXPORT GameServer_Status_CounterStatus final : public ::google::pro union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED 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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status_Address* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Status_Address* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status_Address)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Status_Address(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_Address(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(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; @@ -1030,27 +1141,27 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status_Address& default_instance() { - return *reinterpret_cast( - &_GameServer_Status_Address_default_instance_); + [[nodiscard]] static const GameServer_Status_Address& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_Address_globals_); } static constexpr int kIndexInFileMessages = 8; friend void swap(GameServer_Status_Address& a, GameServer_Status_Address& b) { a.Swap(&b); } @@ -1070,7 +1181,8 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: // implements Message ---------------------------------------------- - GameServer_Status_Address* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Status_Address* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1083,31 +1195,33 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1118,7 +1232,6 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status.Address"; } - protected: explicit GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Address& from); GameServer_Status_Address( @@ -1133,9 +1246,11 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1145,7 +1260,7 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: }; // string type = 1; void clear_type() ; - const ::std::string& type() const; + [[nodiscard]] const ::std::string& type() const; template void set_type(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_type(); @@ -1160,7 +1275,7 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: public: // string address = 2; void clear_address() ; - const ::std::string& address() const; + [[nodiscard]] const ::std::string& address() const; template void set_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_address(); @@ -1176,20 +1291,27 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status.Address) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 60, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 60, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1206,29 +1328,28 @@ class AGONES_EXPORT GameServer_Status_Address final : public ::google::protobuf: union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_Spec_Health final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.Spec.Health) */ { public: inline GameServer_Spec_Health() : GameServer_Spec_Health(nullptr) {} ~GameServer_Spec_Health() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Spec_Health* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Spec_Health* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Spec_Health)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Spec_Health(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Spec_Health(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(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; @@ -1243,27 +1364,27 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Spec_Health& default_instance() { - return *reinterpret_cast( - &_GameServer_Spec_Health_default_instance_); + [[nodiscard]] static const GameServer_Spec_Health& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Spec_Health_globals_); } static constexpr int kIndexInFileMessages = 6; friend void swap(GameServer_Spec_Health& a, GameServer_Spec_Health& b) { a.Swap(&b); } @@ -1283,7 +1404,8 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me // implements Message ---------------------------------------------- - GameServer_Spec_Health* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Spec_Health* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1296,31 +1418,33 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1331,7 +1455,6 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec.Health"; } - protected: explicit GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec_Health& from); GameServer_Spec_Health( @@ -1346,9 +1469,11 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1360,7 +1485,7 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me }; // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { void clear_disabled() ; - bool disabled() const; + [[nodiscard]] bool disabled() const; void set_disabled(bool value); private: @@ -1370,7 +1495,7 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me public: // int32 period_seconds = 2; void clear_period_seconds() ; - ::int32_t period_seconds() const; + [[nodiscard]] ::int32_t period_seconds() const; void set_period_seconds(::int32_t value); private: @@ -1380,7 +1505,7 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me public: // int32 failure_threshold = 3; void clear_failure_threshold() ; - ::int32_t failure_threshold() const; + [[nodiscard]] ::int32_t failure_threshold() const; void set_failure_threshold(::int32_t value); private: @@ -1390,7 +1515,7 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me public: // int32 initial_delay_seconds = 4; void clear_initial_delay_seconds() ; - ::int32_t initial_delay_seconds() const; + [[nodiscard]] ::int32_t initial_delay_seconds() const; void set_initial_delay_seconds(::int32_t value); private: @@ -1401,20 +1526,27 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec.Health) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<2, 4, + 0, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 4, - 0, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1433,39 +1565,48 @@ class AGONES_EXPORT GameServer_Spec_Health final : public ::google::protobuf::Me union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_; // ------------------------------------------------------------------- -class GameServer_ObjectMeta_LabelsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; GameServer_ObjectMeta_LabelsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 65, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 65, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1473,38 +1614,48 @@ class GameServer_ObjectMeta_LabelsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 70, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 70, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1512,27 +1663,27 @@ class GameServer_ObjectMeta_AnnotationsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroFieldsBase +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Empty final : public ::google::protobuf::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Empty) */ { public: inline Empty() : Empty(nullptr) {} #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Empty* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Empty* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Empty)); } #endif template - explicit PROTOBUF_CONSTEXPR Empty(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Empty(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Empty(const Empty& from) : Empty(nullptr, from) {} - inline Empty(Empty&& from) noexcept - : Empty(nullptr, ::std::move(from)) {} + inline Empty(Empty&& from) noexcept : Empty(nullptr, ::std::move(from)) {} inline Empty& operator=(const Empty& from) { CopyFrom(from); return *this; @@ -1547,27 +1698,27 @@ class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroField return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Empty& default_instance() { - return *reinterpret_cast( - &_Empty_default_instance_); + [[nodiscard]] static const Empty& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Empty_globals_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Empty& a, Empty& b) { a.Swap(&b); } @@ -1587,20 +1738,17 @@ class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroField // implements Message ---------------------------------------------- - Empty* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Empty* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::internal::ZeroFieldsBase::DefaultConstruct(arena); } using ::google::protobuf::internal::ZeroFieldsBase::CopyFrom; - inline void CopyFrom(const Empty& from) { - ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); - } + inline void CopyFrom(const Empty& from) { ::google::protobuf::internal::ZeroFieldsBase::CopyImpl(*this, from); } using ::google::protobuf::internal::ZeroFieldsBase::MergeFrom; - void MergeFrom(const Empty& from) { - ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); - } + void MergeFrom(const Empty& from) { ::google::protobuf::internal::ZeroFieldsBase::MergeImpl(*this, from); } public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } private: @@ -1608,7 +1756,6 @@ class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroField friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Empty"; } - protected: explicit Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from); Empty( @@ -1623,63 +1770,59 @@ class AGONES_EXPORT Empty final : public ::google::protobuf::internal::ZeroField static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // @@protoc_insertion_point(class_scope:agones.dev.sdk.Empty) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 0, + 0, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 0, - 0, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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* PROTOBUF_NULLABLE arena); - inline explicit Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const Empty& from_msg); - PROTOBUF_TSAN_DECLARE_MEMBER - }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Empty_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Duration final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Duration final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.Duration) */ { public: inline Duration() : Duration(nullptr) {} ~Duration() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Duration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Duration* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Duration)); } #endif template - explicit PROTOBUF_CONSTEXPR Duration(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Duration(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Duration(const Duration& from) : Duration(nullptr, from) {} - inline Duration(Duration&& from) noexcept - : Duration(nullptr, ::std::move(from)) {} + inline Duration(Duration&& from) noexcept : Duration(nullptr, ::std::move(from)) {} inline Duration& operator=(const Duration& from) { CopyFrom(from); return *this; @@ -1694,27 +1837,27 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Duration& default_instance() { - return *reinterpret_cast( - &_Duration_default_instance_); + [[nodiscard]] static const Duration& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Duration_globals_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Duration& a, Duration& b) { a.Swap(&b); } @@ -1734,7 +1877,8 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Duration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Duration* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1747,31 +1891,33 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1782,7 +1928,6 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.Duration"; } - protected: explicit Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Duration& from); Duration( @@ -1797,9 +1942,11 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1808,7 +1955,7 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message }; // int64 seconds = 1; void clear_seconds() ; - ::int64_t seconds() const; + [[nodiscard]] ::int64_t seconds() const; void set_seconds(::int64_t value); private: @@ -1819,20 +1966,27 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:agones.dev.sdk.Duration) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 0, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1848,39 +2002,48 @@ class AGONES_EXPORT Duration final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Duration_class_data_; // ------------------------------------------------------------------- -class GameServer_Status_ListsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; GameServer_Status_ListsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_GameServer_Status_ListsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &GameServer_Status_ListsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 55, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 55, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1888,38 +2051,48 @@ class GameServer_Status_ListsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class GameServer_Status_CountersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; GameServer_Status_CountersEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_GameServer_Status_CountersEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &GameServer_Status_CountersEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_sdk_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 58, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 58, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -1927,28 +2100,28 @@ class GameServer_Status_CountersEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED 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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Spec* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Spec* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Spec)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Spec(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Spec(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(GameServer_Spec&& from) noexcept : GameServer_Spec(nullptr, ::std::move(from)) {} inline GameServer_Spec& operator=(const GameServer_Spec& from) { CopyFrom(from); return *this; @@ -1963,27 +2136,27 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Spec& default_instance() { - return *reinterpret_cast( - &_GameServer_Spec_default_instance_); + [[nodiscard]] static const GameServer_Spec& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Spec_globals_); } static constexpr int kIndexInFileMessages = 7; friend void swap(GameServer_Spec& a, GameServer_Spec& b) { a.Swap(&b); } @@ -2003,7 +2176,8 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GameServer_Spec* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Spec* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2016,31 +2190,33 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2051,7 +2227,6 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Spec"; } - protected: explicit GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec& from); GameServer_Spec( @@ -2066,9 +2241,11 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using Health = GameServer_Spec_Health; @@ -2077,9 +2254,10 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message kHealthFieldNumber = 1, }; // .agones.dev.sdk.GameServer.Spec.Health health = 1; - bool has_health() const; + [[nodiscard]] bool has_health() + const; void clear_health() ; - const ::agones::dev::sdk::GameServer_Spec_Health& health() const; + [[nodiscard]] const ::agones::dev::sdk::GameServer_Spec_Health& health() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE release_health(); ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL mutable_health(); void set_allocated_health(::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE value); @@ -2094,20 +2272,27 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Spec) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 1, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 1, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2123,29 +2308,28 @@ class AGONES_EXPORT GameServer_Spec final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer_ObjectMeta final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer.ObjectMeta) */ { public: inline GameServer_ObjectMeta() : GameServer_ObjectMeta(nullptr) {} ~GameServer_ObjectMeta() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_ObjectMeta* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_ObjectMeta* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_ObjectMeta)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_ObjectMeta(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_ObjectMeta(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(GameServer_ObjectMeta&& from) noexcept : GameServer_ObjectMeta(nullptr, ::std::move(from)) {} inline GameServer_ObjectMeta& operator=(const GameServer_ObjectMeta& from) { CopyFrom(from); return *this; @@ -2160,27 +2344,27 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_ObjectMeta& default_instance() { - return *reinterpret_cast( - &_GameServer_ObjectMeta_default_instance_); + [[nodiscard]] static const GameServer_ObjectMeta& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_ObjectMeta_globals_); } static constexpr int kIndexInFileMessages = 5; friend void swap(GameServer_ObjectMeta& a, GameServer_ObjectMeta& b) { a.Swap(&b); } @@ -2200,7 +2384,8 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes // implements Message ---------------------------------------------- - GameServer_ObjectMeta* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_ObjectMeta* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2213,31 +2398,33 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2248,7 +2435,6 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.ObjectMeta"; } - protected: explicit GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_ObjectMeta& from); GameServer_ObjectMeta( @@ -2263,15 +2449,15 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kAnnotationsFieldNumber = 8, - kLabelsFieldNumber = 9, kNameFieldNumber = 1, kNamespaceFieldNumber = 2, kUidFieldNumber = 3, @@ -2279,40 +2465,12 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes kGenerationFieldNumber = 5, kCreationTimestampFieldNumber = 6, kDeletionTimestampFieldNumber = 7, + kAnnotationsFieldNumber = 8, + kLabelsFieldNumber = 9, }; - // 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* PROTOBUF_NONNULL mutable_annotations(); - - private: - const ::google::protobuf::Map& _internal_annotations() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _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* PROTOBUF_NONNULL mutable_labels(); - - private: - const ::google::protobuf::Map& _internal_labels() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_labels(); - - public: // string name = 1; void clear_name() ; - const ::std::string& name() const; + [[nodiscard]] const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -2327,7 +2485,7 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // string namespace = 2; void clear_namespace_() ; - const ::std::string& namespace_() const; + [[nodiscard]] const ::std::string& namespace_() const; template void set_namespace_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_namespace_(); @@ -2342,7 +2500,7 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // string uid = 3; void clear_uid() ; - const ::std::string& uid() const; + [[nodiscard]] const ::std::string& uid() const; template void set_uid(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_uid(); @@ -2357,7 +2515,7 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // string resource_version = 4; void clear_resource_version() ; - const ::std::string& resource_version() const; + [[nodiscard]] const ::std::string& resource_version() const; template void set_resource_version(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_resource_version(); @@ -2372,7 +2530,7 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // int64 generation = 5; void clear_generation() ; - ::int64_t generation() const; + [[nodiscard]] ::int64_t generation() const; void set_generation(::int64_t value); private: @@ -2382,7 +2540,7 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // int64 creation_timestamp = 6; void clear_creation_timestamp() ; - ::int64_t creation_timestamp() const; + [[nodiscard]] ::int64_t creation_timestamp() const; void set_creation_timestamp(::int64_t value); private: @@ -2392,31 +2550,70 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes public: // int64 deletion_timestamp = 7; void clear_deletion_timestamp() ; - ::int64_t deletion_timestamp() const; + [[nodiscard]] ::int64_t deletion_timestamp() const; void set_deletion_timestamp(::int64_t value); private: ::int64_t _internal_deletion_timestamp() const; void _internal_set_deletion_timestamp(::int64_t value); + public: + // map annotations = 8; + [[nodiscard]] int annotations_size() + const; + private: + int _internal_annotations_size() const; + + public: + void clear_annotations() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& annotations() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_annotations(); + + private: + const ::google::protobuf::Map<::std::string, ::std::string>& _internal_annotations() const; + ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_annotations(); + + public: + // map labels = 9; + [[nodiscard]] int labels_size() + const; + private: + int _internal_labels_size() const; + + public: + void clear_labels() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& labels() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_labels(); + + private: + const ::google::protobuf::Map<::std::string, ::std::string>& _internal_labels() const; + ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_labels(); + public: // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.ObjectMeta) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 9, + 2, 102, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 9, - 2, 102, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2426,14 +2623,6 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes const GameServer_ObjectMeta& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; - ::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_; @@ -2441,34 +2630,35 @@ class AGONES_EXPORT GameServer_ObjectMeta final : public ::google::protobuf::Mes ::int64_t generation_; ::int64_t creation_timestamp_; ::int64_t deletion_timestamp_; + ::google::protobuf::internal::MapField annotations_; + ::google::protobuf::internal::MapField labels_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED 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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer_Status* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer_Status* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer_Status)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer_Status(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer_Status(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(GameServer_Status&& from) noexcept : GameServer_Status(nullptr, ::std::move(from)) {} inline GameServer_Status& operator=(const GameServer_Status& from) { CopyFrom(from); return *this; @@ -2483,27 +2673,27 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer_Status& default_instance() { - return *reinterpret_cast( - &_GameServer_Status_default_instance_); + [[nodiscard]] static const GameServer_Status& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_Status_globals_); } static constexpr int kIndexInFileMessages = 14; friend void swap(GameServer_Status& a, GameServer_Status& b) { a.Swap(&b); } @@ -2523,7 +2713,8 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GameServer_Status* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer_Status* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2536,31 +2727,33 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2571,7 +2764,6 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer.Status"; } - protected: explicit GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status& from); GameServer_Status( @@ -2586,9 +2778,11 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using Address = GameServer_Status_Address; using Port = GameServer_Status_Port; @@ -2598,79 +2792,57 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message // accessors ------------------------------------------------------- enum : int { kPortsFieldNumber = 3, - kCountersFieldNumber = 5, - kListsFieldNumber = 6, kAddressesFieldNumber = 7, kStateFieldNumber = 1, kAddressFieldNumber = 2, + kCountersFieldNumber = 5, + kListsFieldNumber = 6, }; // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - int ports_size() const; + [[nodiscard]] int ports_size() + const; private: int _internal_ports_size() const; public: void clear_ports() ; - ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL mutable_ports(int index); - ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL mutable_ports(); + [[nodiscard]] const ::agones::dev::sdk::GameServer_Status_Port& ports(int index) const; + [[nodiscard]] ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL mutable_ports(int index); + ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL add_ports(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& + ports() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL + mutable_ports(); private: const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& _internal_ports() const; ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL _internal_mutable_ports(); - public: - const ::agones::dev::sdk::GameServer_Status_Port& ports(int index) const; - ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL add_ports(); - const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& ports() const; - // map counters = 5; - int counters_size() const; - private: - int _internal_counters_size() const; - - public: - void clear_counters() ; - const ::google::protobuf::Map& counters() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_counters(); - - private: - const ::google::protobuf::Map& _internal_counters() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_counters(); - - public: - // map lists = 6; - int lists_size() const; - private: - int _internal_lists_size() const; - - public: - void clear_lists() ; - const ::google::protobuf::Map& lists() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_lists(); - - private: - const ::google::protobuf::Map& _internal_lists() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_lists(); public: // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - int addresses_size() const; + [[nodiscard]] int addresses_size() + const; private: int _internal_addresses_size() const; public: void clear_addresses() ; - ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL mutable_addresses(int index); - ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL mutable_addresses(); + [[nodiscard]] const ::agones::dev::sdk::GameServer_Status_Address& addresses(int index) const; + [[nodiscard]] ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL mutable_addresses(int index); + ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL add_addresses(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& + addresses() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL + mutable_addresses(); private: const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& _internal_addresses() const; ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL _internal_mutable_addresses(); + public: - const ::agones::dev::sdk::GameServer_Status_Address& addresses(int index) const; - ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL add_addresses(); - const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& addresses() const; // string state = 1; void clear_state() ; - const ::std::string& state() const; + [[nodiscard]] const ::std::string& state() const; template void set_state(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_state(); @@ -2685,7 +2857,7 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message public: // string address = 2; void clear_address() ; - const ::std::string& address() const; + [[nodiscard]] const ::std::string& address() const; template void set_address(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_address(); @@ -2697,24 +2869,63 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message PROTOBUF_ALWAYS_INLINE void _internal_set_address(const ::std::string& value); ::std::string* PROTOBUF_NONNULL _internal_mutable_address(); + public: + // map counters = 5; + [[nodiscard]] int counters_size() + const; + private: + int _internal_counters_size() const; + + public: + void clear_counters() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& counters() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL mutable_counters(); + + private: + const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& _internal_counters() const; + ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL _internal_mutable_counters(); + + public: + // map lists = 6; + [[nodiscard]] int lists_size() + const; + private: + int _internal_lists_size() const; + + public: + void clear_lists() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& lists() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL mutable_lists(); + + private: + const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& _internal_lists() const; + ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL _internal_mutable_lists(); + public: // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer.Status) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 6, + 6, 66, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 6, - 6, 66, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2725,45 +2936,38 @@ class AGONES_EXPORT GameServer_Status final : public ::google::protobuf::Message ::google::protobuf::internal::HasBits<1> _has_bits_; ::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_; + ::google::protobuf::internal::MapField counters_; + ::google::protobuf::internal::MapField lists_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_sdk_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT GameServer final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED GameServer final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:agones.dev.sdk.GameServer) */ { public: inline GameServer() : GameServer(nullptr) {} ~GameServer() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(GameServer* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(GameServer* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(GameServer)); } #endif template - explicit PROTOBUF_CONSTEXPR GameServer(::google::protobuf::internal::ConstantInitialized); + explicit constexpr GameServer(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline GameServer(const GameServer& from) : GameServer(nullptr, from) {} - inline GameServer(GameServer&& from) noexcept - : GameServer(nullptr, ::std::move(from)) {} + inline GameServer(GameServer&& from) noexcept : GameServer(nullptr, ::std::move(from)) {} inline GameServer& operator=(const GameServer& from) { CopyFrom(from); return *this; @@ -2778,27 +2982,27 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const GameServer& default_instance() { - return *reinterpret_cast( - &_GameServer_default_instance_); + [[nodiscard]] static const GameServer& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&GameServer_globals_); } static constexpr int kIndexInFileMessages = 15; friend void swap(GameServer& a, GameServer& b) { a.Swap(&b); } @@ -2818,7 +3022,8 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - GameServer* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] GameServer* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2831,31 +3036,33 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2866,7 +3073,6 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "agones.dev.sdk.GameServer"; } - protected: explicit GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer& from); GameServer( @@ -2881,9 +3087,11 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using ObjectMeta = GameServer_ObjectMeta; using Spec = GameServer_Spec; @@ -2896,9 +3104,10 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message kStatusFieldNumber = 3, }; // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - bool has_object_meta() const; + [[nodiscard]] bool has_object_meta() + const; void clear_object_meta() ; - const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta() const; + [[nodiscard]] const ::agones::dev::sdk::GameServer_ObjectMeta& object_meta() const; [[nodiscard]] ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE release_object_meta(); ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL mutable_object_meta(); void set_allocated_object_meta(::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE value); @@ -2911,9 +3120,10 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message public: // .agones.dev.sdk.GameServer.Spec spec = 2; - bool has_spec() const; + [[nodiscard]] bool has_spec() + const; void clear_spec() ; - const ::agones::dev::sdk::GameServer_Spec& spec() const; + [[nodiscard]] const ::agones::dev::sdk::GameServer_Spec& spec() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE release_spec(); ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL mutable_spec(); void set_allocated_spec(::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE value); @@ -2926,9 +3136,10 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message public: // .agones.dev.sdk.GameServer.Status status = 3; - bool has_status() const; + [[nodiscard]] bool has_status() + const; void clear_status() ; - const ::agones::dev::sdk::GameServer_Status& status() const; + [[nodiscard]] const ::agones::dev::sdk::GameServer_Status& status() const; [[nodiscard]] ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE release_status(); ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL mutable_status(); void set_allocated_status(::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE value); @@ -2943,20 +3154,27 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:agones.dev.sdk.GameServer) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<2, 3, + 3, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 3, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2975,8 +3193,6 @@ class AGONES_EXPORT GameServer final : public ::google::protobuf::Message friend struct ::TableStruct_sdk_2eproto; }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServer_class_data_; - // =================================================================== @@ -3001,7 +3217,7 @@ AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull GameServe inline void KeyValue::clear_key() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.key_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& KeyValue::key() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3011,12 +3227,13 @@ inline const ::std::string& KeyValue::key() const template PROTOBUF_ALWAYS_INLINE void KeyValue::set_key(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.key_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.key) } inline ::std::string* PROTOBUF_NONNULL KeyValue::mutable_key() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_key(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.key) return _s; @@ -3027,21 +3244,19 @@ inline const ::std::string& KeyValue::_internal_key() const { } inline void KeyValue::_internal_set_key(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.key_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL KeyValue::_internal_mutable_key() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.key_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_key() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.key) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.key_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.key_.Set("", GetArena()); @@ -3051,9 +3266,9 @@ inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_key() { inline void KeyValue::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.key_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.key_.IsDefault()) { @@ -3066,7 +3281,7 @@ inline void KeyValue::set_allocated_key(::std::string* PROTOBUF_NULLABLE value) inline void KeyValue::clear_value() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.value_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& KeyValue::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3076,12 +3291,13 @@ inline const ::std::string& KeyValue::value() const template PROTOBUF_ALWAYS_INLINE void KeyValue::set_value(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.value_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.KeyValue.value) } inline ::std::string* PROTOBUF_NONNULL KeyValue::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_value(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.KeyValue.value) return _s; @@ -3092,21 +3308,19 @@ inline const ::std::string& KeyValue::_internal_value() const { } inline void KeyValue::_internal_set_value(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.value_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL KeyValue::_internal_mutable_value() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.value_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_value() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.KeyValue.value) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.value_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.value_.Set("", GetArena()); @@ -3116,9 +3330,9 @@ inline ::std::string* PROTOBUF_NULLABLE KeyValue::release_value() { inline void KeyValue::set_allocated_value(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.value_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) { @@ -3135,7 +3349,7 @@ inline void KeyValue::set_allocated_value(::std::string* PROTOBUF_NULLABLE value inline void Duration::clear_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.seconds_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::int64_t Duration::seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.Duration.seconds) @@ -3143,7 +3357,7 @@ inline ::int64_t Duration::seconds() const { } inline void Duration::set_seconds(::int64_t value) { _internal_set_seconds(value); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:agones.dev.sdk.Duration.seconds) } inline ::int64_t Duration::_internal_seconds() const { @@ -3167,7 +3381,7 @@ inline void Duration::_internal_set_seconds(::int64_t value) { inline void GameServer_ObjectMeta::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& GameServer_ObjectMeta::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3177,12 +3391,13 @@ inline const ::std::string& GameServer_ObjectMeta::name() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.name) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.name) return _s; @@ -3193,21 +3408,19 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_name() const { } inline void GameServer_ObjectMeta::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -3217,9 +3430,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_name() { inline void GameServer_ObjectMeta::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -3232,7 +3445,7 @@ inline void GameServer_ObjectMeta::set_allocated_name(::std::string* PROTOBUF_NU inline void GameServer_ObjectMeta::clear_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.namespace__.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& GameServer_ObjectMeta::namespace_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3242,12 +3455,13 @@ inline const ::std::string& GameServer_ObjectMeta::namespace_() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_namespace_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.namespace__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.namespace) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_namespace_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_namespace_(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.namespace) return _s; @@ -3258,21 +3472,19 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_namespace_() const } inline void GameServer_ObjectMeta::_internal_set_namespace_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.namespace__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.namespace__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_namespace_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.namespace) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.namespace__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.namespace__.Set("", GetArena()); @@ -3282,9 +3494,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_namespace inline void GameServer_ObjectMeta::set_allocated_namespace_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.namespace__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.namespace__.IsDefault()) { @@ -3297,7 +3509,7 @@ inline void GameServer_ObjectMeta::set_allocated_namespace_(::std::string* PROTO inline void GameServer_ObjectMeta::clear_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.uid_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& GameServer_ObjectMeta::uid() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3307,12 +3519,13 @@ inline const ::std::string& GameServer_ObjectMeta::uid() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_uid(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.uid_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.uid) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_uid() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_uid(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.uid) return _s; @@ -3323,21 +3536,19 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_uid() const { } inline void GameServer_ObjectMeta::_internal_set_uid(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.uid_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.uid_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_uid() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.uid) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.uid_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.uid_.Set("", GetArena()); @@ -3347,9 +3558,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_uid() { inline void GameServer_ObjectMeta::set_allocated_uid(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.uid_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.uid_.IsDefault()) { @@ -3362,7 +3573,7 @@ inline void GameServer_ObjectMeta::set_allocated_uid(::std::string* PROTOBUF_NUL inline void GameServer_ObjectMeta::clear_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.resource_version_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& GameServer_ObjectMeta::resource_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3372,12 +3583,13 @@ inline const ::std::string& GameServer_ObjectMeta::resource_version() const template PROTOBUF_ALWAYS_INLINE void GameServer_ObjectMeta::set_resource_version(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.resource_version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.resource_version) } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_resource_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_resource_version(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.ObjectMeta.resource_version) return _s; @@ -3388,21 +3600,19 @@ inline const ::std::string& GameServer_ObjectMeta::_internal_resource_version() } inline void GameServer_ObjectMeta::_internal_set_resource_version(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; _impl_.resource_version_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; return _impl_.resource_version_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_resource_version() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.ObjectMeta.resource_version) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.resource_version_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.resource_version_.Set("", GetArena()); @@ -3412,9 +3622,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_ObjectMeta::release_resource_ inline void GameServer_ObjectMeta::set_allocated_resource_version(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.resource_version_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.resource_version_.IsDefault()) { @@ -3427,7 +3637,7 @@ inline void GameServer_ObjectMeta::set_allocated_resource_version(::std::string* inline void GameServer_ObjectMeta::clear_generation() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.generation_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline ::int64_t GameServer_ObjectMeta::generation() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.generation) @@ -3435,7 +3645,7 @@ inline ::int64_t GameServer_ObjectMeta::generation() const { } inline void GameServer_ObjectMeta::set_generation(::int64_t value) { _internal_set_generation(value); - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.generation) } inline ::int64_t GameServer_ObjectMeta::_internal_generation() const { @@ -3451,7 +3661,7 @@ inline void GameServer_ObjectMeta::_internal_set_generation(::int64_t value) { inline void GameServer_ObjectMeta::clear_creation_timestamp() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.creation_timestamp_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline ::int64_t GameServer_ObjectMeta::creation_timestamp() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.creation_timestamp) @@ -3459,7 +3669,7 @@ inline ::int64_t GameServer_ObjectMeta::creation_timestamp() const { } inline void GameServer_ObjectMeta::set_creation_timestamp(::int64_t value) { _internal_set_creation_timestamp(value); - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.creation_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_creation_timestamp() const { @@ -3475,7 +3685,7 @@ inline void GameServer_ObjectMeta::_internal_set_creation_timestamp(::int64_t va inline void GameServer_ObjectMeta::clear_deletion_timestamp() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.deletion_timestamp_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline ::int64_t GameServer_ObjectMeta::deletion_timestamp() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.ObjectMeta.deletion_timestamp) @@ -3483,7 +3693,7 @@ inline ::int64_t GameServer_ObjectMeta::deletion_timestamp() const { } inline void GameServer_ObjectMeta::set_deletion_timestamp(::int64_t value) { _internal_set_deletion_timestamp(value); - _impl_._has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.ObjectMeta.deletion_timestamp) } inline ::int64_t GameServer_ObjectMeta::_internal_deletion_timestamp() const { @@ -3505,21 +3715,23 @@ inline int GameServer_ObjectMeta::annotations_size() const { inline void GameServer_ObjectMeta::clear_annotations() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.annotations_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } -inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_annotations() const { +inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::_internal_annotations() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.annotations_.GetMap(); } -inline const ::google::protobuf::Map& GameServer_ObjectMeta::annotations() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::annotations() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.ObjectMeta.annotations) return _internal_annotations(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_annotations() { +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_annotations() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.annotations_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_annotations() +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_annotations() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.annotations) return _internal_mutable_annotations(); } @@ -3534,21 +3746,23 @@ inline int GameServer_ObjectMeta::labels_size() const { inline void GameServer_ObjectMeta::clear_labels() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.labels_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } -inline const ::google::protobuf::Map& GameServer_ObjectMeta::_internal_labels() const { +inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::_internal_labels() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.labels_.GetMap(); } -inline const ::google::protobuf::Map& GameServer_ObjectMeta::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::std::string>& GameServer_ObjectMeta::labels() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.ObjectMeta.labels) return _internal_labels(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_labels() { +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::_internal_mutable_labels() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.labels_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_labels() +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL GameServer_ObjectMeta::mutable_labels() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.ObjectMeta.labels) return _internal_mutable_labels(); } @@ -3561,7 +3775,7 @@ inline ::google::protobuf::Map* PROTOBUF_NONNULL GameS inline void GameServer_Spec_Health::clear_disabled() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.disabled_ = false; - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline bool GameServer_Spec_Health::disabled() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.disabled) @@ -3569,7 +3783,7 @@ inline bool GameServer_Spec_Health::disabled() const { } inline void GameServer_Spec_Health::set_disabled(bool value) { _internal_set_disabled(value); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.disabled) } inline bool GameServer_Spec_Health::_internal_disabled() const { @@ -3585,7 +3799,7 @@ inline void GameServer_Spec_Health::_internal_set_disabled(bool value) { inline void GameServer_Spec_Health::clear_period_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.period_seconds_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::int32_t GameServer_Spec_Health::period_seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.period_seconds) @@ -3593,7 +3807,7 @@ inline ::int32_t GameServer_Spec_Health::period_seconds() const { } inline void GameServer_Spec_Health::set_period_seconds(::int32_t value) { _internal_set_period_seconds(value); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.period_seconds) } inline ::int32_t GameServer_Spec_Health::_internal_period_seconds() const { @@ -3609,7 +3823,7 @@ inline void GameServer_Spec_Health::_internal_set_period_seconds(::int32_t value inline void GameServer_Spec_Health::clear_failure_threshold() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.failure_threshold_ = 0; - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline ::int32_t GameServer_Spec_Health::failure_threshold() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.failure_threshold) @@ -3617,7 +3831,7 @@ inline ::int32_t GameServer_Spec_Health::failure_threshold() const { } inline void GameServer_Spec_Health::set_failure_threshold(::int32_t value) { _internal_set_failure_threshold(value); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Spec.Health.failure_threshold) } inline ::int32_t GameServer_Spec_Health::_internal_failure_threshold() const { @@ -3633,7 +3847,7 @@ inline void GameServer_Spec_Health::_internal_set_failure_threshold(::int32_t va inline void GameServer_Spec_Health::clear_initial_delay_seconds() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.initial_delay_seconds_ = 0; - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline ::int32_t GameServer_Spec_Health::initial_delay_seconds() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Spec.Health.initial_delay_seconds) @@ -3641,7 +3855,7 @@ inline ::int32_t GameServer_Spec_Health::initial_delay_seconds() const { } inline void GameServer_Spec_Health::set_initial_delay_seconds(::int32_t value) { _internal_set_initial_delay_seconds(value); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@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 { @@ -3659,19 +3873,19 @@ inline void GameServer_Spec_Health::_internal_set_initial_delay_seconds(::int32_ // .agones.dev.sdk.GameServer.Spec.Health health = 1; inline bool GameServer_Spec::has_health() const { - bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000001U); PROTOBUF_ASSUME(!value || _impl_.health_ != nullptr); return value; } inline void GameServer_Spec::clear_health() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.health_ != nullptr) _impl_.health_->Clear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::agones::dev::sdk::GameServer_Spec_Health& GameServer_Spec::_internal_health() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Spec_Health>(&::agones::dev::sdk::GameServer_Spec_Health_globals_); } 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) @@ -3685,16 +3899,16 @@ inline void GameServer_Spec::unsafe_arena_set_allocated_health( } _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.Spec.health) } inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE GameServer_Spec::release_health() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::agones::dev::sdk::GameServer_Spec_Health* released = _impl_.health_; _impl_.health_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -3714,7 +3928,7 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NULLABLE GameServer_ ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Spec.health) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::agones::dev::sdk::GameServer_Spec_Health* temp = _impl_.health_; _impl_.health_ = nullptr; return temp; @@ -3729,7 +3943,7 @@ inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL GameServer_S } inline ::agones::dev::sdk::GameServer_Spec_Health* PROTOBUF_NONNULL GameServer_Spec::mutable_health() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_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; @@ -3746,9 +3960,9 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.health_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec_Health*>(value); @@ -3763,7 +3977,7 @@ inline void GameServer_Spec::set_allocated_health(::agones::dev::sdk::GameServer inline void GameServer_Status_Address::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& GameServer_Status_Address::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3773,12 +3987,13 @@ inline const ::std::string& GameServer_Status_Address::type() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.type) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.type) return _s; @@ -3789,21 +4004,19 @@ inline const ::std::string& GameServer_Status_Address::_internal_type() const { } inline void GameServer_Status_Address::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.type_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.type_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.type) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.type_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.type_.Set("", GetArena()); @@ -3813,9 +4026,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_type( inline void GameServer_Status_Address::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { @@ -3828,7 +4041,7 @@ inline void GameServer_Status_Address::set_allocated_type(::std::string* PROTOBU inline void GameServer_Status_Address::clear_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& GameServer_Status_Address::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3838,12 +4051,13 @@ inline const ::std::string& GameServer_Status_Address::address() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Address::set_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Address.address) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Address.address) return _s; @@ -3854,21 +4068,19 @@ inline const ::std::string& GameServer_Status_Address::_internal_address() const } inline void GameServer_Status_Address::_internal_set_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Address::_internal_mutable_address() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Address.address) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.address_.Set("", GetArena()); @@ -3878,9 +4090,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Address::release_addre inline void GameServer_Status_Address::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { @@ -3897,7 +4109,7 @@ inline void GameServer_Status_Address::set_allocated_address(::std::string* PROT inline void GameServer_Status_Port::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& GameServer_Status_Port::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -3907,12 +4119,13 @@ inline const ::std::string& GameServer_Status_Port::name() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status_Port::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.name) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Port::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.Port.name) return _s; @@ -3923,21 +4136,19 @@ inline const ::std::string& GameServer_Status_Port::_internal_name() const { } inline void GameServer_Status_Port::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_Port::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Port::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.Port.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -3947,9 +4158,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status_Port::release_name() { inline void GameServer_Status_Port::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -3962,7 +4173,7 @@ inline void GameServer_Status_Port::set_allocated_name(::std::string* PROTOBUF_N inline void GameServer_Status_Port::clear_port() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.port_ = 0; - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::int32_t GameServer_Status_Port::port() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.Port.port) @@ -3970,7 +4181,7 @@ inline ::int32_t GameServer_Status_Port::port() const { } inline void GameServer_Status_Port::set_port(::int32_t value) { _internal_set_port(value); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.Port.port) } inline ::int32_t GameServer_Status_Port::_internal_port() const { @@ -3990,7 +4201,7 @@ inline void GameServer_Status_Port::_internal_set_port(::int32_t value) { inline void GameServer_Status_CounterStatus::clear_count() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.count_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::int64_t GameServer_Status_CounterStatus::count() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.CounterStatus.count) @@ -3998,7 +4209,7 @@ inline ::int64_t GameServer_Status_CounterStatus::count() const { } inline void GameServer_Status_CounterStatus::set_count(::int64_t value) { _internal_set_count(value); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.count) } inline ::int64_t GameServer_Status_CounterStatus::_internal_count() const { @@ -4014,7 +4225,7 @@ inline void GameServer_Status_CounterStatus::_internal_set_count(::int64_t value inline void GameServer_Status_CounterStatus::clear_capacity() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.capacity_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::int64_t GameServer_Status_CounterStatus::capacity() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.CounterStatus.capacity) @@ -4022,7 +4233,7 @@ inline ::int64_t GameServer_Status_CounterStatus::capacity() const { } inline void GameServer_Status_CounterStatus::set_capacity(::int64_t value) { _internal_set_capacity(value); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.CounterStatus.capacity) } inline ::int64_t GameServer_Status_CounterStatus::_internal_capacity() const { @@ -4042,7 +4253,7 @@ inline void GameServer_Status_CounterStatus::_internal_set_capacity(::int64_t va inline void GameServer_Status_ListStatus::clear_capacity() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.capacity_ = ::int64_t{0}; - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::int64_t GameServer_Status_ListStatus::capacity() const { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.Status.ListStatus.capacity) @@ -4050,7 +4261,7 @@ inline ::int64_t GameServer_Status_ListStatus::capacity() const { } inline void GameServer_Status_ListStatus::set_capacity(::int64_t value) { _internal_set_capacity(value); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.ListStatus.capacity) } inline ::int64_t GameServer_Status_ListStatus::_internal_capacity() const { @@ -4072,11 +4283,15 @@ inline int GameServer_Status_ListStatus::values_size() const { inline void GameServer_Status_ListStatus::clear_values() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.values_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status_ListStatus::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_values()->Add(); + ::std::string* _s = + _internal_mutable_values()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add_mutable:agones.dev.sdk.GameServer.Status.ListStatus.values) return _s; } @@ -4092,16 +4307,19 @@ inline ::std::string* PROTOBUF_NONNULL GameServer_Status_ListStatus::mutable_val } template inline void GameServer_Status_ListStatus::set_values(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_values()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_values()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.ListStatus.values) } template inline void GameServer_Status_ListStatus::add_values(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_values(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_values(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ListStatus.values) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& GameServer_Status_ListStatus::values() @@ -4111,6 +4329,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& GameServer_Sta } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL GameServer_Status_ListStatus::mutable_values() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ListStatus.values) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_values(); @@ -4138,7 +4357,7 @@ GameServer_Status_ListStatus::_internal_mutable_values() { inline void GameServer_Status::clear_state() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.state_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& GameServer_Status::state() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4148,12 +4367,13 @@ inline const ::std::string& GameServer_Status::state() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_state(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.state_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.state) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::mutable_state() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_state(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.state) return _s; @@ -4164,21 +4384,19 @@ inline const ::std::string& GameServer_Status::_internal_state() const { } inline void GameServer_Status::_internal_set_state(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.state_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_state() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.state_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_state() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.state) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.state_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.state_.Set("", GetArena()); @@ -4188,9 +4406,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_state() { inline void GameServer_Status::set_allocated_state(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.state_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.state_.IsDefault()) { @@ -4203,7 +4421,7 @@ inline void GameServer_Status::set_allocated_state(::std::string* PROTOBUF_NULLA inline void GameServer_Status::clear_address() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.address_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& GameServer_Status::address() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -4213,12 +4431,13 @@ inline const ::std::string& GameServer_Status::address() const template PROTOBUF_ALWAYS_INLINE void GameServer_Status::set_address(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.address_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:agones.dev.sdk.GameServer.Status.address) } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::mutable_address() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_address(); // @@protoc_insertion_point(field_mutable:agones.dev.sdk.GameServer.Status.address) return _s; @@ -4229,21 +4448,19 @@ inline const ::std::string& GameServer_Status::_internal_address() const { } inline void GameServer_Status::_internal_set_address(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.address_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_address() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.address_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_address() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.Status.address) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.address_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.address_.Set("", GetArena()); @@ -4253,9 +4470,9 @@ inline ::std::string* PROTOBUF_NULLABLE GameServer_Status::release_address() { inline void GameServer_Status::set_allocated_address(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.address_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.address_.IsDefault()) { @@ -4274,27 +4491,25 @@ inline int GameServer_Status::addresses_size() const { inline void GameServer_Status::clear_addresses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.addresses_.Clear(); -} -inline ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL GameServer_Status::mutable_addresses() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.addresses) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_addresses(); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } 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().Get(index); } +inline ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL 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 ::agones::dev::sdk::GameServer_Status_Address* PROTOBUF_NONNULL GameServer_Status::add_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::agones::dev::sdk::GameServer_Status_Address* _add = _internal_mutable_addresses()->Add(); + ::agones::dev::sdk::GameServer_Status_Address* _add = + _internal_mutable_addresses()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.addresses) return _add; } @@ -4303,6 +4518,13 @@ inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.addresses) return _internal_addresses(); } +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>* PROTOBUF_NONNULL +GameServer_Status::mutable_addresses() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); + // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.addresses) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_addresses(); +} inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Address>& GameServer_Status::_internal_addresses() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -4324,27 +4546,25 @@ inline int GameServer_Status::ports_size() const { inline void GameServer_Status::clear_ports() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ports_.Clear(); -} -inline ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL GameServer_Status::mutable_ports() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ports) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_ports(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } 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().Get(index); } +inline ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL 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 ::agones::dev::sdk::GameServer_Status_Port* PROTOBUF_NONNULL GameServer_Status::add_ports() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::agones::dev::sdk::GameServer_Status_Port* _add = _internal_mutable_ports()->Add(); + ::agones::dev::sdk::GameServer_Status_Port* _add = + _internal_mutable_ports()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:agones.dev.sdk.GameServer.Status.ports) return _add; } @@ -4353,6 +4573,13 @@ inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer // @@protoc_insertion_point(field_list:agones.dev.sdk.GameServer.Status.ports) return _internal_ports(); } +inline ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>* PROTOBUF_NONNULL +GameServer_Status::mutable_ports() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:agones.dev.sdk.GameServer.Status.ports) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_ports(); +} inline const ::google::protobuf::RepeatedPtrField<::agones::dev::sdk::GameServer_Status_Port>& GameServer_Status::_internal_ports() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -4374,21 +4601,23 @@ inline int GameServer_Status::counters_size() const { inline void GameServer_Status::clear_counters() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.counters_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } -inline const ::google::protobuf::Map& GameServer_Status::_internal_counters() const { +inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& GameServer_Status::_internal_counters() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.counters_.GetMap(); } -inline const ::google::protobuf::Map& GameServer_Status::counters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>& GameServer_Status::counters() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.Status.counters) return _internal_counters(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_counters() { +inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_counters() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.counters_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::mutable_counters() +inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>* PROTOBUF_NONNULL GameServer_Status::mutable_counters() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.counters) return _internal_mutable_counters(); } @@ -4403,21 +4632,23 @@ inline int GameServer_Status::lists_size() const { inline void GameServer_Status::clear_lists() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.lists_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } -inline const ::google::protobuf::Map& GameServer_Status::_internal_lists() const { +inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& GameServer_Status::_internal_lists() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.lists_.GetMap(); } -inline const ::google::protobuf::Map& GameServer_Status::lists() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>& GameServer_Status::lists() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:agones.dev.sdk.GameServer.Status.lists) return _internal_lists(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_lists() { +inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL GameServer_Status::_internal_mutable_lists() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.lists_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL GameServer_Status::mutable_lists() +inline ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>* PROTOBUF_NONNULL GameServer_Status::mutable_lists() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); // @@protoc_insertion_point(field_mutable_map:agones.dev.sdk.GameServer.Status.lists) return _internal_mutable_lists(); } @@ -4428,19 +4659,19 @@ inline ::google::protobuf::MapClear(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::agones::dev::sdk::GameServer_ObjectMeta& GameServer::_internal_object_meta() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_ObjectMeta>(&::agones::dev::sdk::GameServer_ObjectMeta_globals_); } 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) @@ -4454,16 +4685,16 @@ inline void GameServer::unsafe_arena_set_allocated_object_meta( } _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.object_meta) } inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE GameServer::release_object_meta() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::agones::dev::sdk::GameServer_ObjectMeta* released = _impl_.object_meta_; _impl_.object_meta_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -4483,7 +4714,7 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NULLABLE GameServer:: ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.object_meta) - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); ::agones::dev::sdk::GameServer_ObjectMeta* temp = _impl_.object_meta_; _impl_.object_meta_ = nullptr; return temp; @@ -4498,7 +4729,7 @@ inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL GameServer::_ } inline ::agones::dev::sdk::GameServer_ObjectMeta* PROTOBUF_NONNULL GameServer::mutable_object_meta() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_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; @@ -4515,9 +4746,9 @@ inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.object_meta_ = reinterpret_cast<::agones::dev::sdk::GameServer_ObjectMeta*>(value); @@ -4526,19 +4757,19 @@ inline void GameServer::set_allocated_object_meta(::agones::dev::sdk::GameServer // .agones.dev.sdk.GameServer.Spec spec = 2; inline bool GameServer::has_spec() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.spec_ != nullptr); return value; } inline void GameServer::clear_spec() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.spec_ != nullptr) _impl_.spec_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::_internal_spec() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Spec>(&::agones::dev::sdk::GameServer_Spec_globals_); } inline const ::agones::dev::sdk::GameServer_Spec& GameServer::spec() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.spec) @@ -4552,16 +4783,16 @@ inline void GameServer::unsafe_arena_set_allocated_spec( } _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.spec) } inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE GameServer::release_spec() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::agones::dev::sdk::GameServer_Spec* released = _impl_.spec_; _impl_.spec_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -4581,7 +4812,7 @@ inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NULLABLE GameServer::unsafe ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.spec) - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::agones::dev::sdk::GameServer_Spec* temp = _impl_.spec_; _impl_.spec_ = nullptr; return temp; @@ -4596,7 +4827,7 @@ inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL GameServer::_intern } inline ::agones::dev::sdk::GameServer_Spec* PROTOBUF_NONNULL GameServer::mutable_spec() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_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; @@ -4613,9 +4844,9 @@ inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.spec_ = reinterpret_cast<::agones::dev::sdk::GameServer_Spec*>(value); @@ -4624,19 +4855,19 @@ inline void GameServer::set_allocated_spec(::agones::dev::sdk::GameServer_Spec* // .agones.dev.sdk.GameServer.Status status = 3; inline bool GameServer::has_status() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); PROTOBUF_ASSUME(!value || _impl_.status_ != nullptr); return value; } inline void GameServer::clear_status() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.status_ != nullptr) _impl_.status_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::agones::dev::sdk::GameServer_Status& GameServer::_internal_status() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::agones::dev::sdk::GameServer_Status>(&::agones::dev::sdk::GameServer_Status_globals_); } inline const ::agones::dev::sdk::GameServer_Status& GameServer::status() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:agones.dev.sdk.GameServer.status) @@ -4650,16 +4881,16 @@ inline void GameServer::unsafe_arena_set_allocated_status( } _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:agones.dev.sdk.GameServer.status) } inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE GameServer::release_status() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::agones::dev::sdk::GameServer_Status* released = _impl_.status_; _impl_.status_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -4679,7 +4910,7 @@ inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NULLABLE GameServer::unsa ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:agones.dev.sdk.GameServer.status) - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::agones::dev::sdk::GameServer_Status* temp = _impl_.status_; _impl_.status_ = nullptr; return temp; @@ -4694,7 +4925,7 @@ inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL GameServer::_inte } inline ::agones::dev::sdk::GameServer_Status* PROTOBUF_NONNULL GameServer::mutable_status() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_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; @@ -4711,9 +4942,9 @@ inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Stat if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.status_ = reinterpret_cast<::agones::dev::sdk::GameServer_Status*>(value); @@ -4733,5 +4964,6 @@ inline void GameServer::set_allocated_status(::agones::dev::sdk::GameServer_Stat // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // sdk_2eproto_2epb_2eh diff --git a/sdks/cpp/include/google/api/annotations.pb.h b/sdks/cpp/include/google/api/annotations.pb.h index 1bca9e1d7a..0ca73ea684 100644 --- a/sdks/cpp/include/google/api/annotations.pb.h +++ b/sdks/cpp/include/google/api/annotations.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/annotations.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #ifndef google_2fapi_2fannotations_2eproto_2epb_2eh #define google_2fapi_2fannotations_2eproto_2epb_2eh @@ -26,8 +26,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6031001 +#if PROTOBUF_VERSION != 7035001 #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" @@ -84,8 +85,7 @@ namespace api { inline constexpr int kHttpFieldNumber = 72295728; AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< - ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false> - http; + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::google::api::HttpRule >, 11, false>(http); // =================================================================== @@ -106,5 +106,6 @@ AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // google_2fapi_2fannotations_2eproto_2epb_2eh diff --git a/sdks/cpp/include/google/api/http.pb.h b/sdks/cpp/include/google/api/http.pb.h index 8f11a135b5..ee3e1097d4 100644 --- a/sdks/cpp/include/google/api/http.pb.h +++ b/sdks/cpp/include/google/api/http.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/http.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #ifndef google_2fapi_2fhttp_2eproto_2epb_2eh #define google_2fapi_2fhttp_2eproto_2epb_2eh @@ -26,8 +26,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6031001 +#if PROTOBUF_VERSION != 7035001 #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" @@ -70,17 +71,29 @@ AGONES_EXPORT extern const ::google::protobuf::internal::DescriptorTable descrip namespace google { namespace api { class CustomHttpPattern; -struct CustomHttpPatternDefaultTypeInternal; -AGONES_EXPORT extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; +struct CustomHttpPatternGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_; +#else +AGONES_EXPORT extern const CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Http; -struct HttpDefaultTypeInternal; -AGONES_EXPORT extern HttpDefaultTypeInternal _Http_default_instance_; +struct HttpGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern HttpGlobalsTypeInternal Http_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Http_class_data_; +#else +AGONES_EXPORT extern const HttpGlobalsTypeInternal Http_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class HttpRule; -struct HttpRuleDefaultTypeInternal; -AGONES_EXPORT extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_; +struct HttpRuleGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern HttpRuleGlobalsTypeInternal HttpRule_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_; +#else +AGONES_EXPORT extern const HttpRuleGlobalsTypeInternal HttpRule_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace api namespace protobuf { } // namespace protobuf @@ -94,25 +107,26 @@ namespace api { // ------------------------------------------------------------------- -class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED CustomHttpPattern final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ { public: inline CustomHttpPattern() : CustomHttpPattern(nullptr) {} ~CustomHttpPattern() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(CustomHttpPattern* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(CustomHttpPattern* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(CustomHttpPattern)); } #endif template - explicit PROTOBUF_CONSTEXPR CustomHttpPattern(::google::protobuf::internal::ConstantInitialized); + explicit constexpr CustomHttpPattern(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline CustomHttpPattern(const CustomHttpPattern& from) : CustomHttpPattern(nullptr, from) {} - inline CustomHttpPattern(CustomHttpPattern&& from) noexcept - : CustomHttpPattern(nullptr, ::std::move(from)) {} + inline CustomHttpPattern(CustomHttpPattern&& from) noexcept : CustomHttpPattern(nullptr, ::std::move(from)) {} inline CustomHttpPattern& operator=(const CustomHttpPattern& from) { CopyFrom(from); return *this; @@ -127,27 +141,27 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const CustomHttpPattern& default_instance() { - return *reinterpret_cast( - &_CustomHttpPattern_default_instance_); + [[nodiscard]] static const CustomHttpPattern& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&CustomHttpPattern_globals_); } static constexpr int kIndexInFileMessages = 2; friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) { a.Swap(&b); } @@ -167,7 +181,8 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - CustomHttpPattern* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] CustomHttpPattern* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -180,31 +195,33 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -215,7 +232,6 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.CustomHttpPattern"; } - protected: explicit CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CustomHttpPattern& from); CustomHttpPattern( @@ -230,9 +246,11 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -242,7 +260,7 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message }; // string kind = 1; void clear_kind() ; - const ::std::string& kind() const; + [[nodiscard]] const ::std::string& kind() const; template void set_kind(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_kind(); @@ -257,7 +275,7 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message public: // string path = 2; void clear_path() ; - const ::std::string& path() const; + [[nodiscard]] const ::std::string& path() const; template void set_path(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_path(); @@ -273,20 +291,27 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 45, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 45, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -303,29 +328,28 @@ class AGONES_EXPORT CustomHttpPattern final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED HttpRule final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ { public: inline HttpRule() : HttpRule(nullptr) {} ~HttpRule() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(HttpRule* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(HttpRule* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(HttpRule)); } #endif template - explicit PROTOBUF_CONSTEXPR HttpRule(::google::protobuf::internal::ConstantInitialized); + explicit constexpr HttpRule(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline HttpRule(const HttpRule& from) : HttpRule(nullptr, from) {} - inline HttpRule(HttpRule&& from) noexcept - : HttpRule(nullptr, ::std::move(from)) {} + inline HttpRule(HttpRule&& from) noexcept : HttpRule(nullptr, ::std::move(from)) {} inline HttpRule& operator=(const HttpRule& from) { CopyFrom(from); return *this; @@ -340,27 +364,27 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const HttpRule& default_instance() { - return *reinterpret_cast( - &_HttpRule_default_instance_); + [[nodiscard]] static const HttpRule& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&HttpRule_globals_); } enum PatternCase { kGet = 2, @@ -389,7 +413,8 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - HttpRule* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] HttpRule* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -402,31 +427,33 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -437,7 +464,6 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.HttpRule"; } - protected: explicit HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HttpRule& from); HttpRule( @@ -452,9 +478,11 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -471,25 +499,29 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message kCustomFieldNumber = 8, }; // repeated .google.api.HttpRule additional_bindings = 11; - int additional_bindings_size() const; + [[nodiscard]] int additional_bindings_size() + const; private: int _internal_additional_bindings_size() const; public: void clear_additional_bindings() ; - ::google::api::HttpRule* PROTOBUF_NONNULL mutable_additional_bindings(int index); - ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL mutable_additional_bindings(); + [[nodiscard]] const ::google::api::HttpRule& additional_bindings(int index) const; + [[nodiscard]] ::google::api::HttpRule* PROTOBUF_NONNULL mutable_additional_bindings(int index); + ::google::api::HttpRule* PROTOBUF_NONNULL add_additional_bindings(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& + additional_bindings() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL + mutable_additional_bindings(); private: const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_additional_bindings() const; ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL _internal_mutable_additional_bindings(); + public: - const ::google::api::HttpRule& additional_bindings(int index) const; - ::google::api::HttpRule* PROTOBUF_NONNULL add_additional_bindings(); - const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& additional_bindings() const; // string selector = 1; void clear_selector() ; - const ::std::string& selector() const; + [[nodiscard]] const ::std::string& selector() const; template void set_selector(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_selector(); @@ -504,7 +536,7 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string body = 7; void clear_body() ; - const ::std::string& body() const; + [[nodiscard]] const ::std::string& body() const; template void set_body(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_body(); @@ -519,7 +551,7 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string response_body = 12; void clear_response_body() ; - const ::std::string& response_body() const; + [[nodiscard]] const ::std::string& response_body() const; template void set_response_body(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_response_body(); @@ -533,9 +565,10 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string get = 2; - bool has_get() const; + [[nodiscard]] bool has_get() + const; void clear_get() ; - const ::std::string& get() const; + [[nodiscard]] const ::std::string& get() const; template void set_get(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_get(); @@ -549,9 +582,10 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string put = 3; - bool has_put() const; + [[nodiscard]] bool has_put() + const; void clear_put() ; - const ::std::string& put() const; + [[nodiscard]] const ::std::string& put() const; template void set_put(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_put(); @@ -565,9 +599,10 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string post = 4; - bool has_post() const; + [[nodiscard]] bool has_post() + const; void clear_post() ; - const ::std::string& post() const; + [[nodiscard]] const ::std::string& post() const; template void set_post(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_post(); @@ -581,9 +616,10 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string delete = 5; - bool has_delete_() const; + [[nodiscard]] bool has_delete_() + const; void clear_delete_() ; - const ::std::string& delete_() const; + [[nodiscard]] const ::std::string& delete_() const; template void set_delete_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_delete_(); @@ -597,9 +633,10 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // string patch = 6; - bool has_patch() const; + [[nodiscard]] bool has_patch() + const; void clear_patch() ; - const ::std::string& patch() const; + [[nodiscard]] const ::std::string& patch() const; template void set_patch(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_patch(); @@ -613,13 +650,14 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message public: // .google.api.CustomHttpPattern custom = 8; - bool has_custom() const; + [[nodiscard]] bool has_custom() + const; private: bool _internal_has_custom() const; public: void clear_custom() ; - const ::google::api::CustomHttpPattern& custom() const; + [[nodiscard]] const ::google::api::CustomHttpPattern& custom() const; [[nodiscard]] ::google::api::CustomHttpPattern* PROTOBUF_NULLABLE release_custom(); ::google::api::CustomHttpPattern* PROTOBUF_NONNULL mutable_custom(); void set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_NULLABLE value); @@ -642,22 +680,29 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message void set_has_delete_(); void set_has_patch(); void set_has_custom(); - inline bool has_pattern() const; + [[nodiscard]] inline bool has_pattern() const; inline void clear_has_pattern(); + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 10, + 2, 82, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 10, - 2, 82, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -687,29 +732,28 @@ class AGONES_EXPORT HttpRule final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Http final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Http final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ { public: inline Http() : Http(nullptr) {} ~Http() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Http* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Http* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Http)); } #endif template - explicit PROTOBUF_CONSTEXPR Http(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Http(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Http(const Http& from) : Http(nullptr, from) {} - inline Http(Http&& from) noexcept - : Http(nullptr, ::std::move(from)) {} + inline Http(Http&& from) noexcept : Http(nullptr, ::std::move(from)) {} inline Http& operator=(const Http& from) { CopyFrom(from); return *this; @@ -724,27 +768,27 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Http& default_instance() { - return *reinterpret_cast( - &_Http_default_instance_); + [[nodiscard]] static const Http& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Http_globals_); } static constexpr int kIndexInFileMessages = 0; friend void swap(Http& a, Http& b) { a.Swap(&b); } @@ -764,7 +808,8 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Http* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Http* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -777,31 +822,33 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -812,7 +859,6 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "google.api.Http"; } - protected: explicit Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Http& from); Http( @@ -827,9 +873,11 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -838,25 +886,29 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message kFullyDecodeReservedExpansionFieldNumber = 2, }; // repeated .google.api.HttpRule rules = 1; - int rules_size() const; + [[nodiscard]] int rules_size() + const; private: int _internal_rules_size() const; public: void clear_rules() ; - ::google::api::HttpRule* PROTOBUF_NONNULL mutable_rules(int index); - ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL mutable_rules(); + [[nodiscard]] const ::google::api::HttpRule& rules(int index) const; + [[nodiscard]] ::google::api::HttpRule* PROTOBUF_NONNULL mutable_rules(int index); + ::google::api::HttpRule* PROTOBUF_NONNULL add_rules(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& + rules() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL + mutable_rules(); private: const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& _internal_rules() const; ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL _internal_mutable_rules(); + public: - const ::google::api::HttpRule& rules(int index) const; - ::google::api::HttpRule* PROTOBUF_NONNULL 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; + [[nodiscard]] bool fully_decode_reserved_expansion() const; void set_fully_decode_reserved_expansion(bool value); private: @@ -867,20 +919,27 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:google.api.Http) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 0, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 0, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -898,8 +957,6 @@ class AGONES_EXPORT Http final : public ::google::protobuf::Message friend struct ::TableStruct_google_2fapi_2fhttp_2eproto; }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Http_class_data_; - // =================================================================== @@ -926,27 +983,25 @@ inline int Http::rules_size() const { inline void Http::clear_rules() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.rules_.Clear(); -} -inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL Http::mutable_rules() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_rules(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } 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().Get(index); } +inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::api::HttpRule* PROTOBUF_NONNULL Http::add_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::api::HttpRule* _add = _internal_mutable_rules()->Add(); + ::google::api::HttpRule* _add = + _internal_mutable_rules()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:google.api.Http.rules) return _add; } @@ -955,6 +1010,13 @@ inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http // @@protoc_insertion_point(field_list:google.api.Http.rules) return _internal_rules(); } +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL +Http::mutable_rules() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_rules(); +} inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http::_internal_rules() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -970,7 +1032,7 @@ Http::_internal_mutable_rules() { inline void Http::clear_fully_decode_reserved_expansion() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.fully_decode_reserved_expansion_ = false; - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline bool Http::fully_decode_reserved_expansion() const { // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion) @@ -978,7 +1040,7 @@ inline bool Http::fully_decode_reserved_expansion() const { } inline void Http::set_fully_decode_reserved_expansion(bool value) { _internal_set_fully_decode_reserved_expansion(value); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion) } inline bool Http::_internal_fully_decode_reserved_expansion() const { @@ -998,7 +1060,7 @@ inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) { inline void HttpRule::clear_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.selector_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& HttpRule::selector() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1008,12 +1070,13 @@ inline const ::std::string& HttpRule::selector() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_selector(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.selector_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.selector) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_selector() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_selector(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector) return _s; @@ -1024,21 +1087,19 @@ inline const ::std::string& HttpRule::_internal_selector() const { } inline void HttpRule::_internal_set_selector(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.selector_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.selector_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_selector() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.selector) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.selector_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.selector_.Set("", GetArena()); @@ -1048,9 +1109,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_selector() { inline void HttpRule::set_allocated_selector(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.selector_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.selector_.IsDefault()) { @@ -1092,6 +1153,12 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_get(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_get() ABSL_ATTRIBUTE_LIFETIME_BOUND { + if (pattern_case() != kGet) { + clear_pattern(); + + set_has_get(); + _impl_.pattern_.get_.InitDefault(); + } ::std::string* _s = _internal_mutable_get(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get) return _s; @@ -1105,22 +1172,10 @@ inline const ::std::string& HttpRule::_internal_get() const { } inline void HttpRule::_internal_set_get(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kGet) { - clear_pattern(); - - set_has_get(); - _impl_.pattern_.get_.InitDefault(); - } _impl_.pattern_.get_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_get() { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kGet) { - clear_pattern(); - - set_has_get(); - _impl_.pattern_.get_.InitDefault(); - } return _impl_.pattern_.get_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_get() { @@ -1177,6 +1232,12 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_put(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_put() ABSL_ATTRIBUTE_LIFETIME_BOUND { + if (pattern_case() != kPut) { + clear_pattern(); + + set_has_put(); + _impl_.pattern_.put_.InitDefault(); + } ::std::string* _s = _internal_mutable_put(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put) return _s; @@ -1190,22 +1251,10 @@ inline const ::std::string& HttpRule::_internal_put() const { } inline void HttpRule::_internal_set_put(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPut) { - clear_pattern(); - - set_has_put(); - _impl_.pattern_.put_.InitDefault(); - } _impl_.pattern_.put_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_put() { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPut) { - clear_pattern(); - - set_has_put(); - _impl_.pattern_.put_.InitDefault(); - } return _impl_.pattern_.put_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_put() { @@ -1262,6 +1311,12 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_post(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_post() ABSL_ATTRIBUTE_LIFETIME_BOUND { + if (pattern_case() != kPost) { + clear_pattern(); + + set_has_post(); + _impl_.pattern_.post_.InitDefault(); + } ::std::string* _s = _internal_mutable_post(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post) return _s; @@ -1275,22 +1330,10 @@ inline const ::std::string& HttpRule::_internal_post() const { } inline void HttpRule::_internal_set_post(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPost) { - clear_pattern(); - - set_has_post(); - _impl_.pattern_.post_.InitDefault(); - } _impl_.pattern_.post_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_post() { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPost) { - clear_pattern(); - - set_has_post(); - _impl_.pattern_.post_.InitDefault(); - } return _impl_.pattern_.post_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_post() { @@ -1347,6 +1390,12 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_delete_(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_delete_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + if (pattern_case() != kDelete) { + clear_pattern(); + + set_has_delete_(); + _impl_.pattern_.delete__.InitDefault(); + } ::std::string* _s = _internal_mutable_delete_(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete) return _s; @@ -1360,22 +1409,10 @@ inline const ::std::string& HttpRule::_internal_delete_() const { } inline void HttpRule::_internal_set_delete_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kDelete) { - clear_pattern(); - - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); - } _impl_.pattern_.delete__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_delete_() { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kDelete) { - clear_pattern(); - - set_has_delete_(); - _impl_.pattern_.delete__.InitDefault(); - } return _impl_.pattern_.delete__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_delete_() { @@ -1432,6 +1469,12 @@ PROTOBUF_ALWAYS_INLINE void HttpRule::set_patch(Arg_&& arg, Args_... args) { } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_patch() ABSL_ATTRIBUTE_LIFETIME_BOUND { + if (pattern_case() != kPatch) { + clear_pattern(); + + set_has_patch(); + _impl_.pattern_.patch_.InitDefault(); + } ::std::string* _s = _internal_mutable_patch(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch) return _s; @@ -1445,22 +1488,10 @@ inline const ::std::string& HttpRule::_internal_patch() const { } inline void HttpRule::_internal_set_patch(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPatch) { - clear_pattern(); - - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); - } _impl_.pattern_.patch_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_patch() { ::google::protobuf::internal::TSanWrite(&_impl_); - if (pattern_case() != kPatch) { - clear_pattern(); - - set_has_patch(); - _impl_.pattern_.patch_.InitDefault(); - } return _impl_.pattern_.patch_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_patch() { @@ -1520,7 +1551,8 @@ inline ::google::api::CustomHttpPattern* PROTOBUF_NULLABLE HttpRule::release_cus } } 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 ? static_cast(*_impl_.pattern_.custom_) + : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::google::api::CustomHttpPattern>(&::google::api::CustomHttpPattern_globals_); } inline const ::google::api::CustomHttpPattern& HttpRule::custom() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_get:google.api.HttpRule.custom) @@ -1569,7 +1601,7 @@ inline ::google::api::CustomHttpPattern* PROTOBUF_NONNULL HttpRule::mutable_cust inline void HttpRule::clear_body() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.body_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& HttpRule::body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1579,12 +1611,13 @@ inline const ::std::string& HttpRule::body() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_body(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.body) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body) return _s; @@ -1595,21 +1628,19 @@ inline const ::std::string& HttpRule::_internal_body() const { } inline void HttpRule::_internal_set_body(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.body_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_body() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.body_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_body() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.body) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.body_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.body_.Set("", GetArena()); @@ -1619,9 +1650,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_body() { inline void HttpRule::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.body_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.body_.IsDefault()) { @@ -1634,7 +1665,7 @@ inline void HttpRule::set_allocated_body(::std::string* PROTOBUF_NULLABLE value) inline void HttpRule::clear_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.response_body_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& HttpRule::response_body() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1644,12 +1675,13 @@ inline const ::std::string& HttpRule::response_body() const template PROTOBUF_ALWAYS_INLINE void HttpRule::set_response_body(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.response_body_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.HttpRule.response_body) } inline ::std::string* PROTOBUF_NONNULL HttpRule::mutable_response_body() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_response_body(); // @@protoc_insertion_point(field_mutable:google.api.HttpRule.response_body) return _s; @@ -1660,21 +1692,19 @@ inline const ::std::string& HttpRule::_internal_response_body() const { } inline void HttpRule::_internal_set_response_body(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.response_body_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL HttpRule::_internal_mutable_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.response_body_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_response_body() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.HttpRule.response_body) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.response_body_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.response_body_.Set("", GetArena()); @@ -1684,9 +1714,9 @@ inline ::std::string* PROTOBUF_NULLABLE HttpRule::release_response_body() { inline void HttpRule::set_allocated_response_body(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.response_body_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.response_body_.IsDefault()) { @@ -1705,27 +1735,25 @@ inline int HttpRule::additional_bindings_size() const { inline void HttpRule::clear_additional_bindings() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.additional_bindings_.Clear(); -} -inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL HttpRule::mutable_additional_bindings() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_additional_bindings(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } 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().Get(index); } +inline ::google::api::HttpRule* PROTOBUF_NONNULL 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 ::google::api::HttpRule* PROTOBUF_NONNULL HttpRule::add_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::api::HttpRule* _add = _internal_mutable_additional_bindings()->Add(); + ::google::api::HttpRule* _add = + _internal_mutable_additional_bindings()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings) return _add; } @@ -1734,6 +1762,13 @@ inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& Http // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings) return _internal_additional_bindings(); } +inline ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>* PROTOBUF_NONNULL +HttpRule::mutable_additional_bindings() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); + // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_additional_bindings(); +} inline const ::google::protobuf::RepeatedPtrField<::google::api::HttpRule>& HttpRule::_internal_additional_bindings() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -1762,7 +1797,7 @@ inline HttpRule::PatternCase HttpRule::pattern_case() const { inline void CustomHttpPattern::clear_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.kind_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& CustomHttpPattern::kind() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1772,12 +1807,13 @@ inline const ::std::string& CustomHttpPattern::kind() const template PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_kind(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.kind_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind) } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::mutable_kind() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_kind(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind) return _s; @@ -1788,21 +1824,19 @@ inline const ::std::string& CustomHttpPattern::_internal_kind() const { } inline void CustomHttpPattern::_internal_set_kind(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.kind_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::_internal_mutable_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.kind_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_kind() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.kind_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.kind_.Set("", GetArena()); @@ -1812,9 +1846,9 @@ inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_kind() { inline void CustomHttpPattern::set_allocated_kind(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.kind_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.kind_.IsDefault()) { @@ -1827,7 +1861,7 @@ inline void CustomHttpPattern::set_allocated_kind(::std::string* PROTOBUF_NULLAB inline void CustomHttpPattern::clear_path() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& CustomHttpPattern::path() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -1837,12 +1871,13 @@ inline const ::std::string& CustomHttpPattern::path() const template PROTOBUF_ALWAYS_INLINE void CustomHttpPattern::set_path(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.path_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path) } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::mutable_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_path(); // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path) return _s; @@ -1853,21 +1888,19 @@ inline const ::std::string& CustomHttpPattern::_internal_path() const { } inline void CustomHttpPattern::_internal_set_path(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.path_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL CustomHttpPattern::_internal_mutable_path() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.path_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_path() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.path_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.path_.Set("", GetArena()); @@ -1877,9 +1910,9 @@ inline ::std::string* PROTOBUF_NULLABLE CustomHttpPattern::release_path() { inline void CustomHttpPattern::set_allocated_path(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.path_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_.IsDefault()) { @@ -1900,5 +1933,6 @@ inline void CustomHttpPattern::set_allocated_path(::std::string* PROTOBUF_NULLAB // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // google_2fapi_2fhttp_2eproto_2epb_2eh 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 77755dde57..a019ca7823 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/annotations.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/annotations.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #ifndef protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh #define protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh @@ -26,8 +26,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6031001 +#if PROTOBUF_VERSION != 7035001 #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" @@ -86,24 +87,19 @@ namespace options { inline constexpr int kOpenapiv2SwaggerFieldNumber = 1042; 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; + ::google::protobuf::FileOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Swagger >, 11, false>(openapiv2_swagger); inline constexpr int kOpenapiv2OperationFieldNumber = 1042; 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; + ::google::protobuf::MethodOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Operation >, 11, false>(openapiv2_operation); inline constexpr int kOpenapiv2SchemaFieldNumber = 1042; 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; + ::google::protobuf::MessageOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Schema >, 11, false>(openapiv2_schema); inline constexpr int kOpenapiv2TagFieldNumber = 1042; 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; + ::google::protobuf::ServiceOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::Tag >, 11, false>(openapiv2_tag); inline constexpr int kOpenapiv2FieldFieldNumber = 1042; 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; + ::google::protobuf::FieldOptions, ::google::protobuf::internal::MessageTypeTraits< ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema >, 11, false>(openapiv2_field); // =================================================================== @@ -126,5 +122,6 @@ AGONES_EXPORT extern ::google::protobuf::internal::ExtensionIdentifier< // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto_2epb_2eh 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 293b66b414..3ba513c107 100644 --- a/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h +++ b/sdks/cpp/include/protoc-gen-openapiv2/options/openapiv2.pb.h @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/openapiv2.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #ifndef protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh #define protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh @@ -26,8 +26,9 @@ #include #include +// clang-format off #include "google/protobuf/runtime_version.h" -#if PROTOBUF_VERSION != 6031001 +#if PROTOBUF_VERSION != 7035001 #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" @@ -88,125 +89,245 @@ AGONES_EXPORT extern const uint32_t SecurityScheme_In_internal_data_[]; enum SecurityScheme_Type : int; AGONES_EXPORT extern const uint32_t SecurityScheme_Type_internal_data_[]; class Contact; -struct ContactDefaultTypeInternal; -AGONES_EXPORT extern ContactDefaultTypeInternal _Contact_default_instance_; +struct ContactGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern ContactGlobalsTypeInternal Contact_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Contact_class_data_; +#else +AGONES_EXPORT extern const ContactGlobalsTypeInternal Contact_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class ExternalDocumentation; -struct ExternalDocumentationDefaultTypeInternal; -AGONES_EXPORT extern ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; +struct ExternalDocumentationGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_; +#else +AGONES_EXPORT extern const ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Header; -struct HeaderDefaultTypeInternal; -AGONES_EXPORT extern HeaderDefaultTypeInternal _Header_default_instance_; +struct HeaderGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern HeaderGlobalsTypeInternal Header_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Header_class_data_; +#else +AGONES_EXPORT extern const HeaderGlobalsTypeInternal Header_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Info; -struct InfoDefaultTypeInternal; -AGONES_EXPORT extern InfoDefaultTypeInternal _Info_default_instance_; +struct InfoGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern InfoGlobalsTypeInternal Info_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_class_data_; +#else +AGONES_EXPORT extern const InfoGlobalsTypeInternal Info_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Info_ExtensionsEntry_DoNotUse; -struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; +struct Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema; -struct JSONSchemaDefaultTypeInternal; -AGONES_EXPORT extern JSONSchemaDefaultTypeInternal _JSONSchema_default_instance_; +struct JSONSchemaGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern JSONSchemaGlobalsTypeInternal JSONSchema_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_; +#else +AGONES_EXPORT extern const JSONSchemaGlobalsTypeInternal JSONSchema_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema_ExtensionsEntry_DoNotUse; -struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal _JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; +struct JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class JSONSchema_FieldConfiguration; -struct JSONSchema_FieldConfigurationDefaultTypeInternal; -AGONES_EXPORT extern JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; +struct JSONSchema_FieldConfigurationGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_; +#else +AGONES_EXPORT extern const JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class License; -struct LicenseDefaultTypeInternal; -AGONES_EXPORT extern LicenseDefaultTypeInternal _License_default_instance_; +struct LicenseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern LicenseGlobalsTypeInternal License_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull License_class_data_; +#else +AGONES_EXPORT extern const LicenseGlobalsTypeInternal License_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Operation; -struct OperationDefaultTypeInternal; -AGONES_EXPORT extern OperationDefaultTypeInternal _Operation_default_instance_; +struct OperationGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern OperationGlobalsTypeInternal Operation_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_class_data_; +#else +AGONES_EXPORT extern const OperationGlobalsTypeInternal Operation_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Operation_ExtensionsEntry_DoNotUse; -struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; +struct Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Operation_ResponsesEntry_DoNotUse; -struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; +struct Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Response; -struct ResponseDefaultTypeInternal; -AGONES_EXPORT extern ResponseDefaultTypeInternal _Response_default_instance_; +struct ResponseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern ResponseGlobalsTypeInternal Response_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; +#else +AGONES_EXPORT extern const ResponseGlobalsTypeInternal Response_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Response_ExamplesEntry_DoNotUse; -struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; +struct Response_ExamplesEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Response_ExtensionsEntry_DoNotUse; -struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; +struct Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Response_HeadersEntry_DoNotUse; -struct Response_HeadersEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Response_HeadersEntry_DoNotUseDefaultTypeInternal _Response_HeadersEntry_DoNotUse_default_instance_; +struct Response_HeadersEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Schema; -struct SchemaDefaultTypeInternal; -AGONES_EXPORT extern SchemaDefaultTypeInternal _Schema_default_instance_; +struct SchemaGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SchemaGlobalsTypeInternal Schema_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Schema_class_data_; +#else +AGONES_EXPORT extern const SchemaGlobalsTypeInternal Schema_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Scopes; -struct ScopesDefaultTypeInternal; -AGONES_EXPORT extern ScopesDefaultTypeInternal _Scopes_default_instance_; +struct ScopesGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern ScopesGlobalsTypeInternal Scopes_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_class_data_; +#else +AGONES_EXPORT extern const ScopesGlobalsTypeInternal Scopes_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Scopes_ScopeEntry_DoNotUse; -struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; +struct Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityDefinitions; -struct SecurityDefinitionsDefaultTypeInternal; -AGONES_EXPORT extern SecurityDefinitionsDefaultTypeInternal _SecurityDefinitions_default_instance_; +struct SecurityDefinitionsGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_; +#else +AGONES_EXPORT extern const SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityDefinitions_SecurityEntry_DoNotUse; -struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal _SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; +struct SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement; -struct SecurityRequirementDefaultTypeInternal; -AGONES_EXPORT extern SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; +struct SecurityRequirementGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_; +#else +AGONES_EXPORT extern const SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement_SecurityRequirementEntry_DoNotUse; -struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; +struct SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityRequirement_SecurityRequirementValue; -struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal; -AGONES_EXPORT extern SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; +struct SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_; +#else +AGONES_EXPORT extern const SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityScheme; -struct SecuritySchemeDefaultTypeInternal; -AGONES_EXPORT extern SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; +struct SecuritySchemeGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_; +#else +AGONES_EXPORT extern const SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class SecurityScheme_ExtensionsEntry_DoNotUse; -struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; +struct SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger; -struct SwaggerDefaultTypeInternal; -AGONES_EXPORT extern SwaggerDefaultTypeInternal _Swagger_default_instance_; +struct SwaggerGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern SwaggerGlobalsTypeInternal Swagger_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_class_data_; +#else +AGONES_EXPORT extern const SwaggerGlobalsTypeInternal Swagger_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger_ExtensionsEntry_DoNotUse; -struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; +struct Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Swagger_ResponsesEntry_DoNotUse; -struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal; -AGONES_EXPORT extern Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; +struct Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_; +#else +AGONES_EXPORT extern const Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS class Tag; -struct TagDefaultTypeInternal; -AGONES_EXPORT extern TagDefaultTypeInternal _Tag_default_instance_; +struct TagGlobalsTypeInternal; +#ifndef PROTOBUF_MESSAGE_GLOBALS +AGONES_EXPORT extern TagGlobalsTypeInternal Tag_globals_; AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Tag_class_data_; +#else +AGONES_EXPORT extern const TagGlobalsTypeInternal Tag_globals_; +#endif // PROTOBUF_MESSAGE_GLOBALS } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway @@ -255,24 +376,28 @@ inline constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTyp static_cast(0); inline constexpr JSONSchema_JSONSchemaSimpleTypes JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MAX = static_cast(7); -inline bool JSONSchema_JSONSchemaSimpleTypes_IsValid(int value) { +[[nodiscard]] inline bool JSONSchema_JSONSchemaSimpleTypes_IsValid(int value) { return 0 <= value && value <= 7; } inline constexpr int JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_ARRAYSIZE = 7 + 1; -AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL JSONSchema_JSONSchemaSimpleTypes_descriptor(); +[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +JSONSchema_JSONSchemaSimpleTypes_descriptor(); +[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(JSONSchema_JSONSchemaSimpleTypes) { + return JSONSchema_JSONSchemaSimpleTypes_descriptor(); +} template -const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { +[[nodiscard]] const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to JSONSchemaSimpleTypes_Name()."); return JSONSchema_JSONSchemaSimpleTypes_Name(static_cast(value)); } template <> -inline const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(JSONSchema_JSONSchemaSimpleTypes value) { +[[nodiscard]] inline const ::std::string& JSONSchema_JSONSchemaSimpleTypes_Name(JSONSchema_JSONSchemaSimpleTypes value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool JSONSchema_JSONSchemaSimpleTypes_Parse( +[[nodiscard]] inline bool JSONSchema_JSONSchemaSimpleTypes_Parse( ::absl::string_view name, JSONSchema_JSONSchemaSimpleTypes* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(JSONSchema_JSONSchemaSimpleTypes_descriptor(), name, value); @@ -293,24 +418,28 @@ inline constexpr SecurityScheme_Type SecurityScheme_Type_Type_MIN = static_cast(0); inline constexpr SecurityScheme_Type SecurityScheme_Type_Type_MAX = static_cast(3); -inline bool SecurityScheme_Type_IsValid(int value) { +[[nodiscard]] inline bool SecurityScheme_Type_IsValid(int value) { return 0 <= value && value <= 3; } inline constexpr int SecurityScheme_Type_Type_ARRAYSIZE = 3 + 1; -AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Type_descriptor(); +[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +SecurityScheme_Type_descriptor(); +[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_Type) { + return SecurityScheme_Type_descriptor(); +} template -const ::std::string& SecurityScheme_Type_Name(T value) { +[[nodiscard]] const ::std::string& SecurityScheme_Type_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Type_Name()."); return SecurityScheme_Type_Name(static_cast(value)); } template <> -inline const ::std::string& SecurityScheme_Type_Name(SecurityScheme_Type value) { +[[nodiscard]] inline const ::std::string& SecurityScheme_Type_Name(SecurityScheme_Type value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool SecurityScheme_Type_Parse( +[[nodiscard]] inline bool SecurityScheme_Type_Parse( ::absl::string_view name, SecurityScheme_Type* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_Type_descriptor(), name, value); @@ -330,24 +459,28 @@ inline constexpr SecurityScheme_In SecurityScheme_In_In_MIN = static_cast(0); inline constexpr SecurityScheme_In SecurityScheme_In_In_MAX = static_cast(2); -inline bool SecurityScheme_In_IsValid(int value) { +[[nodiscard]] inline bool SecurityScheme_In_IsValid(int value) { return 0 <= value && value <= 2; } inline constexpr int SecurityScheme_In_In_ARRAYSIZE = 2 + 1; -AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_In_descriptor(); +[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +SecurityScheme_In_descriptor(); +[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_In) { + return SecurityScheme_In_descriptor(); +} template -const ::std::string& SecurityScheme_In_Name(T value) { +[[nodiscard]] const ::std::string& SecurityScheme_In_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to In_Name()."); return SecurityScheme_In_Name(static_cast(value)); } template <> -inline const ::std::string& SecurityScheme_In_Name(SecurityScheme_In value) { +[[nodiscard]] inline const ::std::string& SecurityScheme_In_Name(SecurityScheme_In value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool SecurityScheme_In_Parse( +[[nodiscard]] inline bool SecurityScheme_In_Parse( ::absl::string_view name, SecurityScheme_In* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_In_descriptor(), name, value); @@ -369,24 +502,28 @@ inline constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MIN = static_cast(0); inline constexpr SecurityScheme_Flow SecurityScheme_Flow_Flow_MAX = static_cast(4); -inline bool SecurityScheme_Flow_IsValid(int value) { +[[nodiscard]] inline bool SecurityScheme_Flow_IsValid(int value) { return 0 <= value && value <= 4; } inline constexpr int SecurityScheme_Flow_Flow_ARRAYSIZE = 4 + 1; -AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Flow_descriptor(); +[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +SecurityScheme_Flow_descriptor(); +[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(SecurityScheme_Flow) { + return SecurityScheme_Flow_descriptor(); +} template -const ::std::string& SecurityScheme_Flow_Name(T value) { +[[nodiscard]] const ::std::string& SecurityScheme_Flow_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Flow_Name()."); return SecurityScheme_Flow_Name(static_cast(value)); } template <> -inline const ::std::string& SecurityScheme_Flow_Name(SecurityScheme_Flow value) { +[[nodiscard]] inline const ::std::string& SecurityScheme_Flow_Name(SecurityScheme_Flow value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool SecurityScheme_Flow_Parse( +[[nodiscard]] inline bool SecurityScheme_Flow_Parse( ::absl::string_view name, SecurityScheme_Flow* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(SecurityScheme_Flow_descriptor(), name, value); @@ -408,53 +545,60 @@ inline constexpr Scheme Scheme_MIN = static_cast(0); inline constexpr Scheme Scheme_MAX = static_cast(4); -inline bool Scheme_IsValid(int value) { +[[nodiscard]] inline bool Scheme_IsValid(int value) { return 0 <= value && value <= 4; } inline constexpr int Scheme_ARRAYSIZE = 4 + 1; -AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Scheme_descriptor(); +[[nodiscard]] AGONES_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +Scheme_descriptor(); +[[nodiscard]] inline auto ProtobufInternalGetEnumDescriptor(Scheme) { + return Scheme_descriptor(); +} template -const ::std::string& Scheme_Name(T value) { +[[nodiscard]] const ::std::string& Scheme_Name(T value) { static_assert(::std::is_same::value || ::std::is_integral::value, "Incorrect type passed to Scheme_Name()."); return Scheme_Name(static_cast(value)); } template <> -inline const ::std::string& Scheme_Name(Scheme value) { +[[nodiscard]] inline const ::std::string& Scheme_Name(Scheme value) { return ::google::protobuf::internal::NameOfDenseEnum( static_cast(value)); } -inline bool Scheme_Parse( +[[nodiscard]] inline bool Scheme_Parse( ::absl::string_view name, Scheme* PROTOBUF_NONNULL value) { return ::google::protobuf::internal::ParseNamedEnum(Scheme_descriptor(), name, value); } +using ::google::protobuf::internal::generated_enum::AbslParseFlag; +using ::google::protobuf::internal::generated_enum::AbslUnparseFlag; // =================================================================== // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED 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() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityRequirement_SecurityRequirementValue)); } #endif template - explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityRequirement_SecurityRequirementValue(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(SecurityRequirement_SecurityRequirementValue&& from) noexcept : SecurityRequirement_SecurityRequirementValue(nullptr, ::std::move(from)) {} inline SecurityRequirement_SecurityRequirementValue& operator=(const SecurityRequirement_SecurityRequirementValue& from) { CopyFrom(from); return *this; @@ -469,27 +613,27 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityRequirement_SecurityRequirementValue& default_instance() { - return *reinterpret_cast( - &_SecurityRequirement_SecurityRequirementValue_default_instance_); + [[nodiscard]] static const SecurityRequirement_SecurityRequirementValue& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityRequirement_SecurityRequirementValue_globals_); } static constexpr int kIndexInFileMessages = 25; friend void swap(SecurityRequirement_SecurityRequirementValue& a, SecurityRequirement_SecurityRequirementValue& b) { a.Swap(&b); } @@ -509,7 +653,8 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public // implements Message ---------------------------------------------- - SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] SecurityRequirement_SecurityRequirementValue* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -522,31 +667,33 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -557,7 +704,6 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue"; } - protected: explicit SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement_SecurityRequirementValue& from); SecurityRequirement_SecurityRequirementValue( @@ -572,9 +718,11 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -582,21 +730,26 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public kScopeFieldNumber = 1, }; // repeated string scope = 1; - int scope_size() const; + [[nodiscard]] int scope_size() + const; private: int _internal_scope_size() const; public: void clear_scope() ; - const ::std::string& scope(int index) const; + [[nodiscard]] const ::std::string& scope(int index) const; ::std::string* PROTOBUF_NONNULL mutable_scope(int index); template void set_scope(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_scope(); template void add_scope(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& scope() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_scope(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + scope() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_scope(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_scope() const; @@ -606,20 +759,27 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 0, 100, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 100, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -627,46 +787,56 @@ class AGONES_EXPORT SecurityRequirement_SecurityRequirementValue final : public ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityRequirement_SecurityRequirementValue& from_msg); - ::google::protobuf::RepeatedPtrField<::std::string> scope_; + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::RepeatedPtrField<::std::string> scope_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_; // ------------------------------------------------------------------- -class Scopes_ScopeEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Scopes_ScopeEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Scopes_ScopeEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Scopes_ScopeEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Scopes_ScopeEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 76, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 76, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -674,38 +844,48 @@ class Scopes_ScopeEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class Response_ExamplesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Response_ExamplesEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Response_ExamplesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Response_ExamplesEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Response_ExamplesEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Response_ExamplesEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 81, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 81, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -713,28 +893,28 @@ class Response_ExamplesEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT License final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED License final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.License) */ { public: inline License() : License(nullptr) {} ~License() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(License* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(License* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(License)); } #endif template - explicit PROTOBUF_CONSTEXPR License(::google::protobuf::internal::ConstantInitialized); + explicit constexpr License(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline License(const License& from) : License(nullptr, from) {} - inline License(License&& from) noexcept - : License(nullptr, ::std::move(from)) {} + inline License(License&& from) noexcept : License(nullptr, ::std::move(from)) {} inline License& operator=(const License& from) { CopyFrom(from); return *this; @@ -749,27 +929,27 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const License& default_instance() { - return *reinterpret_cast( - &_License_default_instance_); + [[nodiscard]] static const License& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&License_globals_); } static constexpr int kIndexInFileMessages = 14; friend void swap(License& a, License& b) { a.Swap(&b); } @@ -789,7 +969,8 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - License* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] License* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -802,31 +983,33 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -837,7 +1020,6 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.License"; } - protected: explicit License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const License& from); License( @@ -852,9 +1034,11 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -864,7 +1048,7 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const ::std::string& name() const; + [[nodiscard]] const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -879,7 +1063,7 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message public: // string url = 2; void clear_url() ; - const ::std::string& url() const; + [[nodiscard]] const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -895,20 +1079,27 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.License) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 65, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 65, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -925,29 +1116,28 @@ class AGONES_EXPORT License final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull License_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema_FieldConfiguration final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) */ { public: inline JSONSchema_FieldConfiguration() : JSONSchema_FieldConfiguration(nullptr) {} ~JSONSchema_FieldConfiguration() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(JSONSchema_FieldConfiguration* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(JSONSchema_FieldConfiguration* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(JSONSchema_FieldConfiguration)); } #endif template - explicit PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration(::google::protobuf::internal::ConstantInitialized); + explicit constexpr JSONSchema_FieldConfiguration(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); 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(JSONSchema_FieldConfiguration&& from) noexcept : JSONSchema_FieldConfiguration(nullptr, ::std::move(from)) {} inline JSONSchema_FieldConfiguration& operator=(const JSONSchema_FieldConfiguration& from) { CopyFrom(from); return *this; @@ -962,27 +1152,27 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const JSONSchema_FieldConfiguration& default_instance() { - return *reinterpret_cast( - &_JSONSchema_FieldConfiguration_default_instance_); + [[nodiscard]] static const JSONSchema_FieldConfiguration& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&JSONSchema_FieldConfiguration_globals_); } static constexpr int kIndexInFileMessages = 17; friend void swap(JSONSchema_FieldConfiguration& a, JSONSchema_FieldConfiguration& b) { a.Swap(&b); } @@ -1002,7 +1192,8 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto // implements Message ---------------------------------------------- - JSONSchema_FieldConfiguration* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] JSONSchema_FieldConfiguration* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1015,31 +1206,33 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1050,7 +1243,6 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration"; } - protected: explicit JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema_FieldConfiguration& from); JSONSchema_FieldConfiguration( @@ -1065,9 +1257,11 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1076,7 +1270,7 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto }; // string path_param_name = 47; void clear_path_param_name() ; - const ::std::string& path_param_name() const; + [[nodiscard]] const ::std::string& path_param_name() const; template void set_path_param_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_path_param_name(); @@ -1092,20 +1286,27 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 0, 95, + 7>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 0, 95, - 7> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1121,29 +1322,28 @@ class AGONES_EXPORT JSONSchema_FieldConfiguration final : public ::google::proto union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Header final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Header final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Header) */ { public: inline Header() : Header(nullptr) {} ~Header() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Header* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Header* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Header)); } #endif template - explicit PROTOBUF_CONSTEXPR Header(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Header(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Header(const Header& from) : Header(nullptr, from) {} - inline Header(Header&& from) noexcept - : Header(nullptr, ::std::move(from)) {} + inline Header(Header&& from) noexcept : Header(nullptr, ::std::move(from)) {} inline Header& operator=(const Header& from) { CopyFrom(from); return *this; @@ -1158,27 +1358,27 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Header& default_instance() { - return *reinterpret_cast( - &_Header_default_instance_); + [[nodiscard]] static const Header& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance
(&Header_globals_); } static constexpr int kIndexInFileMessages = 6; friend void swap(Header& a, Header& b) { a.Swap(&b); } @@ -1198,7 +1398,8 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Header* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Header* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct
(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1211,31 +1412,33 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1246,7 +1449,6 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Header"; } - protected: explicit Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from); Header( @@ -1261,9 +1463,11 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1276,7 +1480,7 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message }; // string description = 1; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -1291,7 +1495,7 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message public: // string type = 2; void clear_type() ; - const ::std::string& type() const; + [[nodiscard]] const ::std::string& type() const; template void set_type(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_type(); @@ -1306,7 +1510,7 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message public: // string format = 3; void clear_format() ; - const ::std::string& format() const; + [[nodiscard]] const ::std::string& format() const; template void set_format(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_format(); @@ -1321,7 +1525,7 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message public: // string default = 6; void clear_default_() ; - const ::std::string& default_() const; + [[nodiscard]] const ::std::string& default_() const; template void set_default_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_default_(); @@ -1336,7 +1540,7 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message public: // string pattern = 13; void clear_pattern() ; - const ::std::string& pattern() const; + [[nodiscard]] const ::std::string& pattern() const; template void set_pattern(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_pattern(); @@ -1352,20 +1556,27 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Header) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 5, + 0, 92, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 0, 92, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1385,29 +1596,28 @@ class AGONES_EXPORT Header final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Header_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED ExternalDocumentation final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) */ { public: inline ExternalDocumentation() : ExternalDocumentation(nullptr) {} ~ExternalDocumentation() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(ExternalDocumentation* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(ExternalDocumentation* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(ExternalDocumentation)); } #endif template - explicit PROTOBUF_CONSTEXPR ExternalDocumentation(::google::protobuf::internal::ConstantInitialized); + explicit constexpr ExternalDocumentation(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline ExternalDocumentation(const ExternalDocumentation& from) : ExternalDocumentation(nullptr, from) {} - inline ExternalDocumentation(ExternalDocumentation&& from) noexcept - : ExternalDocumentation(nullptr, ::std::move(from)) {} + inline ExternalDocumentation(ExternalDocumentation&& from) noexcept : ExternalDocumentation(nullptr, ::std::move(from)) {} inline ExternalDocumentation& operator=(const ExternalDocumentation& from) { CopyFrom(from); return *this; @@ -1422,27 +1632,27 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const ExternalDocumentation& default_instance() { - return *reinterpret_cast( - &_ExternalDocumentation_default_instance_); + [[nodiscard]] static const ExternalDocumentation& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&ExternalDocumentation_globals_); } static constexpr int kIndexInFileMessages = 15; friend void swap(ExternalDocumentation& a, ExternalDocumentation& b) { a.Swap(&b); } @@ -1462,7 +1672,8 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes // implements Message ---------------------------------------------- - ExternalDocumentation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] ExternalDocumentation* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1475,31 +1686,33 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1510,7 +1723,6 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation"; } - protected: explicit ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ExternalDocumentation& from); ExternalDocumentation( @@ -1525,9 +1737,11 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1537,7 +1751,7 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes }; // string description = 1; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -1552,7 +1766,7 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes public: // string url = 2; void clear_url() ; - const ::std::string& url() const; + [[nodiscard]] const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -1568,20 +1782,27 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 0, 86, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 0, 86, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1598,29 +1819,28 @@ class AGONES_EXPORT ExternalDocumentation final : public ::google::protobuf::Mes union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Contact final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Contact final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Contact) */ { public: inline Contact() : Contact(nullptr) {} ~Contact() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Contact* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Contact* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Contact)); } #endif template - explicit PROTOBUF_CONSTEXPR Contact(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Contact(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Contact(const Contact& from) : Contact(nullptr, from) {} - inline Contact(Contact&& from) noexcept - : Contact(nullptr, ::std::move(from)) {} + inline Contact(Contact&& from) noexcept : Contact(nullptr, ::std::move(from)) {} inline Contact& operator=(const Contact& from) { CopyFrom(from); return *this; @@ -1635,27 +1855,27 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Contact& default_instance() { - return *reinterpret_cast( - &_Contact_default_instance_); + [[nodiscard]] static const Contact& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Contact_globals_); } static constexpr int kIndexInFileMessages = 13; friend void swap(Contact& a, Contact& b) { a.Swap(&b); } @@ -1675,7 +1895,8 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Contact* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Contact* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1688,31 +1909,33 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1723,7 +1946,6 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Contact"; } - protected: explicit Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Contact& from); Contact( @@ -1738,9 +1960,11 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1751,7 +1975,7 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message }; // string name = 1; void clear_name() ; - const ::std::string& name() const; + [[nodiscard]] const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -1766,7 +1990,7 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message public: // string url = 2; void clear_url() ; - const ::std::string& url() const; + [[nodiscard]] const ::std::string& url() const; template void set_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_url(); @@ -1781,7 +2005,7 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message public: // string email = 3; void clear_email() ; - const ::std::string& email() const; + [[nodiscard]] const ::std::string& email() const; template void set_email(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_email(); @@ -1797,20 +2021,27 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Contact) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<2, 3, + 0, 70, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<2, 3, - 0, 70, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1828,29 +2059,28 @@ class AGONES_EXPORT Contact final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Contact_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Tag final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Tag final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Tag) */ { public: inline Tag() : Tag(nullptr) {} ~Tag() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Tag* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Tag* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Tag)); } #endif template - explicit PROTOBUF_CONSTEXPR Tag(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Tag(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Tag(const Tag& from) : Tag(nullptr, from) {} - inline Tag(Tag&& from) noexcept - : Tag(nullptr, ::std::move(from)) {} + inline Tag(Tag&& from) noexcept : Tag(nullptr, ::std::move(from)) {} inline Tag& operator=(const Tag& from) { CopyFrom(from); return *this; @@ -1865,27 +2095,27 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Tag& default_instance() { - return *reinterpret_cast( - &_Tag_default_instance_); + [[nodiscard]] static const Tag& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Tag_globals_); } static constexpr int kIndexInFileMessages = 20; friend void swap(Tag& a, Tag& b) { a.Swap(&b); } @@ -1905,7 +2135,8 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Tag* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Tag* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -1918,31 +2149,33 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -1953,7 +2186,6 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Tag"; } - protected: explicit Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tag& from); Tag( @@ -1968,9 +2200,11 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -1980,7 +2214,7 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message }; // string description = 2; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -1994,9 +2228,10 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - bool has_external_docs() const; + [[nodiscard]] bool has_external_docs() + const; void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -2011,20 +2246,27 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Tag) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 65, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 65, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2041,39 +2283,48 @@ class AGONES_EXPORT Tag final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Tag_class_data_; // ------------------------------------------------------------------- -class Swagger_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Swagger_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Swagger_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Swagger_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 77, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 77, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2081,38 +2332,48 @@ class Swagger_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class SecurityScheme_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; SecurityScheme_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &SecurityScheme_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 84, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 84, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2120,38 +2381,48 @@ class SecurityScheme_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class SecurityRequirement_SecurityRequirementEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; SecurityRequirement_SecurityRequirementEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 98, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 98, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2159,28 +2430,28 @@ class SecurityRequirement_SecurityRequirementEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Scopes final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Scopes final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Scopes) */ { public: inline Scopes() : Scopes(nullptr) {} ~Scopes() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Scopes* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Scopes* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Scopes)); } #endif template - explicit PROTOBUF_CONSTEXPR Scopes(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Scopes(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Scopes(const Scopes& from) : Scopes(nullptr, from) {} - inline Scopes(Scopes&& from) noexcept - : Scopes(nullptr, ::std::move(from)) {} + inline Scopes(Scopes&& from) noexcept : Scopes(nullptr, ::std::move(from)) {} inline Scopes& operator=(const Scopes& from) { CopyFrom(from); return *this; @@ -2195,27 +2466,27 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Scopes& default_instance() { - return *reinterpret_cast( - &_Scopes_default_instance_); + [[nodiscard]] static const Scopes& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Scopes_globals_); } static constexpr int kIndexInFileMessages = 29; friend void swap(Scopes& a, Scopes& b) { a.Swap(&b); } @@ -2235,7 +2506,8 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Scopes* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Scopes* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2248,31 +2520,33 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2283,7 +2557,6 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Scopes"; } - protected: explicit Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Scopes& from); Scopes( @@ -2298,9 +2571,11 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -2308,37 +2583,45 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message kScopeFieldNumber = 1, }; // map scope = 1; - int scope_size() const; + [[nodiscard]] int scope_size() + const; private: int _internal_scope_size() const; public: void clear_scope() ; - const ::google::protobuf::Map& scope() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_scope(); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& scope() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_scope(); private: - const ::google::protobuf::Map& _internal_scope() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_scope(); + const ::google::protobuf::Map<::std::string, ::std::string>& _internal_scope() const; + ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_scope(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Scopes) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 1, 62, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 1, 62, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2346,49 +2629,56 @@ class AGONES_EXPORT Scopes final : public ::google::protobuf::Message ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const Scopes& from_msg); - ::google::protobuf::internal::MapField - scope_; + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField scope_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Scopes_class_data_; // ------------------------------------------------------------------- -class Response_HeadersEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Response_HeadersEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Response_HeadersEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Response_HeadersEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Response_HeadersEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Response_HeadersEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 75, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 75, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2396,38 +2686,48 @@ class Response_HeadersEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class Response_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Response_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Response_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Response_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Response_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 78, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 78, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2435,38 +2735,48 @@ class Response_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class Operation_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Operation_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Operation_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Operation_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Operation_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 79, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 79, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2474,38 +2784,48 @@ class Operation_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class JSONSchema_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; JSONSchema_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &JSONSchema_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 80, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 80, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2513,38 +2833,48 @@ class JSONSchema_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class Info_ExtensionsEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Info_ExtensionsEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Info_ExtensionsEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Info_ExtensionsEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Info_ExtensionsEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 74, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 74, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -2552,28 +2882,28 @@ class Info_ExtensionsEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityScheme final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) */ { public: inline SecurityScheme() : SecurityScheme(nullptr) {} ~SecurityScheme() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityScheme* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(SecurityScheme* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityScheme)); } #endif template - explicit PROTOBUF_CONSTEXPR SecurityScheme(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityScheme(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline SecurityScheme(const SecurityScheme& from) : SecurityScheme(nullptr, from) {} - inline SecurityScheme(SecurityScheme&& from) noexcept - : SecurityScheme(nullptr, ::std::move(from)) {} + inline SecurityScheme(SecurityScheme&& from) noexcept : SecurityScheme(nullptr, ::std::move(from)) {} inline SecurityScheme& operator=(const SecurityScheme& from) { CopyFrom(from); return *this; @@ -2588,27 +2918,27 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityScheme& default_instance() { - return *reinterpret_cast( - &_SecurityScheme_default_instance_); + [[nodiscard]] static const SecurityScheme& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityScheme_globals_); } static constexpr int kIndexInFileMessages = 24; friend void swap(SecurityScheme& a, SecurityScheme& b) { a.Swap(&b); } @@ -2628,7 +2958,8 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - SecurityScheme* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] SecurityScheme* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -2641,31 +2972,33 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2676,7 +3009,6 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme"; } - protected: explicit SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityScheme& from); SecurityScheme( @@ -2691,16 +3023,18 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // 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) { + [[nodiscard]] static inline bool Type_IsValid(int value) { return SecurityScheme_Type_IsValid(value); } static constexpr Type Type_MIN = SecurityScheme_Type_Type_MIN; @@ -2710,10 +3044,10 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message return SecurityScheme_Type_descriptor(); } template - static inline const ::std::string& Type_Name(T value) { + [[nodiscard]] static inline const ::std::string& Type_Name(T value) { return SecurityScheme_Type_Name(value); } - static inline bool Type_Parse( + [[nodiscard]] static inline bool Type_Parse( ::absl::string_view name, Type* PROTOBUF_NONNULL value) { return SecurityScheme_Type_Parse(name, value); } @@ -2721,7 +3055,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message 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) { + [[nodiscard]] static inline bool In_IsValid(int value) { return SecurityScheme_In_IsValid(value); } static constexpr In In_MIN = SecurityScheme_In_In_MIN; @@ -2731,10 +3065,10 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message return SecurityScheme_In_descriptor(); } template - static inline const ::std::string& In_Name(T value) { + [[nodiscard]] static inline const ::std::string& In_Name(T value) { return SecurityScheme_In_Name(value); } - static inline bool In_Parse( + [[nodiscard]] static inline bool In_Parse( ::absl::string_view name, In* PROTOBUF_NONNULL value) { return SecurityScheme_In_Parse(name, value); } @@ -2744,7 +3078,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message 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) { + [[nodiscard]] static inline bool Flow_IsValid(int value) { return SecurityScheme_Flow_IsValid(value); } static constexpr Flow Flow_MIN = SecurityScheme_Flow_Flow_MIN; @@ -2754,17 +3088,16 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message return SecurityScheme_Flow_descriptor(); } template - static inline const ::std::string& Flow_Name(T value) { + [[nodiscard]] static inline const ::std::string& Flow_Name(T value) { return SecurityScheme_Flow_Name(value); } - static inline bool Flow_Parse( + [[nodiscard]] static inline bool Flow_Parse( ::absl::string_view name, Flow* PROTOBUF_NONNULL value) { return SecurityScheme_Flow_Parse(name, value); } // accessors ------------------------------------------------------- enum : int { - kExtensionsFieldNumber = 9, kDescriptionFieldNumber = 2, kNameFieldNumber = 3, kAuthorizationUrlFieldNumber = 6, @@ -2773,25 +3106,11 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message kTypeFieldNumber = 1, kInFieldNumber = 4, kFlowFieldNumber = 5, + kExtensionsFieldNumber = 9, }; - // 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* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); - - public: // string description = 2; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -2806,7 +3125,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // string name = 3; void clear_name() ; - const ::std::string& name() const; + [[nodiscard]] const ::std::string& name() const; template void set_name(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_name(); @@ -2821,7 +3140,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // string authorization_url = 6; void clear_authorization_url() ; - const ::std::string& authorization_url() const; + [[nodiscard]] const ::std::string& authorization_url() const; template void set_authorization_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_authorization_url(); @@ -2836,7 +3155,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // string token_url = 7; void clear_token_url() ; - const ::std::string& token_url() const; + [[nodiscard]] const ::std::string& token_url() const; template void set_token_url(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_token_url(); @@ -2850,9 +3169,10 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - bool has_scopes() const; + [[nodiscard]] bool has_scopes() + const; void clear_scopes() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& scopes() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE release_scopes(); ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL mutable_scopes(); void set_allocated_scopes(::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE value); @@ -2866,7 +3186,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; void clear_type() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type type() const; void set_type(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Type value); private: @@ -2876,7 +3196,7 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; void clear_in() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In in() const; void set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value); private: @@ -2886,31 +3206,54 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; void clear_flow() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow flow() const; + [[nodiscard]] ::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: + // map extensions = 9; + [[nodiscard]] int extensions_size() + const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 9, + 3, 124, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 9, - 3, 124, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -2920,10 +3263,6 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message const SecurityScheme& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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_; @@ -2932,34 +3271,34 @@ class AGONES_EXPORT SecurityScheme final : public ::google::protobuf::Message int type_; int in_; int flow_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityRequirement final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) */ { public: inline SecurityRequirement() : SecurityRequirement(nullptr) {} ~SecurityRequirement() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityRequirement* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(SecurityRequirement* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityRequirement)); } #endif template - explicit PROTOBUF_CONSTEXPR SecurityRequirement(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityRequirement(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline SecurityRequirement(const SecurityRequirement& from) : SecurityRequirement(nullptr, from) {} - inline SecurityRequirement(SecurityRequirement&& from) noexcept - : SecurityRequirement(nullptr, ::std::move(from)) {} + inline SecurityRequirement(SecurityRequirement&& from) noexcept : SecurityRequirement(nullptr, ::std::move(from)) {} inline SecurityRequirement& operator=(const SecurityRequirement& from) { CopyFrom(from); return *this; @@ -2974,27 +3313,27 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityRequirement& default_instance() { - return *reinterpret_cast( - &_SecurityRequirement_default_instance_); + [[nodiscard]] static const SecurityRequirement& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityRequirement_globals_); } static constexpr int kIndexInFileMessages = 27; friend void swap(SecurityRequirement& a, SecurityRequirement& b) { a.Swap(&b); } @@ -3014,7 +3353,8 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa // implements Message ---------------------------------------------- - SecurityRequirement* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] SecurityRequirement* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3027,31 +3367,33 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3062,7 +3404,6 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement"; } - protected: explicit SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement& from); SecurityRequirement( @@ -3077,9 +3418,11 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using SecurityRequirementValue = SecurityRequirement_SecurityRequirementValue; @@ -3088,37 +3431,45 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa kSecurityRequirementFieldNumber = 1, }; // map security_requirement = 1; - int security_requirement_size() const; + [[nodiscard]] int security_requirement_size() + const; private: int _internal_security_requirement_size() const; public: void clear_security_requirement() ; - const ::google::protobuf::Map& security_requirement() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_security_requirement(); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& security_requirement() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL mutable_security_requirement(); private: - const ::google::protobuf::Map& _internal_security_requirement() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_security_requirement(); + const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& _internal_security_requirement() const; + ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL _internal_mutable_security_requirement(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 2, 90, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 2, 90, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3126,39 +3477,36 @@ class AGONES_EXPORT SecurityRequirement final : public ::google::protobuf::Messa ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityRequirement& from_msg); - ::google::protobuf::internal::MapField - security_requirement_; + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField security_requirement_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED JSONSchema final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) */ { public: inline JSONSchema() : JSONSchema(nullptr) {} ~JSONSchema() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(JSONSchema* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(JSONSchema* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(JSONSchema)); } #endif template - explicit PROTOBUF_CONSTEXPR JSONSchema(::google::protobuf::internal::ConstantInitialized); + explicit constexpr JSONSchema(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline JSONSchema(const JSONSchema& from) : JSONSchema(nullptr, from) {} - inline JSONSchema(JSONSchema&& from) noexcept - : JSONSchema(nullptr, ::std::move(from)) {} + inline JSONSchema(JSONSchema&& from) noexcept : JSONSchema(nullptr, ::std::move(from)) {} inline JSONSchema& operator=(const JSONSchema& from) { CopyFrom(from); return *this; @@ -3173,27 +3521,27 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const JSONSchema& default_instance() { - return *reinterpret_cast( - &_JSONSchema_default_instance_); + [[nodiscard]] static const JSONSchema& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&JSONSchema_globals_); } static constexpr int kIndexInFileMessages = 19; friend void swap(JSONSchema& a, JSONSchema& b) { a.Swap(&b); } @@ -3213,7 +3561,8 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - JSONSchema* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] JSONSchema* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3226,31 +3575,33 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3261,7 +3612,6 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema"; } - protected: explicit JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema& from); JSONSchema( @@ -3276,9 +3626,11 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- using FieldConfiguration = JSONSchema_FieldConfiguration; using JSONSchemaSimpleTypes = JSONSchema_JSONSchemaSimpleTypes; @@ -3290,7 +3642,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message static constexpr JSONSchemaSimpleTypes NUMBER = JSONSchema_JSONSchemaSimpleTypes_NUMBER; static constexpr JSONSchemaSimpleTypes OBJECT = JSONSchema_JSONSchemaSimpleTypes_OBJECT; static constexpr JSONSchemaSimpleTypes STRING = JSONSchema_JSONSchemaSimpleTypes_STRING; - static inline bool JSONSchemaSimpleTypes_IsValid(int value) { + [[nodiscard]] static inline bool JSONSchemaSimpleTypes_IsValid(int value) { return JSONSchema_JSONSchemaSimpleTypes_IsValid(value); } static constexpr JSONSchemaSimpleTypes JSONSchemaSimpleTypes_MIN = JSONSchema_JSONSchemaSimpleTypes_JSONSchemaSimpleTypes_MIN; @@ -3300,10 +3652,10 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message return JSONSchema_JSONSchemaSimpleTypes_descriptor(); } template - static inline const ::std::string& JSONSchemaSimpleTypes_Name(T value) { + [[nodiscard]] static inline const ::std::string& JSONSchemaSimpleTypes_Name(T value) { return JSONSchema_JSONSchemaSimpleTypes_Name(value); } - static inline bool JSONSchemaSimpleTypes_Parse( + [[nodiscard]] static inline bool JSONSchemaSimpleTypes_Parse( ::absl::string_view name, JSONSchemaSimpleTypes* PROTOBUF_NONNULL value) { return JSONSchema_JSONSchemaSimpleTypes_Parse(name, value); } @@ -3314,7 +3666,6 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message kArrayFieldNumber = 34, kTypeFieldNumber = 35, kEnumFieldNumber = 46, - kExtensionsFieldNumber = 48, kRefFieldNumber = 3, kTitleFieldNumber = 5, kDescriptionFieldNumber = 6, @@ -3336,23 +3687,29 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message kExclusiveMaximumFieldNumber = 12, kExclusiveMinimumFieldNumber = 14, kUniqueItemsFieldNumber = 22, + kExtensionsFieldNumber = 48, }; // repeated string required = 26; - int required_size() const; + [[nodiscard]] int required_size() + const; private: int _internal_required_size() const; public: void clear_required() ; - const ::std::string& required(int index) const; + [[nodiscard]] const ::std::string& required(int index) const; ::std::string* PROTOBUF_NONNULL mutable_required(int index); template void set_required(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_required(); template void add_required(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& required() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_required(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + required() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_required(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_required() const; @@ -3360,21 +3717,26 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // repeated string array = 34; - int array_size() const; + [[nodiscard]] int array_size() + const; private: int _internal_array_size() const; public: void clear_array() ; - const ::std::string& array(int index) const; + [[nodiscard]] const ::std::string& array(int index) const; ::std::string* PROTOBUF_NONNULL mutable_array(int index); template void set_array(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_array(); template void add_array(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& array() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_array(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + array() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_array(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_array() const; @@ -3382,18 +3744,20 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - int type_size() const; + [[nodiscard]] int type_size() + const; private: int _internal_type_size() const; public: void clear_type() ; public: - ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes type(int index) const; + [[nodiscard]] ::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 ::google::protobuf::RepeatedField& type() const; - ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_type(); + [[nodiscard]] const ::google::protobuf::RepeatedField& type() + const; + [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_type(); private: const ::google::protobuf::RepeatedField& _internal_type() const; @@ -3401,45 +3765,35 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // repeated string enum = 46; - int enum__size() const; + [[nodiscard]] int enum__size() + const; private: int _internal_enum__size() const; public: void clear_enum_() ; - const ::std::string& enum_(int index) const; + [[nodiscard]] const ::std::string& enum_(int index) const; ::std::string* PROTOBUF_NONNULL mutable_enum_(int index); template void set_enum_(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_enum_(); template void add_enum_(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& enum_() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_enum_(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + enum_() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_enum_(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_enum_() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_enum_(); - public: - // map extensions = 48; - int extensions_size() const; - private: - int _internal_extensions_size() const; - - public: - void clear_extensions() ; - const ::google::protobuf::Map& extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); - public: // string ref = 3; void clear_ref() ; - const ::std::string& ref() const; + [[nodiscard]] const ::std::string& ref() const; template void set_ref(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_ref(); @@ -3454,7 +3808,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string title = 5; void clear_title() ; - const ::std::string& title() const; + [[nodiscard]] const ::std::string& title() const; template void set_title(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_title(); @@ -3469,7 +3823,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string description = 6; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -3484,7 +3838,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string default = 7; void clear_default_() ; - const ::std::string& default_() const; + [[nodiscard]] const ::std::string& default_() const; template void set_default_(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_default_(); @@ -3499,7 +3853,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string example = 9; void clear_example() ; - const ::std::string& example() const; + [[nodiscard]] const ::std::string& example() const; template void set_example(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_example(); @@ -3514,7 +3868,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string pattern = 17; void clear_pattern() ; - const ::std::string& pattern() const; + [[nodiscard]] const ::std::string& pattern() const; template void set_pattern(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_pattern(); @@ -3529,7 +3883,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // string format = 36; void clear_format() ; - const ::std::string& format() const; + [[nodiscard]] const ::std::string& format() const; template void set_format(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_format(); @@ -3543,9 +3897,10 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - bool has_field_configuration() const; + [[nodiscard]] bool has_field_configuration() + const; void clear_field_configuration() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& field_configuration() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NULLABLE release_field_configuration(); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NONNULL mutable_field_configuration(); void set_allocated_field_configuration(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NULLABLE value); @@ -3559,7 +3914,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // double multiple_of = 10; void clear_multiple_of() ; - double multiple_of() const; + [[nodiscard]] double multiple_of() const; void set_multiple_of(double value); private: @@ -3569,7 +3924,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // double maximum = 11; void clear_maximum() ; - double maximum() const; + [[nodiscard]] double maximum() const; void set_maximum(double value); private: @@ -3579,7 +3934,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // double minimum = 13; void clear_minimum() ; - double minimum() const; + [[nodiscard]] double minimum() const; void set_minimum(double value); private: @@ -3589,7 +3944,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 max_length = 15; void clear_max_length() ; - ::uint64_t max_length() const; + [[nodiscard]] ::uint64_t max_length() const; void set_max_length(::uint64_t value); private: @@ -3599,7 +3954,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 min_length = 16; void clear_min_length() ; - ::uint64_t min_length() const; + [[nodiscard]] ::uint64_t min_length() const; void set_min_length(::uint64_t value); private: @@ -3609,7 +3964,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 max_items = 20; void clear_max_items() ; - ::uint64_t max_items() const; + [[nodiscard]] ::uint64_t max_items() const; void set_max_items(::uint64_t value); private: @@ -3619,7 +3974,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 min_items = 21; void clear_min_items() ; - ::uint64_t min_items() const; + [[nodiscard]] ::uint64_t min_items() const; void set_min_items(::uint64_t value); private: @@ -3629,7 +3984,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 max_properties = 24; void clear_max_properties() ; - ::uint64_t max_properties() const; + [[nodiscard]] ::uint64_t max_properties() const; void set_max_properties(::uint64_t value); private: @@ -3639,7 +3994,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // uint64 min_properties = 25; void clear_min_properties() ; - ::uint64_t min_properties() const; + [[nodiscard]] ::uint64_t min_properties() const; void set_min_properties(::uint64_t value); private: @@ -3649,7 +4004,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // bool read_only = 8; void clear_read_only() ; - bool read_only() const; + [[nodiscard]] bool read_only() const; void set_read_only(bool value); private: @@ -3659,7 +4014,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // bool exclusive_maximum = 12; void clear_exclusive_maximum() ; - bool exclusive_maximum() const; + [[nodiscard]] bool exclusive_maximum() const; void set_exclusive_maximum(bool value); private: @@ -3669,7 +4024,7 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // bool exclusive_minimum = 14; void clear_exclusive_minimum() ; - bool exclusive_minimum() const; + [[nodiscard]] bool exclusive_minimum() const; void set_exclusive_minimum(bool value); private: @@ -3679,31 +4034,54 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message public: // bool unique_items = 22; void clear_unique_items() ; - bool unique_items() const; + [[nodiscard]] bool unique_items() const; void set_unique_items(bool value); private: bool _internal_unique_items() const; void _internal_set_unique_items(bool value); + public: + // map extensions = 48; + [[nodiscard]] int extensions_size() + const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<5, 26, + 3, 158, + 12>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<5, 26, - 3, 158, - 12> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3718,10 +4096,6 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message ::google::protobuf::RepeatedField type_; ::google::protobuf::internal::CachedSize _type_cached_byte_size_; ::google::protobuf::RepeatedPtrField<::std::string> enum__; - ::google::protobuf::internal::MapField - extensions_; ::google::protobuf::internal::ArenaStringPtr ref_; ::google::protobuf::internal::ArenaStringPtr title_; ::google::protobuf::internal::ArenaStringPtr description_; @@ -3743,34 +4117,34 @@ class AGONES_EXPORT JSONSchema final : public ::google::protobuf::Message bool exclusive_maximum_; bool exclusive_minimum_; bool unique_items_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Info final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Info final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Info) */ { public: inline Info() : Info(nullptr) {} ~Info() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Info* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Info* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Info)); } #endif template - explicit PROTOBUF_CONSTEXPR Info(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Info(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Info(const Info& from) : Info(nullptr, from) {} - inline Info(Info&& from) noexcept - : Info(nullptr, ::std::move(from)) {} + inline Info(Info&& from) noexcept : Info(nullptr, ::std::move(from)) {} inline Info& operator=(const Info& from) { CopyFrom(from); return *this; @@ -3785,27 +4159,27 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Info& default_instance() { - return *reinterpret_cast( - &_Info_default_instance_); + [[nodiscard]] static const Info& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Info_globals_); } static constexpr int kIndexInFileMessages = 12; friend void swap(Info& a, Info& b) { a.Swap(&b); } @@ -3825,7 +4199,8 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Info* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Info* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -3838,31 +4213,33 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -3873,7 +4250,6 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Info"; } - protected: explicit Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Info& from); Info( @@ -3888,39 +4264,26 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { - kExtensionsFieldNumber = 7, kTitleFieldNumber = 1, kDescriptionFieldNumber = 2, kTermsOfServiceFieldNumber = 3, kVersionFieldNumber = 6, kContactFieldNumber = 4, kLicenseFieldNumber = 5, + kExtensionsFieldNumber = 7, }; - // 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* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); - - public: // string title = 1; void clear_title() ; - const ::std::string& title() const; + [[nodiscard]] const ::std::string& title() const; template void set_title(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_title(); @@ -3935,7 +4298,7 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message public: // string description = 2; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -3950,7 +4313,7 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message public: // string terms_of_service = 3; void clear_terms_of_service() ; - const ::std::string& terms_of_service() const; + [[nodiscard]] const ::std::string& terms_of_service() const; template void set_terms_of_service(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_terms_of_service(); @@ -3965,7 +4328,7 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message public: // string version = 6; void clear_version() ; - const ::std::string& version() const; + [[nodiscard]] const ::std::string& version() const; template void set_version(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_version(); @@ -3979,9 +4342,10 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - bool has_contact() const; + [[nodiscard]] bool has_contact() + const; void clear_contact() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& contact() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE release_contact(); ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL mutable_contact(); void set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE value); @@ -3994,9 +4358,10 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - bool has_license() const; + [[nodiscard]] bool has_license() + const; void clear_license() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::License& license() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE release_license(); ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL mutable_license(); void set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE value); @@ -4007,24 +4372,47 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message const ::grpc::gateway::protoc_gen_openapiv2::options::License& _internal_license() const; ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL _internal_mutable_license(); + public: + // map extensions = 7; + [[nodiscard]] int extensions_size() + const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Info) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 7, + 4, 104, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 7, - 4, 104, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4034,54 +4422,60 @@ class AGONES_EXPORT Info final : public ::google::protobuf::Message const Info& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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* PROTOBUF_NULLABLE contact_; ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE license_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Info_class_data_; // ------------------------------------------------------------------- -class SecurityDefinitions_SecurityEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; SecurityDefinitions_SecurityEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &SecurityDefinitions_SecurityEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 87, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 87, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -4089,28 +4483,28 @@ class SecurityDefinitions_SecurityEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Schema final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Schema final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Schema) */ { public: inline Schema() : Schema(nullptr) {} ~Schema() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Schema* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Schema* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Schema)); } #endif template - explicit PROTOBUF_CONSTEXPR Schema(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Schema(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Schema(const Schema& from) : Schema(nullptr, from) {} - inline Schema(Schema&& from) noexcept - : Schema(nullptr, ::std::move(from)) {} + inline Schema(Schema&& from) noexcept : Schema(nullptr, ::std::move(from)) {} inline Schema& operator=(const Schema& from) { CopyFrom(from); return *this; @@ -4125,27 +4519,27 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Schema& default_instance() { - return *reinterpret_cast( - &_Schema_default_instance_); + [[nodiscard]] static const Schema& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Schema_globals_); } static constexpr int kIndexInFileMessages = 16; friend void swap(Schema& a, Schema& b) { a.Swap(&b); } @@ -4165,7 +4559,8 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Schema* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Schema* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4178,31 +4573,33 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4213,7 +4610,6 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Schema"; } - protected: explicit Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Schema& from); Schema( @@ -4228,9 +4624,11 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4243,7 +4641,7 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message }; // string discriminator = 2; void clear_discriminator() ; - const ::std::string& discriminator() const; + [[nodiscard]] const ::std::string& discriminator() const; template void set_discriminator(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_discriminator(); @@ -4258,7 +4656,7 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message public: // string example = 6; void clear_example() ; - const ::std::string& example() const; + [[nodiscard]] const ::std::string& example() const; template void set_example(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_example(); @@ -4272,9 +4670,10 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - bool has_json_schema() const; + [[nodiscard]] bool has_json_schema() + const; void clear_json_schema() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& json_schema() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULLABLE release_json_schema(); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONNULL mutable_json_schema(); void set_allocated_json_schema(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULLABLE value); @@ -4287,9 +4686,10 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - bool has_external_docs() const; + [[nodiscard]] bool has_external_docs() + const; void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -4303,7 +4703,7 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message public: // bool read_only = 3; void clear_read_only() ; - bool read_only() const; + [[nodiscard]] bool read_only() const; void set_read_only(bool value); private: @@ -4314,20 +4714,27 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Schema) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<3, 5, + 2, 77, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<3, 5, - 2, 77, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4347,29 +4754,28 @@ class AGONES_EXPORT Schema final : public ::google::protobuf::Message union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Schema_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED SecurityDefinitions final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) */ { public: inline SecurityDefinitions() : SecurityDefinitions(nullptr) {} ~SecurityDefinitions() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(SecurityDefinitions* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(SecurityDefinitions* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(SecurityDefinitions)); } #endif template - explicit PROTOBUF_CONSTEXPR SecurityDefinitions(::google::protobuf::internal::ConstantInitialized); + explicit constexpr SecurityDefinitions(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline SecurityDefinitions(const SecurityDefinitions& from) : SecurityDefinitions(nullptr, from) {} - inline SecurityDefinitions(SecurityDefinitions&& from) noexcept - : SecurityDefinitions(nullptr, ::std::move(from)) {} + inline SecurityDefinitions(SecurityDefinitions&& from) noexcept : SecurityDefinitions(nullptr, ::std::move(from)) {} inline SecurityDefinitions& operator=(const SecurityDefinitions& from) { CopyFrom(from); return *this; @@ -4384,27 +4790,27 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const SecurityDefinitions& default_instance() { - return *reinterpret_cast( - &_SecurityDefinitions_default_instance_); + [[nodiscard]] static const SecurityDefinitions& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&SecurityDefinitions_globals_); } static constexpr int kIndexInFileMessages = 22; friend void swap(SecurityDefinitions& a, SecurityDefinitions& b) { a.Swap(&b); } @@ -4424,7 +4830,8 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa // implements Message ---------------------------------------------- - SecurityDefinitions* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] SecurityDefinitions* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4437,31 +4844,33 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4472,7 +4881,6 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions"; } - protected: explicit SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityDefinitions& from); SecurityDefinitions( @@ -4487,9 +4895,11 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -4497,37 +4907,45 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa kSecurityFieldNumber = 1, }; // map security = 1; - int security_size() const; + [[nodiscard]] int security_size() + const; private: int _internal_security_size() const; public: void clear_security() ; - const ::google::protobuf::Map& security() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_security(); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& security() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL mutable_security(); private: - const ::google::protobuf::Map& _internal_security() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_security(); + const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& _internal_security() const; + ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL _internal_mutable_security(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<0, 1, + 2, 78, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<0, 1, - 2, 78, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4535,39 +4953,36 @@ class AGONES_EXPORT SecurityDefinitions final : public ::google::protobuf::Messa ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, const SecurityDefinitions& from_msg); - ::google::protobuf::internal::MapField - security_; + ::google::protobuf::internal::HasBits<1> _has_bits_; ::google::protobuf::internal::CachedSize _cached_size_; + ::google::protobuf::internal::MapField security_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Response final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Response final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Response) */ { public: inline Response() : Response(nullptr) {} ~Response() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Response* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Response* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Response)); } #endif template - explicit PROTOBUF_CONSTEXPR Response(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Response(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Response(const Response& from) : Response(nullptr, from) {} - inline Response(Response&& from) noexcept - : Response(nullptr, ::std::move(from)) {} + inline Response(Response&& from) noexcept : Response(nullptr, ::std::move(from)) {} inline Response& operator=(const Response& from) { CopyFrom(from); return *this; @@ -4582,27 +4997,27 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Response& default_instance() { - return *reinterpret_cast( - &_Response_default_instance_); + [[nodiscard]] static const Response& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Response_globals_); } static constexpr int kIndexInFileMessages = 10; friend void swap(Response& a, Response& b) { a.Swap(&b); } @@ -4622,7 +5037,8 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Response* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Response* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4635,31 +5051,33 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4670,7 +5088,6 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Response"; } - protected: explicit Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from); Response( @@ -4685,111 +5102,124 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- enum : int { + kDescriptionFieldNumber = 1, + kSchemaFieldNumber = 2, kHeadersFieldNumber = 3, kExamplesFieldNumber = 4, kExtensionsFieldNumber = 5, - kDescriptionFieldNumber = 1, - kSchemaFieldNumber = 2, }; + // string description = 1; + void clear_description() ; + [[nodiscard]] const ::std::string& description() const; + template + void set_description(Arg_&& arg, Args_... args); + ::std::string* PROTOBUF_NONNULL mutable_description(); + [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); + void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); + + private: + const ::std::string& _internal_description() const; + PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); + ::std::string* PROTOBUF_NONNULL _internal_mutable_description(); + + public: + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + [[nodiscard]] bool has_schema() + const; + void clear_schema() ; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& schema() const; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE release_schema(); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL mutable_schema(); + void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); + void unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE unsafe_arena_release_schema(); + + private: + const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; + ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL _internal_mutable_schema(); + + public: // map headers = 3; - int headers_size() const; + [[nodiscard]] int headers_size() + const; private: int _internal_headers_size() const; public: void clear_headers() ; - const ::google::protobuf::Map& headers() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_headers(); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& headers() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL mutable_headers(); private: - const ::google::protobuf::Map& _internal_headers() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_headers(); + const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& _internal_headers() const; + ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL _internal_mutable_headers(); public: // map examples = 4; - int examples_size() const; + [[nodiscard]] int examples_size() + const; private: int _internal_examples_size() const; public: void clear_examples() ; - const ::google::protobuf::Map& examples() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_examples(); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::std::string>& examples() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL mutable_examples(); private: - const ::google::protobuf::Map& _internal_examples() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_examples(); + const ::google::protobuf::Map<::std::string, ::std::string>& _internal_examples() const; + ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL _internal_mutable_examples(); public: // map extensions = 5; - int extensions_size() const; + [[nodiscard]] int extensions_size() + const; private: int _internal_extensions_size() const; public: void clear_extensions() ; - const ::google::protobuf::Map& extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); - - public: - // string description = 1; - void clear_description() ; - const ::std::string& description() const; - template - void set_description(Arg_&& arg, Args_... args); - ::std::string* PROTOBUF_NONNULL mutable_description(); - [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_description(); - void set_allocated_description(::std::string* PROTOBUF_NULLABLE value); + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); private: - const ::std::string& _internal_description() const; - PROTOBUF_ALWAYS_INLINE void _internal_set_description(const ::std::string& value); - ::std::string* PROTOBUF_NONNULL _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; - [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE release_schema(); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL mutable_schema(); - void set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); - void unsafe_arena_set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE value); - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE unsafe_arena_release_schema(); - - private: - const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& _internal_schema() const; - ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL _internal_mutable_schema(); + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Response) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 5, + 6, 95, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 5, - 6, 95, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -4799,58 +5229,58 @@ class AGONES_EXPORT Response final : public ::google::protobuf::Message const Response& from_msg); ::google::protobuf::internal::HasBits<1> _has_bits_; ::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* PROTOBUF_NULLABLE schema_; + ::google::protobuf::internal::MapField headers_; + ::google::protobuf::internal::MapField examples_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Response_class_data_; // ------------------------------------------------------------------- -class Swagger_ResponsesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Swagger_ResponsesEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Swagger_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Swagger_ResponsesEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Swagger_ResponsesEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 76, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 76, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -4858,38 +5288,48 @@ class Swagger_ResponsesEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class Operation_ResponsesEntry_DoNotUse final - : public ::google::protobuf::internal::MapEntry { public: using SuperType = - ::google::protobuf::internal::MapEntry; Operation_ResponsesEntry_DoNotUse(); template - explicit PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Operation_ResponsesEntry_DoNotUse(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); explicit Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); - static constexpr const void* PROTOBUF_NONNULL internal_default_instance() { - return &_Operation_ResponsesEntry_DoNotUse_default_instance_; + static constexpr const void* PROTOBUF_NONNULL internal_message_globals() { + return &Operation_ResponsesEntry_DoNotUse_globals_; } - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const ::google::protobuf::MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); private: friend class ::google::protobuf::MessageLite; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; - + friend ::google::protobuf::internal::PrivateAccess; + friend Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal; + + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<1, 2, + 1, 78, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<1, 2, - 1, 78, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL; static void* PROTOBUF_NONNULL PlacementNew_( @@ -4897,28 +5337,28 @@ class Operation_ResponsesEntry_DoNotUse final ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); static constexpr auto InternalNewImpl_(); }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Swagger final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Swagger final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Swagger) */ { public: inline Swagger() : Swagger(nullptr) {} ~Swagger() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Swagger* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Swagger* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Swagger)); } #endif template - explicit PROTOBUF_CONSTEXPR Swagger(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Swagger(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Swagger(const Swagger& from) : Swagger(nullptr, from) {} - inline Swagger(Swagger&& from) noexcept - : Swagger(nullptr, ::std::move(from)) {} + inline Swagger(Swagger&& from) noexcept : Swagger(nullptr, ::std::move(from)) {} inline Swagger& operator=(const Swagger& from) { CopyFrom(from); return *this; @@ -4933,27 +5373,27 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Swagger& default_instance() { - return *reinterpret_cast( - &_Swagger_default_instance_); + [[nodiscard]] static const Swagger& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Swagger_globals_); } static constexpr int kIndexInFileMessages = 2; friend void swap(Swagger& a, Swagger& b) { a.Swap(&b); } @@ -4973,7 +5413,8 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Swagger* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Swagger* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -4986,31 +5427,33 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5021,7 +5464,6 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Swagger"; } - protected: explicit Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Swagger& from); Swagger( @@ -5036,9 +5478,11 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5046,29 +5490,31 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message kSchemesFieldNumber = 5, kConsumesFieldNumber = 6, kProducesFieldNumber = 7, - kResponsesFieldNumber = 10, kSecurityFieldNumber = 12, - kExtensionsFieldNumber = 15, kSwaggerFieldNumber = 1, kHostFieldNumber = 3, kBasePathFieldNumber = 4, kInfoFieldNumber = 2, kSecurityDefinitionsFieldNumber = 11, kExternalDocsFieldNumber = 14, + kResponsesFieldNumber = 10, + kExtensionsFieldNumber = 15, }; // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - int schemes_size() const; + [[nodiscard]] 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; + [[nodiscard]] ::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* PROTOBUF_NONNULL mutable_schemes(); + [[nodiscard]] const ::google::protobuf::RepeatedField& schemes() + const; + [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); private: const ::google::protobuf::RepeatedField& _internal_schemes() const; @@ -5076,21 +5522,26 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // repeated string consumes = 6; - int consumes_size() const; + [[nodiscard]] int consumes_size() + const; private: int _internal_consumes_size() const; public: void clear_consumes() ; - const ::std::string& consumes(int index) const; + [[nodiscard]] const ::std::string& consumes(int index) const; ::std::string* PROTOBUF_NONNULL mutable_consumes(int index); template void set_consumes(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_consumes(); template void add_consumes(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& consumes() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_consumes(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + consumes() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_consumes(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_consumes() const; @@ -5098,77 +5549,56 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // repeated string produces = 7; - int produces_size() const; + [[nodiscard]] int produces_size() + const; private: int _internal_produces_size() const; public: void clear_produces() ; - const ::std::string& produces(int index) const; + [[nodiscard]] const ::std::string& produces(int index) const; ::std::string* PROTOBUF_NONNULL mutable_produces(int index); template void set_produces(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_produces(); template void add_produces(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& produces() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_produces(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + produces() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_produces(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_produces() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_produces(); - public: - // map responses = 10; - int responses_size() const; - private: - int _internal_responses_size() const; - - public: - void clear_responses() ; - const ::google::protobuf::Map& responses() const; - ::google::protobuf::Map* PROTOBUF_NONNULL mutable_responses(); - - private: - const ::google::protobuf::Map& _internal_responses() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_responses(); - public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - int security_size() const; + [[nodiscard]] int security_size() + const; private: int _internal_security_size() const; public: void clear_security() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); - ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL mutable_security(); + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL add_security(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& + security() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL + 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>* PROTOBUF_NONNULL _internal_mutable_security(); - public: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); public: // string swagger = 1; void clear_swagger() ; - const ::std::string& swagger() const; + [[nodiscard]] const ::std::string& swagger() const; template void set_swagger(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_swagger(); @@ -5183,7 +5613,7 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // string host = 3; void clear_host() ; - const ::std::string& host() const; + [[nodiscard]] const ::std::string& host() const; template void set_host(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_host(); @@ -5198,7 +5628,7 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // string base_path = 4; void clear_base_path() ; - const ::std::string& base_path() const; + [[nodiscard]] const ::std::string& base_path() const; template void set_base_path(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_base_path(); @@ -5212,9 +5642,10 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - bool has_info() const; + [[nodiscard]] bool has_info() + const; void clear_info() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::Info& info() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE release_info(); ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL mutable_info(); void set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE value); @@ -5227,9 +5658,10 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - bool has_security_definitions() const; + [[nodiscard]] bool has_security_definitions() + const; void clear_security_definitions() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& security_definitions() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE release_security_definitions(); ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NONNULL mutable_security_definitions(); void set_allocated_security_definitions(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE value); @@ -5242,9 +5674,10 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - bool has_external_docs() const; + [[nodiscard]] bool has_external_docs() + const; void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -5255,24 +5688,63 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& _internal_external_docs() const; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL _internal_mutable_external_docs(); + public: + // map responses = 10; + [[nodiscard]] int responses_size() + const; + private: + int _internal_responses_size() const; + + public: + void clear_responses() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& responses() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL mutable_responses(); + + private: + const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& _internal_responses() const; + ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL _internal_mutable_responses(); + + public: + // map extensions = 15; + [[nodiscard]] int extensions_size() + const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Swagger) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<4, 12, + 8, 121, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 12, - 8, 121, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5286,49 +5758,42 @@ class AGONES_EXPORT Swagger final : public ::google::protobuf::Message ::google::protobuf::internal::CachedSize _schemes_cached_byte_size_; ::google::protobuf::RepeatedPtrField<::std::string> consumes_; ::google::protobuf::RepeatedPtrField<::std::string> 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* PROTOBUF_NULLABLE info_; ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NULLABLE security_definitions_; ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE external_docs_; + ::google::protobuf::internal::MapField responses_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; - -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Swagger_class_data_; // ------------------------------------------------------------------- -class AGONES_EXPORT Operation final : public ::google::protobuf::Message +class AGONES_EXPORT PROTOBUF_FUTURE_ADD_EARLY_WARN_UNUSED Operation final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:grpc.gateway.protoc_gen_openapiv2.options.Operation) */ { public: inline Operation() : Operation(nullptr) {} ~Operation() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) - void operator delete(Operation* PROTOBUF_NONNULL msg, std::destroying_delete_t) { + void operator delete(Operation* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) { SharedDtor(*msg); ::google::protobuf::internal::SizedDelete(msg, sizeof(Operation)); } #endif template - explicit PROTOBUF_CONSTEXPR Operation(::google::protobuf::internal::ConstantInitialized); + explicit constexpr Operation(::google::protobuf::internal::ConstantInitialized, + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL + class_data); inline Operation(const Operation& from) : Operation(nullptr, from) {} - inline Operation(Operation&& from) noexcept - : Operation(nullptr, ::std::move(from)) {} + inline Operation(Operation&& from) noexcept : Operation(nullptr, ::std::move(from)) {} inline Operation& operator=(const Operation& from) { CopyFrom(from); return *this; @@ -5343,27 +5808,27 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message return *this; } - inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const + [[nodiscard]] 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* PROTOBUF_NONNULL mutable_unknown_fields() - ABSL_ATTRIBUTE_LIFETIME_BOUND { + [[nodiscard]] inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL + mutable_unknown_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND { return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() { return GetDescriptor(); } - static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() { + [[nodiscard]] static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL + GetDescriptor() { return default_instance().GetMetadata().descriptor; } - static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { + [[nodiscard]] static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() { return default_instance().GetMetadata().reflection; } - static const Operation& default_instance() { - return *reinterpret_cast( - &_Operation_default_instance_); + [[nodiscard]] static const Operation& default_instance() { + return *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance(&Operation_globals_); } static constexpr int kIndexInFileMessages = 5; friend void swap(Operation& a, Operation& b) { a.Swap(&b); } @@ -5383,7 +5848,8 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message // implements Message ---------------------------------------------- - Operation* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { + [[nodiscard]] Operation* PROTOBUF_NONNULL + New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const { return ::google::protobuf::Message::DefaultConstruct(arena); } using ::google::protobuf::Message::CopyFrom; @@ -5396,31 +5862,33 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message const ::google::protobuf::MessageLite& from_msg); public: - bool IsInitialized() const { + [[nodiscard]] bool IsInitialized() const { return true; } ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL; #if defined(PROTOBUF_CUSTOM_VTABLE) private: - static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); - static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg); + [[nodiscard]] static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream); public: - ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const { return ByteSizeLong(*this); } + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { return _InternalSerialize(*this, target, stream); } #else // PROTOBUF_CUSTOM_VTABLE - ::size_t ByteSizeLong() const final; - ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( + [[nodiscard]] ::size_t ByteSizeLong() const final; + [[nodiscard]] ::uint8_t* PROTOBUF_NONNULL _InternalSerialize( ::uint8_t* PROTOBUF_NONNULL target, ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final; #endif // PROTOBUF_CUSTOM_VTABLE - int GetCachedSize() const { return _impl_._cached_size_.Get(); } + [[nodiscard]] int GetCachedSize() const { + return _impl_._cached_size_.Get(); + } private: void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5431,7 +5899,6 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)(); static ::absl::string_view FullMessageName() { return "grpc.gateway.protoc_gen_openapiv2.options.Operation"; } - protected: explicit Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena); Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Operation& from); Operation( @@ -5446,9 +5913,11 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message static constexpr auto InternalNewImpl_(); public: - static constexpr auto InternalGenerateClassData_(); + static constexpr auto InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* PROTOBUF_NULLABLE tc_table = nullptr); - ::google::protobuf::Metadata GetMetadata() const; + [[nodiscard]] ::google::protobuf::Metadata GetMetadata() const; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- @@ -5456,32 +5925,37 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message kTagsFieldNumber = 1, kConsumesFieldNumber = 6, kProducesFieldNumber = 7, - kResponsesFieldNumber = 9, kSchemesFieldNumber = 10, kSecurityFieldNumber = 12, - kExtensionsFieldNumber = 13, kSummaryFieldNumber = 2, kDescriptionFieldNumber = 3, kOperationIdFieldNumber = 5, kExternalDocsFieldNumber = 4, kDeprecatedFieldNumber = 11, + kResponsesFieldNumber = 9, + kExtensionsFieldNumber = 13, }; // repeated string tags = 1; - int tags_size() const; + [[nodiscard]] int tags_size() + const; private: int _internal_tags_size() const; public: void clear_tags() ; - const ::std::string& tags(int index) const; + [[nodiscard]] const ::std::string& tags(int index) const; ::std::string* PROTOBUF_NONNULL mutable_tags(int index); template void set_tags(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_tags(); template void add_tags(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_tags(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + tags() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_tags(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_tags() const; @@ -5489,21 +5963,26 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // repeated string consumes = 6; - int consumes_size() const; + [[nodiscard]] int consumes_size() + const; private: int _internal_consumes_size() const; public: void clear_consumes() ; - const ::std::string& consumes(int index) const; + [[nodiscard]] const ::std::string& consumes(int index) const; ::std::string* PROTOBUF_NONNULL mutable_consumes(int index); template void set_consumes(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_consumes(); template void add_consumes(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& consumes() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_consumes(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + consumes() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_consumes(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_consumes() const; @@ -5511,55 +5990,47 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // repeated string produces = 7; - int produces_size() const; + [[nodiscard]] int produces_size() + const; private: int _internal_produces_size() const; public: void clear_produces() ; - const ::std::string& produces(int index) const; + [[nodiscard]] const ::std::string& produces(int index) const; ::std::string* PROTOBUF_NONNULL mutable_produces(int index); template void set_produces(int index, Arg_&& value, Args_... args); ::std::string* PROTOBUF_NONNULL add_produces(); template void add_produces(Arg_&& value, Args_... args); - const ::google::protobuf::RepeatedPtrField<::std::string>& produces() const; - ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_produces(); + [[nodiscard]] const + ::google::protobuf::RepeatedPtrField<::std::string>& + produces() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::std::string>* + PROTOBUF_NONNULL + mutable_produces(); private: const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_produces() const; ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_produces(); - 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* PROTOBUF_NONNULL mutable_responses(); - - private: - const ::google::protobuf::Map& _internal_responses() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_responses(); - public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - int schemes_size() const; + [[nodiscard]] 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; + [[nodiscard]] ::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* PROTOBUF_NONNULL mutable_schemes(); + [[nodiscard]] const ::google::protobuf::RepeatedField& schemes() + const; + [[nodiscard]] ::google::protobuf::RepeatedField* PROTOBUF_NONNULL mutable_schemes(); private: const ::google::protobuf::RepeatedField& _internal_schemes() const; @@ -5567,40 +6038,29 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - int security_size() const; + [[nodiscard]] int security_size() + const; private: int _internal_security_size() const; public: void clear_security() ; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); - ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL mutable_security(); + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; + [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL mutable_security(int index); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL add_security(); + [[nodiscard]] const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& + security() const; + [[nodiscard]] ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL + 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>* PROTOBUF_NONNULL _internal_mutable_security(); - public: - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& security(int index) const; - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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* PROTOBUF_NONNULL mutable_extensions(); - - private: - const ::google::protobuf::Map& _internal_extensions() const; - ::google::protobuf::Map* PROTOBUF_NONNULL _internal_mutable_extensions(); public: // string summary = 2; void clear_summary() ; - const ::std::string& summary() const; + [[nodiscard]] const ::std::string& summary() const; template void set_summary(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_summary(); @@ -5615,7 +6075,7 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // string description = 3; void clear_description() ; - const ::std::string& description() const; + [[nodiscard]] const ::std::string& description() const; template void set_description(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_description(); @@ -5630,7 +6090,7 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // string operation_id = 5; void clear_operation_id() ; - const ::std::string& operation_id() const; + [[nodiscard]] const ::std::string& operation_id() const; template void set_operation_id(Arg_&& arg, Args_... args); ::std::string* PROTOBUF_NONNULL mutable_operation_id(); @@ -5644,9 +6104,10 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - bool has_external_docs() const; + [[nodiscard]] bool has_external_docs() + const; void clear_external_docs() ; - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; + [[nodiscard]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& external_docs() const; [[nodiscard]] ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE release_external_docs(); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL mutable_external_docs(); void set_allocated_external_docs(::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NULLABLE value); @@ -5660,31 +6121,70 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message public: // bool deprecated = 11; void clear_deprecated() ; - bool deprecated() const; + [[nodiscard]] bool deprecated() const; void set_deprecated(bool value); private: bool _internal_deprecated() const; void _internal_set_deprecated(bool value); + public: + // map responses = 9; + [[nodiscard]] int responses_size() + const; + private: + int _internal_responses_size() const; + + public: + void clear_responses() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& responses() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL mutable_responses(); + + private: + const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& _internal_responses() const; + ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL _internal_mutable_responses(); + + public: + // map extensions = 13; + [[nodiscard]] int extensions_size() + const; + private: + int _internal_extensions_size() const; + + public: + void clear_extensions() ; + [[nodiscard]] const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& extensions() const; + [[nodiscard]] ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL mutable_extensions(); + + private: + const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& _internal_extensions() const; + ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL _internal_mutable_extensions(); + public: // @@protoc_insertion_point(class_scope:grpc.gateway.protoc_gen_openapiv2.options.Operation) private: class _Internal; + using ParseTableT_ = + ::google::protobuf::internal::TcParseTable<4, 12, + 6, 137, + 2>; + static constexpr ParseTableT_ InternalGenerateParseTable_( + const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL class_data); friend class ::google::protobuf::internal::TcParser; - static const ::google::protobuf::internal::TcParseTable<4, 12, - 6, 137, - 2> - _table_; + #ifndef PROTOBUF_MESSAGE_GLOBALS + static const ParseTableT_ _table_; + #endif friend class ::google::protobuf::MessageLite; friend class ::google::protobuf::Arena; + friend ::google::protobuf::internal::PrivateAccess; 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 constexpr Impl_(::google::protobuf::internal::InternalVisibility visibility, + ::google::protobuf::internal::ConstantInitialized) noexcept; inline explicit Impl_( ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* PROTOBUF_NULLABLE arena); @@ -5697,30 +6197,22 @@ class AGONES_EXPORT Operation final : public ::google::protobuf::Message ::google::protobuf::RepeatedPtrField<::std::string> tags_; ::google::protobuf::RepeatedPtrField<::std::string> consumes_; ::google::protobuf::RepeatedPtrField<::std::string> produces_; - ::google::protobuf::internal::MapField - responses_; ::google::protobuf::RepeatedField schemes_; ::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* PROTOBUF_NULLABLE external_docs_; bool deprecated_; + ::google::protobuf::internal::MapField responses_; + ::google::protobuf::internal::MapField extensions_; PROTOBUF_TSAN_DECLARE_MEMBER }; union { Impl_ _impl_; }; friend struct ::TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto; }; -AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation_class_data_; - // =================================================================== @@ -5745,7 +6237,7 @@ AGONES_EXPORT extern const ::google::protobuf::internal::ClassDataFull Operation inline void Swagger::clear_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.swagger_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::std::string& Swagger::swagger() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -5755,12 +6247,13 @@ inline const ::std::string& Swagger::swagger() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_swagger(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.swagger_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) } inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_swagger() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_swagger(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) return _s; @@ -5771,21 +6264,19 @@ inline const ::std::string& Swagger::_internal_swagger() const { } inline void Swagger::_internal_set_swagger(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.swagger_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.swagger_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_swagger() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.swagger) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); auto* released = _impl_.swagger_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.swagger_.Set("", GetArena()); @@ -5795,9 +6286,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_swagger() { inline void Swagger::set_allocated_swagger(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.swagger_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.swagger_.IsDefault()) { @@ -5808,19 +6299,19 @@ inline void Swagger::set_allocated_swagger(::std::string* PROTOBUF_NULLABLE valu // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; inline bool Swagger::has_info() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000080U); PROTOBUF_ASSUME(!value || _impl_.info_ != nullptr); return value; } inline void Swagger::clear_info() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.info_ != nullptr) _impl_.info_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Info& Swagger::_internal_info() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Info>(&::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_); } 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) @@ -5834,16 +6325,16 @@ inline void Swagger::unsafe_arena_set_allocated_info( } _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE Swagger::release_info() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); ::grpc::gateway::protoc_gen_openapiv2::options::Info* released = _impl_.info_; _impl_.info_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -5863,7 +6354,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NULLABLE S ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.info) - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); ::grpc::gateway::protoc_gen_openapiv2::options::Info* temp = _impl_.info_; _impl_.info_ = nullptr; return temp; @@ -5878,7 +6369,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL Sw } inline ::grpc::gateway::protoc_gen_openapiv2::options::Info* PROTOBUF_NONNULL Swagger::mutable_info() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::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; @@ -5895,9 +6386,9 @@ inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } _impl_.info_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Info*>(value); @@ -5908,7 +6399,7 @@ inline void Swagger::set_allocated_info(::grpc::gateway::protoc_gen_openapiv2::o inline void Swagger::clear_host() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.host_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline const ::std::string& Swagger::host() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -5918,12 +6409,13 @@ inline const ::std::string& Swagger::host() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_host(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); _impl_.host_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) } inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_host() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_host(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) return _s; @@ -5934,21 +6426,19 @@ inline const ::std::string& Swagger::_internal_host() const { } inline void Swagger::_internal_set_host(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.host_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_host() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.host_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_host() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.host) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); auto* released = _impl_.host_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.host_.Set("", GetArena()); @@ -5958,9 +6448,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_host() { inline void Swagger::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.host_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.host_.IsDefault()) { @@ -5973,7 +6463,7 @@ inline void Swagger::set_allocated_host(::std::string* PROTOBUF_NULLABLE value) inline void Swagger::clear_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.base_path_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline const ::std::string& Swagger::base_path() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -5983,12 +6473,13 @@ inline const ::std::string& Swagger::base_path() const template PROTOBUF_ALWAYS_INLINE void Swagger::set_base_path(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); _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* PROTOBUF_NONNULL Swagger::mutable_base_path() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_base_path(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) return _s; @@ -5999,21 +6490,19 @@ inline const ::std::string& Swagger::_internal_base_path() const { } inline void Swagger::_internal_set_base_path(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.base_path_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Swagger::_internal_mutable_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.base_path_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Swagger::release_base_path() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.base_path) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); auto* released = _impl_.base_path_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.base_path_.Set("", GetArena()); @@ -6023,9 +6512,9 @@ inline ::std::string* PROTOBUF_NULLABLE Swagger::release_base_path() { inline void Swagger::set_allocated_base_path(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } _impl_.base_path_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.base_path_.IsDefault()) { @@ -6044,6 +6533,7 @@ inline int Swagger::schemes_size() const { inline void Swagger::clear_schemes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.schemes_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } 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) @@ -6055,7 +6545,10 @@ inline void Swagger::set_schemes(int index, ::grpc::gateway::protoc_gen_openapiv } inline void Swagger::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_schemes()->Add(value); + _internal_mutable_schemes() + ->InternalAddWithArena( + internal_visibility(), this, value); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) } inline const ::google::protobuf::RepeatedField& Swagger::schemes() const @@ -6065,6 +6558,7 @@ inline const ::google::protobuf::RepeatedField& Swagger::schemes() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Swagger::mutable_schemes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.schemes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_schemes(); @@ -6090,11 +6584,15 @@ inline int Swagger::consumes_size() const { inline void Swagger::clear_consumes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.consumes_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL Swagger::add_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_consumes()->Add(); + ::std::string* _s = + _internal_mutable_consumes()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) return _s; } @@ -6110,16 +6608,19 @@ inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_consumes(int index) } template inline void Swagger::set_consumes(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_consumes()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_consumes()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } template inline void Swagger::add_consumes(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_consumes(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_consumes(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::consumes() @@ -6129,6 +6630,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::consu } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Swagger::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.consumes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_consumes(); @@ -6154,11 +6656,15 @@ inline int Swagger::produces_size() const { inline void Swagger::clear_produces() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.produces_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline ::std::string* PROTOBUF_NONNULL Swagger::add_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_produces()->Add(); + ::std::string* _s = + _internal_mutable_produces()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) return _s; } @@ -6174,16 +6680,19 @@ inline ::std::string* PROTOBUF_NONNULL Swagger::mutable_produces(int index) } template inline void Swagger::set_produces(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_produces()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_produces()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } template inline void Swagger::add_produces(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_produces(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_produces(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::produces() @@ -6193,6 +6702,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Swagger::produ } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Swagger::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.produces) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_produces(); @@ -6218,40 +6728,42 @@ inline int Swagger::responses_size() const { inline void Swagger::clear_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.responses_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } -inline const ::google::protobuf::Map& Swagger::_internal_responses() const { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Swagger::_internal_responses() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.responses_.GetMap(); } -inline const ::google::protobuf::Map& Swagger::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Swagger::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses) return _internal_responses(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::_internal_mutable_responses() { +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Swagger::_internal_mutable_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.responses_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::mutable_responses() +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Swagger::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.responses) return _internal_mutable_responses(); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; inline bool Swagger::has_security_definitions() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); PROTOBUF_ASSUME(!value || _impl_.security_definitions_ != nullptr); return value; } inline void Swagger::clear_security_definitions() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.security_definitions_ != nullptr) _impl_.security_definitions_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& Swagger::_internal_security_definitions() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>(&::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_); } 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) @@ -6265,16 +6777,16 @@ inline void Swagger::unsafe_arena_set_allocated_security_definitions( } _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } // @@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* PROTOBUF_NULLABLE Swagger::release_security_definitions() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* released = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6294,7 +6806,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROT ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security_definitions) - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* temp = _impl_.security_definitions_; _impl_.security_definitions_ = nullptr; return temp; @@ -6309,7 +6821,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROT } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions* PROTOBUF_NONNULL Swagger::mutable_security_definitions() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::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; @@ -6326,9 +6838,9 @@ inline void Swagger::set_allocated_security_definitions(::grpc::gateway::protoc_ if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } _impl_.security_definitions_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions*>(value); @@ -6345,27 +6857,25 @@ inline int Swagger::security_size() const { inline void Swagger::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); -} -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL Swagger::mutable_security() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_security(); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } 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().Get(index); } +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL Swagger::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_mutable_security()->Add(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = + _internal_mutable_security()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _add; } @@ -6374,6 +6884,13 @@ inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_op // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) return _internal_security(); } +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL +Swagger::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); + // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Swagger.security) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_security(); +} inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Swagger::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -6387,19 +6904,19 @@ Swagger::_internal_mutable_security() { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; inline bool Swagger::has_external_docs() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000200U); PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Swagger::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Swagger::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); } 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) @@ -6413,16 +6930,16 @@ inline void Swagger::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } // @@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* PROTOBUF_NULLABLE Swagger::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6442,7 +6959,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Swagger.external_docs) - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -6457,7 +6974,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Swagger::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); ::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; @@ -6474,9 +6991,9 @@ inline void Swagger::set_allocated_external_docs(::grpc::gateway::protoc_gen_ope if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -6490,20 +7007,21 @@ inline int Swagger::_internal_extensions_size() const { inline int Swagger::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& Swagger::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Swagger::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& Swagger::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Swagger::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Swagger::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Swagger::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Swagger::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Swagger.extensions) return _internal_mutable_extensions(); } @@ -6526,11 +7044,15 @@ inline int Operation::tags_size() const { inline void Operation::clear_tags() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.tags_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_tags()->Add(); + ::std::string* _s = + _internal_mutable_tags()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) return _s; } @@ -6546,16 +7068,19 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_tags(int index) } template inline void Operation::set_tags(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_tags()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_tags()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } template inline void Operation::add_tags(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_tags(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_tags(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::tags() @@ -6565,6 +7090,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::tag } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_tags() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.tags) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_tags(); @@ -6584,7 +7110,7 @@ Operation::_internal_mutable_tags() { inline void Operation::clear_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.summary_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline const ::std::string& Operation::summary() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6594,12 +7120,13 @@ inline const ::std::string& Operation::summary() const template PROTOBUF_ALWAYS_INLINE void Operation::set_summary(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); _impl_.summary_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) } inline ::std::string* PROTOBUF_NONNULL Operation::mutable_summary() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_summary(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) return _s; @@ -6610,21 +7137,19 @@ inline const ::std::string& Operation::_internal_summary() const { } inline void Operation::_internal_set_summary(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.summary_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.summary_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_summary() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.summary) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); auto* released = _impl_.summary_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.summary_.Set("", GetArena()); @@ -6634,9 +7159,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_summary() { inline void Operation::set_allocated_summary(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.summary_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.summary_.IsDefault()) { @@ -6649,7 +7174,7 @@ inline void Operation::set_allocated_summary(::std::string* PROTOBUF_NULLABLE va inline void Operation::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline const ::std::string& Operation::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6659,12 +7184,13 @@ inline const ::std::string& Operation::description() const template PROTOBUF_ALWAYS_INLINE void Operation::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) } inline ::std::string* PROTOBUF_NONNULL Operation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) return _s; @@ -6675,21 +7201,19 @@ inline const ::std::string& Operation::_internal_description() const { } inline void Operation::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.description) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -6699,9 +7223,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_description() { inline void Operation::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -6712,19 +7236,19 @@ inline void Operation::set_allocated_description(::std::string* PROTOBUF_NULLABL // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; inline bool Operation::has_external_docs() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000100U); PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Operation::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Operation::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); } 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) @@ -6738,16 +7262,16 @@ inline void Operation::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } // @@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* PROTOBUF_NULLABLE Operation::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -6767,7 +7291,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.external_docs) - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -6782,7 +7306,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Operation::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::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; @@ -6799,9 +7323,9 @@ inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -6812,7 +7336,7 @@ inline void Operation::set_allocated_external_docs(::grpc::gateway::protoc_gen_o inline void Operation::clear_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.operation_id_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } inline const ::std::string& Operation::operation_id() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -6822,12 +7346,13 @@ inline const ::std::string& Operation::operation_id() const template PROTOBUF_ALWAYS_INLINE void Operation::set_operation_id(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); _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* PROTOBUF_NONNULL Operation::mutable_operation_id() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::std::string* _s = _internal_mutable_operation_id(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) return _s; @@ -6838,21 +7363,19 @@ inline const ::std::string& Operation::_internal_operation_id() const { } inline void Operation::_internal_set_operation_id(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.operation_id_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Operation::_internal_mutable_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.operation_id_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Operation::release_operation_id() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Operation.operation_id) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); auto* released = _impl_.operation_id_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.operation_id_.Set("", GetArena()); @@ -6862,9 +7385,9 @@ inline ::std::string* PROTOBUF_NULLABLE Operation::release_operation_id() { inline void Operation::set_allocated_operation_id(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } _impl_.operation_id_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.operation_id_.IsDefault()) { @@ -6883,11 +7406,15 @@ inline int Operation::consumes_size() const { inline void Operation::clear_consumes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.consumes_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_consumes()->Add(); + ::std::string* _s = + _internal_mutable_consumes()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) return _s; } @@ -6903,16 +7430,19 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_consumes(int index) } template inline void Operation::set_consumes(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_consumes()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_consumes()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } template inline void Operation::add_consumes(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_consumes(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_consumes(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::consumes() @@ -6922,6 +7452,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::con } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_consumes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.consumes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_consumes(); @@ -6947,11 +7478,15 @@ inline int Operation::produces_size() const { inline void Operation::clear_produces() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.produces_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline ::std::string* PROTOBUF_NONNULL Operation::add_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_produces()->Add(); + ::std::string* _s = + _internal_mutable_produces()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) return _s; } @@ -6967,16 +7502,19 @@ inline ::std::string* PROTOBUF_NONNULL Operation::mutable_produces(int index) } template inline void Operation::set_produces(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_produces()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_produces()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } template inline void Operation::add_produces(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_produces(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_produces(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::produces() @@ -6986,6 +7524,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& Operation::pro } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL Operation::mutable_produces() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.produces) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_produces(); @@ -7011,21 +7550,23 @@ inline int Operation::responses_size() const { inline void Operation::clear_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.responses_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } -inline const ::google::protobuf::Map& Operation::_internal_responses() const { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Operation::_internal_responses() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.responses_.GetMap(); } -inline const ::google::protobuf::Map& Operation::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>& Operation::responses() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.responses) return _internal_responses(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::_internal_mutable_responses() { +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Operation::_internal_mutable_responses() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.responses_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::mutable_responses() +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>* PROTOBUF_NONNULL Operation::mutable_responses() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.responses) return _internal_mutable_responses(); } @@ -7040,6 +7581,7 @@ inline int Operation::schemes_size() const { inline void Operation::clear_schemes() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.schemes_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } 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) @@ -7051,7 +7593,10 @@ inline void Operation::set_schemes(int index, ::grpc::gateway::protoc_gen_openap } inline void Operation::add_schemes(::grpc::gateway::protoc_gen_openapiv2::options::Scheme value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_schemes()->Add(value); + _internal_mutable_schemes() + ->InternalAddWithArena( + internal_visibility(), this, value); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) } inline const ::google::protobuf::RepeatedField& Operation::schemes() const @@ -7061,6 +7606,7 @@ inline const ::google::protobuf::RepeatedField& Operation::schemes() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL Operation::mutable_schemes() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.schemes) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_schemes(); @@ -7080,7 +7626,7 @@ Operation::_internal_mutable_schemes() { inline void Operation::clear_deprecated() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.deprecated_ = false; - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } inline bool Operation::deprecated() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Operation.deprecated) @@ -7088,7 +7634,7 @@ inline bool Operation::deprecated() const { } inline void Operation::set_deprecated(bool value) { _internal_set_deprecated(value); - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Operation.deprecated) } inline bool Operation::_internal_deprecated() const { @@ -7110,27 +7656,25 @@ inline int Operation::security_size() const { inline void Operation::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); -} -inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL Operation::mutable_security() - ABSL_ATTRIBUTE_LIFETIME_BOUND { - // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) - ::google::protobuf::internal::TSanWrite(&_impl_); - return _internal_mutable_security(); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } 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().Get(index); } +inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL 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 ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* PROTOBUF_NONNULL Operation::add_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = _internal_mutable_security()->Add(); + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement* _add = + _internal_mutable_security()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _add; } @@ -7139,6 +7683,13 @@ inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_op // @@protoc_insertion_point(field_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) return _internal_security(); } +inline ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>* PROTOBUF_NONNULL +Operation::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); + // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.Operation.security) + ::google::protobuf::internal::TSanWrite(&_impl_); + return _internal_mutable_security(); +} inline const ::google::protobuf::RepeatedPtrField<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>& Operation::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); @@ -7157,20 +7708,21 @@ inline int Operation::_internal_extensions_size() const { inline int Operation::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& Operation::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Operation::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& Operation::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Operation::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Operation::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Operation::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Operation::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000800U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Operation.extensions) return _internal_mutable_extensions(); } @@ -7183,7 +7735,7 @@ inline ::google::protobuf::Map* PROTOBUF inline void Header::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Header::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7193,12 +7745,13 @@ inline const ::std::string& Header::description() const template PROTOBUF_ALWAYS_INLINE void Header::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.description) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.description) return _s; @@ -7209,21 +7762,19 @@ inline const ::std::string& Header::_internal_description() const { } inline void Header::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.description) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -7233,9 +7784,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_description() { inline void Header::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -7248,7 +7799,7 @@ inline void Header::set_allocated_description(::std::string* PROTOBUF_NULLABLE v inline void Header::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& Header::type() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7258,12 +7809,13 @@ inline const ::std::string& Header::type() const template PROTOBUF_ALWAYS_INLINE void Header::set_type(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.type_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.type) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_type(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.type) return _s; @@ -7274,21 +7826,19 @@ inline const ::std::string& Header::_internal_type() const { } inline void Header::_internal_set_type(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.type_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_type() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.type_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_type() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.type) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.type_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.type_.Set("", GetArena()); @@ -7298,9 +7848,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_type() { inline void Header::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.type_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_.IsDefault()) { @@ -7313,7 +7863,7 @@ inline void Header::set_allocated_type(::std::string* PROTOBUF_NULLABLE value) { inline void Header::clear_format() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.format_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& Header::format() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7323,12 +7873,13 @@ inline const ::std::string& Header::format() const template PROTOBUF_ALWAYS_INLINE void Header::set_format(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.format) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.format) return _s; @@ -7339,21 +7890,19 @@ inline const ::std::string& Header::_internal_format() const { } inline void Header::_internal_set_format(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.format_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_format() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.format_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_format() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.format) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.format_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.format_.Set("", GetArena()); @@ -7363,9 +7912,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_format() { inline void Header::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.format_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.format_.IsDefault()) { @@ -7378,7 +7927,7 @@ inline void Header::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) inline void Header::clear_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.default__.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& Header::default_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7388,12 +7937,13 @@ inline const ::std::string& Header::default_() const template PROTOBUF_ALWAYS_INLINE void Header::set_default_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.default) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.default) return _s; @@ -7404,21 +7954,19 @@ inline const ::std::string& Header::_internal_default_() const { } inline void Header::_internal_set_default_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; return _impl_.default__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.default) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.default__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.default__.Set("", GetArena()); @@ -7428,9 +7976,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_default_() { inline void Header::set_allocated_default_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.default__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.default__.IsDefault()) { @@ -7443,7 +7991,7 @@ inline void Header::set_allocated_default_(::std::string* PROTOBUF_NULLABLE valu inline void Header::clear_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pattern_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::std::string& Header::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7453,12 +8001,13 @@ inline const ::std::string& Header::pattern() const template PROTOBUF_ALWAYS_INLINE void Header::set_pattern(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) } inline ::std::string* PROTOBUF_NONNULL Header::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) return _s; @@ -7469,21 +8018,19 @@ inline const ::std::string& Header::_internal_pattern() const { } inline void Header::_internal_set_pattern(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; _impl_.pattern_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Header::_internal_mutable_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; return _impl_.pattern_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Header::release_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Header.pattern) - if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); auto* released = _impl_.pattern_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.pattern_.Set("", GetArena()); @@ -7493,9 +8040,9 @@ inline ::std::string* PROTOBUF_NULLABLE Header::release_pattern() { inline void Header::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.pattern_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pattern_.IsDefault()) { @@ -7518,7 +8065,7 @@ inline void Header::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value inline void Response::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Response::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7528,12 +8075,13 @@ inline const ::std::string& Response::description() const template PROTOBUF_ALWAYS_INLINE void Response::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Response.description) } inline ::std::string* PROTOBUF_NONNULL Response::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Response.description) return _s; @@ -7544,21 +8092,19 @@ inline const ::std::string& Response::_internal_description() const { } inline void Response::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Response::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Response::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.description) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -7568,9 +8114,9 @@ inline ::std::string* PROTOBUF_NULLABLE Response::release_description() { inline void Response::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -7581,19 +8127,19 @@ inline void Response::set_allocated_description(::std::string* PROTOBUF_NULLABLE // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; inline bool Response::has_schema() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.schema_ != nullptr); return value; } inline void Response::clear_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.schema_ != nullptr) _impl_.schema_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& Response::_internal_schema() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Schema>(&::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_); } 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) @@ -7607,16 +8153,16 @@ inline void Response::unsafe_arena_set_allocated_schema( } _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE Response::release_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::grpc::gateway::protoc_gen_openapiv2::options::Schema* released = _impl_.schema_; _impl_.schema_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -7636,7 +8182,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NULLABLE ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Response.schema) - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::grpc::gateway::protoc_gen_openapiv2::options::Schema* temp = _impl_.schema_; _impl_.schema_ = nullptr; return temp; @@ -7651,7 +8197,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Schema* PROTOBUF_NONNULL Response::mutable_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::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; @@ -7668,9 +8214,9 @@ inline void Response::set_allocated_schema(::grpc::gateway::protoc_gen_openapiv2 if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Schema*>(value); @@ -7687,21 +8233,23 @@ inline int Response::headers_size() const { inline void Response::clear_headers() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.headers_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } -inline const ::google::protobuf::Map& Response::_internal_headers() const { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& Response::_internal_headers() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.headers_.GetMap(); } -inline const ::google::protobuf::Map& Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>& Response::headers() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.headers) return _internal_headers(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_headers() { +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL Response::_internal_mutable_headers() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.headers_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_headers() +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>* PROTOBUF_NONNULL Response::mutable_headers() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.headers) return _internal_mutable_headers(); } @@ -7716,21 +8264,23 @@ inline int Response::examples_size() const { inline void Response::clear_examples() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.examples_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } -inline const ::google::protobuf::Map& Response::_internal_examples() const { +inline const ::google::protobuf::Map<::std::string, ::std::string>& Response::_internal_examples() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.examples_.GetMap(); } -inline const ::google::protobuf::Map& Response::examples() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::std::string>& Response::examples() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.examples) return _internal_examples(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_examples() { +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Response::_internal_mutable_examples() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.examples_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_examples() +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Response::mutable_examples() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.examples) return _internal_mutable_examples(); } @@ -7742,20 +8292,21 @@ inline int Response::_internal_extensions_size() const { inline int Response::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& Response::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Response::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& Response::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Response::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Response.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Response::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Response::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Response::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Response.extensions) return _internal_mutable_extensions(); } @@ -7770,7 +8321,7 @@ inline ::google::protobuf::Map* PROTOBUF inline void Info::clear_title() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.title_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Info::title() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7780,12 +8331,13 @@ inline const ::std::string& Info::title() const template PROTOBUF_ALWAYS_INLINE void Info::set_title(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.title) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.title) return _s; @@ -7796,21 +8348,19 @@ inline const ::std::string& Info::_internal_title() const { } inline void Info::_internal_set_title(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.title_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_title() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.title_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_title() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.title) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.title_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.title_.Set("", GetArena()); @@ -7820,9 +8370,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_title() { inline void Info::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.title_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.title_.IsDefault()) { @@ -7835,7 +8385,7 @@ inline void Info::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { inline void Info::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& Info::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7845,12 +8395,13 @@ inline const ::std::string& Info::description() const template PROTOBUF_ALWAYS_INLINE void Info::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.description) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.description) return _s; @@ -7861,21 +8412,19 @@ inline const ::std::string& Info::_internal_description() const { } inline void Info::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.description) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -7885,9 +8434,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_description() { inline void Info::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -7900,7 +8449,7 @@ inline void Info::set_allocated_description(::std::string* PROTOBUF_NULLABLE val inline void Info::clear_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.terms_of_service_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& Info::terms_of_service() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -7910,12 +8459,13 @@ inline const ::std::string& Info::terms_of_service() const template PROTOBUF_ALWAYS_INLINE void Info::set_terms_of_service(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _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* PROTOBUF_NONNULL Info::mutable_terms_of_service() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::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; @@ -7926,21 +8476,19 @@ inline const ::std::string& Info::_internal_terms_of_service() const { } inline void Info::_internal_set_terms_of_service(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.terms_of_service_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.terms_of_service_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_terms_of_service() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.terms_of_service) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.terms_of_service_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.terms_of_service_.Set("", GetArena()); @@ -7950,9 +8498,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_terms_of_service() { inline void Info::set_allocated_terms_of_service(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.terms_of_service_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.terms_of_service_.IsDefault()) { @@ -7963,19 +8511,19 @@ inline void Info::set_allocated_terms_of_service(::std::string* PROTOBUF_NULLABL // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; inline bool Info::has_contact() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); PROTOBUF_ASSUME(!value || _impl_.contact_ != nullptr); return value; } inline void Info::clear_contact() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.contact_ != nullptr) _impl_.contact_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& Info::_internal_contact() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Contact>(&::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_); } 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) @@ -7989,16 +8537,16 @@ inline void Info::unsafe_arena_set_allocated_contact( } _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABLE Info::release_contact() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); ::grpc::gateway::protoc_gen_openapiv2::options::Contact* released = _impl_.contact_; _impl_.contact_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8018,7 +8566,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NULLABL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.contact) - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); ::grpc::gateway::protoc_gen_openapiv2::options::Contact* temp = _impl_.contact_; _impl_.contact_ = nullptr; return temp; @@ -8033,7 +8581,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Contact* PROTOBUF_NONNULL Info::mutable_contact() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::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; @@ -8050,9 +8598,9 @@ inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.contact_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Contact*>(value); @@ -8061,19 +8609,19 @@ inline void Info::set_allocated_contact(::grpc::gateway::protoc_gen_openapiv2::o // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; inline bool Info::has_license() const { - bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U); PROTOBUF_ASSUME(!value || _impl_.license_ != nullptr); return value; } inline void Info::clear_license() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.license_ != nullptr) _impl_.license_->Clear(); - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::License& Info::_internal_license() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::License>(&::grpc::gateway::protoc_gen_openapiv2::options::License_globals_); } 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) @@ -8087,16 +8635,16 @@ inline void Info::unsafe_arena_set_allocated_license( } _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.Info.license) } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABLE Info::release_license() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::grpc::gateway::protoc_gen_openapiv2::options::License* released = _impl_.license_; _impl_.license_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8116,7 +8664,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NULLABL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.license) - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); ::grpc::gateway::protoc_gen_openapiv2::options::License* temp = _impl_.license_; _impl_.license_ = nullptr; return temp; @@ -8131,7 +8679,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::License* PROTOBUF_NONNULL Info::mutable_license() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::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; @@ -8148,9 +8696,9 @@ inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::o if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.license_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::License*>(value); @@ -8161,7 +8709,7 @@ inline void Info::set_allocated_license(::grpc::gateway::protoc_gen_openapiv2::o inline void Info::clear_version() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.version_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& Info::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8171,12 +8719,13 @@ inline const ::std::string& Info::version() const template PROTOBUF_ALWAYS_INLINE void Info::set_version(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _impl_.version_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Info.version) } inline ::std::string* PROTOBUF_NONNULL Info::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_version(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Info.version) return _s; @@ -8187,21 +8736,19 @@ inline const ::std::string& Info::_internal_version() const { } inline void Info::_internal_set_version(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; _impl_.version_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Info::_internal_mutable_version() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; return _impl_.version_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Info::release_version() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Info.version) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.version_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.version_.Set("", GetArena()); @@ -8211,9 +8758,9 @@ inline ::std::string* PROTOBUF_NULLABLE Info::release_version() { inline void Info::set_allocated_version(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.version_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.version_.IsDefault()) { @@ -8229,20 +8776,21 @@ inline int Info::_internal_extensions_size() const { inline int Info::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& Info::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Info::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& Info::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& Info::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Info.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Info::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Info::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Info::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL Info::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Info.extensions) return _internal_mutable_extensions(); } @@ -8255,7 +8803,7 @@ inline ::google::protobuf::Map* PROTOBUF inline void Contact::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Contact::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8265,12 +8813,13 @@ inline const ::std::string& Contact::name() const template PROTOBUF_ALWAYS_INLINE void Contact::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) return _s; @@ -8281,21 +8830,19 @@ inline const ::std::string& Contact::_internal_name() const { } inline void Contact::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -8305,9 +8852,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_name() { inline void Contact::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -8320,7 +8867,7 @@ inline void Contact::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) inline void Contact::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& Contact::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8330,12 +8877,13 @@ inline const ::std::string& Contact::url() const template PROTOBUF_ALWAYS_INLINE void Contact::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) return _s; @@ -8346,21 +8894,19 @@ inline const ::std::string& Contact::_internal_url() const { } inline void Contact::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.url) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -8370,9 +8916,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_url() { inline void Contact::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -8385,7 +8931,7 @@ inline void Contact::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { inline void Contact::clear_email() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.email_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& Contact::email() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8395,12 +8941,13 @@ inline const ::std::string& Contact::email() const template PROTOBUF_ALWAYS_INLINE void Contact::set_email(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _impl_.email_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) } inline ::std::string* PROTOBUF_NONNULL Contact::mutable_email() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_email(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) return _s; @@ -8411,21 +8958,19 @@ inline const ::std::string& Contact::_internal_email() const { } inline void Contact::_internal_set_email(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.email_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Contact::_internal_mutable_email() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.email_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Contact::release_email() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Contact.email) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.email_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.email_.Set("", GetArena()); @@ -8435,9 +8980,9 @@ inline ::std::string* PROTOBUF_NULLABLE Contact::release_email() { inline void Contact::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.email_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.email_.IsDefault()) { @@ -8454,7 +8999,7 @@ inline void Contact::set_allocated_email(::std::string* PROTOBUF_NULLABLE value) inline void License::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& License::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8464,12 +9009,13 @@ inline const ::std::string& License::name() const template PROTOBUF_ALWAYS_INLINE void License::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.name) } inline ::std::string* PROTOBUF_NONNULL License::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.name) return _s; @@ -8480,21 +9026,19 @@ inline const ::std::string& License::_internal_name() const { } inline void License::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL License::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE License::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -8504,9 +9048,9 @@ inline ::std::string* PROTOBUF_NULLABLE License::release_name() { inline void License::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -8519,7 +9063,7 @@ inline void License::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) inline void License::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& License::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8529,12 +9073,13 @@ inline const ::std::string& License::url() const template PROTOBUF_ALWAYS_INLINE void License::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.License.url) } inline ::std::string* PROTOBUF_NONNULL License::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.License.url) return _s; @@ -8545,21 +9090,19 @@ inline const ::std::string& License::_internal_url() const { } inline void License::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL License::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE License::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.License.url) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -8569,9 +9112,9 @@ inline ::std::string* PROTOBUF_NULLABLE License::release_url() { inline void License::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -8588,7 +9131,7 @@ inline void License::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { inline void ExternalDocumentation::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& ExternalDocumentation::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8598,12 +9141,13 @@ inline const ::std::string& ExternalDocumentation::description() const template PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) return _s; @@ -8614,21 +9158,19 @@ inline const ::std::string& ExternalDocumentation::_internal_description() const } inline void ExternalDocumentation::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.description) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -8638,9 +9180,9 @@ inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_descripti inline void ExternalDocumentation::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -8653,7 +9195,7 @@ inline void ExternalDocumentation::set_allocated_description(::std::string* PROT inline void ExternalDocumentation::clear_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& ExternalDocumentation::url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8663,12 +9205,13 @@ inline const ::std::string& ExternalDocumentation::url() const template PROTOBUF_ALWAYS_INLINE void ExternalDocumentation::set_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.url_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::mutable_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) return _s; @@ -8679,21 +9222,19 @@ inline const ::std::string& ExternalDocumentation::_internal_url() const { } inline void ExternalDocumentation::_internal_set_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL ExternalDocumentation::_internal_mutable_url() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation.url) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.url_.Set("", GetArena()); @@ -8703,9 +9244,9 @@ inline ::std::string* PROTOBUF_NULLABLE ExternalDocumentation::release_url() { inline void ExternalDocumentation::set_allocated_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.url_.IsDefault()) { @@ -8720,19 +9261,19 @@ inline void ExternalDocumentation::set_allocated_url(::std::string* PROTOBUF_NUL // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; inline bool Schema::has_json_schema() const { - bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000004U); PROTOBUF_ASSUME(!value || _impl_.json_schema_ != nullptr); return value; } inline void Schema::clear_json_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.json_schema_ != nullptr) _impl_.json_schema_->Clear(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& Schema::_internal_json_schema() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>(&::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_); } 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) @@ -8746,16 +9287,16 @@ inline void Schema::unsafe_arena_set_allocated_json_schema( } _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } // @@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* PROTOBUF_NULLABLE Schema::release_json_schema() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* released = _impl_.json_schema_; _impl_.json_schema_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8775,7 +9316,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NULL ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.json_schema) - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* temp = _impl_.json_schema_; _impl_.json_schema_ = nullptr; return temp; @@ -8790,7 +9331,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONN } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema* PROTOBUF_NONNULL Schema::mutable_json_schema() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::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; @@ -8807,9 +9348,9 @@ inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openap if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.json_schema_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema*>(value); @@ -8820,7 +9361,7 @@ inline void Schema::set_allocated_json_schema(::grpc::gateway::protoc_gen_openap inline void Schema::clear_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.discriminator_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Schema::discriminator() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -8830,12 +9371,13 @@ inline const ::std::string& Schema::discriminator() const template PROTOBUF_ALWAYS_INLINE void Schema::set_discriminator(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.discriminator_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) } inline ::std::string* PROTOBUF_NONNULL Schema::mutable_discriminator() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_discriminator(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) return _s; @@ -8846,21 +9388,19 @@ inline const ::std::string& Schema::_internal_discriminator() const { } inline void Schema::_internal_set_discriminator(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.discriminator_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Schema::_internal_mutable_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.discriminator_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Schema::release_discriminator() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.discriminator) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.discriminator_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.discriminator_.Set("", GetArena()); @@ -8870,9 +9410,9 @@ inline ::std::string* PROTOBUF_NULLABLE Schema::release_discriminator() { inline void Schema::set_allocated_discriminator(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.discriminator_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.discriminator_.IsDefault()) { @@ -8885,7 +9425,7 @@ inline void Schema::set_allocated_discriminator(::std::string* PROTOBUF_NULLABLE inline void Schema::clear_read_only() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.read_only_ = false; - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline bool Schema::read_only() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.Schema.read_only) @@ -8893,7 +9433,7 @@ inline bool Schema::read_only() const { } inline void Schema::set_read_only(bool value) { _internal_set_read_only(value); - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.read_only) } inline bool Schema::_internal_read_only() const { @@ -8907,19 +9447,19 @@ inline void Schema::_internal_set_read_only(bool value) { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; inline bool Schema::has_external_docs() const { - bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000008U); PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Schema::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Schema::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); } 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) @@ -8933,16 +9473,16 @@ inline void Schema::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } // @@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* PROTOBUF_NULLABLE Schema::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -8962,7 +9502,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.external_docs) - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -8977,7 +9517,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Schema::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::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; @@ -8994,9 +9534,9 @@ inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_open if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -9007,7 +9547,7 @@ inline void Schema::set_allocated_external_docs(::grpc::gateway::protoc_gen_open inline void Schema::clear_example() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.example_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& Schema::example() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9017,12 +9557,13 @@ inline const ::std::string& Schema::example() const template PROTOBUF_ALWAYS_INLINE void Schema::set_example(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) } inline ::std::string* PROTOBUF_NONNULL Schema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) return _s; @@ -9033,21 +9574,19 @@ inline const ::std::string& Schema::_internal_example() const { } inline void Schema::_internal_set_example(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.example_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Schema::_internal_mutable_example() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.example_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Schema::release_example() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Schema.example) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.example_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.example_.Set("", GetArena()); @@ -9057,9 +9596,9 @@ inline ::std::string* PROTOBUF_NULLABLE Schema::release_example() { inline void Schema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.example_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.example_.IsDefault()) { @@ -9076,7 +9615,7 @@ inline void Schema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value inline void JSONSchema_FieldConfiguration::clear_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.path_param_name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& JSONSchema_FieldConfiguration::path_param_name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9086,12 +9625,13 @@ inline const ::std::string& JSONSchema_FieldConfiguration::path_param_name() con template PROTOBUF_ALWAYS_INLINE void JSONSchema_FieldConfiguration::set_path_param_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _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* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::mutable_path_param_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::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; @@ -9102,21 +9642,19 @@ inline const ::std::string& JSONSchema_FieldConfiguration::_internal_path_param_ } inline void JSONSchema_FieldConfiguration::_internal_set_path_param_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.path_param_name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::_internal_mutable_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.path_param_name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema_FieldConfiguration::release_path_param_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration.path_param_name) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.path_param_name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.path_param_name_.Set("", GetArena()); @@ -9126,9 +9664,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema_FieldConfiguration::release_p inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.path_param_name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.path_param_name_.IsDefault()) { @@ -9147,7 +9685,7 @@ inline void JSONSchema_FieldConfiguration::set_allocated_path_param_name(::std:: inline void JSONSchema::clear_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.ref_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::std::string& JSONSchema::ref() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9157,12 +9695,13 @@ inline const ::std::string& JSONSchema::ref() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_ref(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); _impl_.ref_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_ref() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::std::string* _s = _internal_mutable_ref(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) return _s; @@ -9173,21 +9712,19 @@ inline const ::std::string& JSONSchema::_internal_ref() const { } inline void JSONSchema::_internal_set_ref(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.ref_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.ref_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_ref() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ref) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); auto* released = _impl_.ref_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.ref_.Set("", GetArena()); @@ -9197,9 +9734,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_ref() { inline void JSONSchema::set_allocated_ref(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.ref_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.ref_.IsDefault()) { @@ -9212,7 +9749,7 @@ inline void JSONSchema::set_allocated_ref(::std::string* PROTOBUF_NULLABLE value inline void JSONSchema::clear_title() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.title_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } inline const ::std::string& JSONSchema::title() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9222,12 +9759,13 @@ inline const ::std::string& JSONSchema::title() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_title(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); _impl_.title_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_title() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000020U); ::std::string* _s = _internal_mutable_title(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) return _s; @@ -9238,21 +9776,19 @@ inline const ::std::string& JSONSchema::_internal_title() const { } inline void JSONSchema::_internal_set_title(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.title_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_title() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.title_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_title() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.title) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000020U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); auto* released = _impl_.title_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.title_.Set("", GetArena()); @@ -9262,9 +9798,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_title() { inline void JSONSchema::set_allocated_title(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000020U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000020U); } _impl_.title_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.title_.IsDefault()) { @@ -9277,7 +9813,7 @@ inline void JSONSchema::set_allocated_title(::std::string* PROTOBUF_NULLABLE val inline void JSONSchema::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline const ::std::string& JSONSchema::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9287,12 +9823,13 @@ inline const ::std::string& JSONSchema::description() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000040U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) return _s; @@ -9303,21 +9840,19 @@ inline const ::std::string& JSONSchema::_internal_description() const { } inline void JSONSchema::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.description) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000040U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -9327,9 +9862,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_description() { inline void JSONSchema::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -9342,7 +9877,7 @@ inline void JSONSchema::set_allocated_description(::std::string* PROTOBUF_NULLAB inline void JSONSchema::clear_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.default__.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } inline const ::std::string& JSONSchema::default_() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9352,12 +9887,13 @@ inline const ::std::string& JSONSchema::default_() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_default_(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); _impl_.default__.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_default_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000080U); ::std::string* _s = _internal_mutable_default_(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) return _s; @@ -9368,21 +9904,19 @@ inline const ::std::string& JSONSchema::_internal_default_() const { } inline void JSONSchema::_internal_set_default_(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; _impl_.default__.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; return _impl_.default__.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_default_() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.default) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000080U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); auto* released = _impl_.default__.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.default__.Set("", GetArena()); @@ -9392,9 +9926,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_default_() { inline void JSONSchema::set_allocated_default_(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } _impl_.default__.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.default__.IsDefault()) { @@ -9407,7 +9941,7 @@ inline void JSONSchema::set_allocated_default_(::std::string* PROTOBUF_NULLABLE inline void JSONSchema::clear_read_only() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.read_only_ = false; - _impl_._has_bits_[0] &= ~0x00020000u; + ClearHasBit(_impl_._has_bits_[0], 0x00200000U); } inline bool JSONSchema::read_only() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.read_only) @@ -9415,7 +9949,7 @@ inline bool JSONSchema::read_only() const { } inline void JSONSchema::set_read_only(bool value) { _internal_set_read_only(value); - _impl_._has_bits_[0] |= 0x00020000u; + SetHasBit(_impl_._has_bits_[0], 0x00200000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.read_only) } inline bool JSONSchema::_internal_read_only() const { @@ -9431,7 +9965,7 @@ inline void JSONSchema::_internal_set_read_only(bool value) { inline void JSONSchema::clear_example() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.example_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } inline const ::std::string& JSONSchema::example() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9441,12 +9975,13 @@ inline const ::std::string& JSONSchema::example() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_example(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); _impl_.example_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_example() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); ::std::string* _s = _internal_mutable_example(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) return _s; @@ -9457,21 +9992,19 @@ inline const ::std::string& JSONSchema::_internal_example() const { } inline void JSONSchema::_internal_set_example(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; _impl_.example_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_example() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000010u; return _impl_.example_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_example() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.example) - if ((_impl_._has_bits_[0] & 0x00000010u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000100U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); auto* released = _impl_.example_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.example_.Set("", GetArena()); @@ -9481,9 +10014,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_example() { inline void JSONSchema::set_allocated_example(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000100U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } _impl_.example_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.example_.IsDefault()) { @@ -9496,7 +10029,7 @@ inline void JSONSchema::set_allocated_example(::std::string* PROTOBUF_NULLABLE v inline void JSONSchema::clear_multiple_of() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.multiple_of_ = 0; - _impl_._has_bits_[0] &= ~0x00000100u; + ClearHasBit(_impl_._has_bits_[0], 0x00001000U); } inline double JSONSchema::multiple_of() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.multiple_of) @@ -9504,7 +10037,7 @@ inline double JSONSchema::multiple_of() const { } inline void JSONSchema::set_multiple_of(double value) { _internal_set_multiple_of(value); - _impl_._has_bits_[0] |= 0x00000100u; + SetHasBit(_impl_._has_bits_[0], 0x00001000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.multiple_of) } inline double JSONSchema::_internal_multiple_of() const { @@ -9520,7 +10053,7 @@ inline void JSONSchema::_internal_set_multiple_of(double value) { inline void JSONSchema::clear_maximum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.maximum_ = 0; - _impl_._has_bits_[0] &= ~0x00000200u; + ClearHasBit(_impl_._has_bits_[0], 0x00002000U); } inline double JSONSchema::maximum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.maximum) @@ -9528,7 +10061,7 @@ inline double JSONSchema::maximum() const { } inline void JSONSchema::set_maximum(double value) { _internal_set_maximum(value); - _impl_._has_bits_[0] |= 0x00000200u; + SetHasBit(_impl_._has_bits_[0], 0x00002000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.maximum) } inline double JSONSchema::_internal_maximum() const { @@ -9544,7 +10077,7 @@ inline void JSONSchema::_internal_set_maximum(double value) { inline void JSONSchema::clear_exclusive_maximum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.exclusive_maximum_ = false; - _impl_._has_bits_[0] &= ~0x00040000u; + ClearHasBit(_impl_._has_bits_[0], 0x00400000U); } inline bool JSONSchema::exclusive_maximum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_maximum) @@ -9552,7 +10085,7 @@ inline bool JSONSchema::exclusive_maximum() const { } inline void JSONSchema::set_exclusive_maximum(bool value) { _internal_set_exclusive_maximum(value); - _impl_._has_bits_[0] |= 0x00040000u; + SetHasBit(_impl_._has_bits_[0], 0x00400000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_maximum) } inline bool JSONSchema::_internal_exclusive_maximum() const { @@ -9568,7 +10101,7 @@ inline void JSONSchema::_internal_set_exclusive_maximum(bool value) { inline void JSONSchema::clear_minimum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.minimum_ = 0; - _impl_._has_bits_[0] &= ~0x00000400u; + ClearHasBit(_impl_._has_bits_[0], 0x00004000U); } inline double JSONSchema::minimum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.minimum) @@ -9576,7 +10109,7 @@ inline double JSONSchema::minimum() const { } inline void JSONSchema::set_minimum(double value) { _internal_set_minimum(value); - _impl_._has_bits_[0] |= 0x00000400u; + SetHasBit(_impl_._has_bits_[0], 0x00004000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.minimum) } inline double JSONSchema::_internal_minimum() const { @@ -9592,7 +10125,7 @@ inline void JSONSchema::_internal_set_minimum(double value) { inline void JSONSchema::clear_exclusive_minimum() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.exclusive_minimum_ = false; - _impl_._has_bits_[0] &= ~0x00080000u; + ClearHasBit(_impl_._has_bits_[0], 0x00800000U); } inline bool JSONSchema::exclusive_minimum() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_minimum) @@ -9600,7 +10133,7 @@ inline bool JSONSchema::exclusive_minimum() const { } inline void JSONSchema::set_exclusive_minimum(bool value) { _internal_set_exclusive_minimum(value); - _impl_._has_bits_[0] |= 0x00080000u; + SetHasBit(_impl_._has_bits_[0], 0x00800000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.exclusive_minimum) } inline bool JSONSchema::_internal_exclusive_minimum() const { @@ -9616,7 +10149,7 @@ inline void JSONSchema::_internal_set_exclusive_minimum(bool value) { inline void JSONSchema::clear_max_length() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_length_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00000800u; + ClearHasBit(_impl_._has_bits_[0], 0x00008000U); } inline ::uint64_t JSONSchema::max_length() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_length) @@ -9624,7 +10157,7 @@ inline ::uint64_t JSONSchema::max_length() const { } inline void JSONSchema::set_max_length(::uint64_t value) { _internal_set_max_length(value); - _impl_._has_bits_[0] |= 0x00000800u; + SetHasBit(_impl_._has_bits_[0], 0x00008000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_length) } inline ::uint64_t JSONSchema::_internal_max_length() const { @@ -9640,7 +10173,7 @@ inline void JSONSchema::_internal_set_max_length(::uint64_t value) { inline void JSONSchema::clear_min_length() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_length_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00001000u; + ClearHasBit(_impl_._has_bits_[0], 0x00010000U); } inline ::uint64_t JSONSchema::min_length() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_length) @@ -9648,7 +10181,7 @@ inline ::uint64_t JSONSchema::min_length() const { } inline void JSONSchema::set_min_length(::uint64_t value) { _internal_set_min_length(value); - _impl_._has_bits_[0] |= 0x00001000u; + SetHasBit(_impl_._has_bits_[0], 0x00010000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_length) } inline ::uint64_t JSONSchema::_internal_min_length() const { @@ -9664,7 +10197,7 @@ inline void JSONSchema::_internal_set_min_length(::uint64_t value) { inline void JSONSchema::clear_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.pattern_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } inline const ::std::string& JSONSchema::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -9674,12 +10207,13 @@ inline const ::std::string& JSONSchema::pattern() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_pattern(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); _impl_.pattern_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000200U); ::std::string* _s = _internal_mutable_pattern(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) return _s; @@ -9690,21 +10224,19 @@ inline const ::std::string& JSONSchema::_internal_pattern() const { } inline void JSONSchema::_internal_set_pattern(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000020u; _impl_.pattern_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000020u; return _impl_.pattern_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_pattern() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.pattern) - if ((_impl_._has_bits_[0] & 0x00000020u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000200U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); auto* released = _impl_.pattern_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.pattern_.Set("", GetArena()); @@ -9714,9 +10246,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_pattern() { inline void JSONSchema::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000020u; + SetHasBit(_impl_._has_bits_[0], 0x00000200U); } else { - _impl_._has_bits_[0] &= ~0x00000020u; + ClearHasBit(_impl_._has_bits_[0], 0x00000200U); } _impl_.pattern_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.pattern_.IsDefault()) { @@ -9729,7 +10261,7 @@ inline void JSONSchema::set_allocated_pattern(::std::string* PROTOBUF_NULLABLE v inline void JSONSchema::clear_max_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_items_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00002000u; + ClearHasBit(_impl_._has_bits_[0], 0x00020000U); } inline ::uint64_t JSONSchema::max_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_items) @@ -9737,7 +10269,7 @@ inline ::uint64_t JSONSchema::max_items() const { } inline void JSONSchema::set_max_items(::uint64_t value) { _internal_set_max_items(value); - _impl_._has_bits_[0] |= 0x00002000u; + SetHasBit(_impl_._has_bits_[0], 0x00020000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_items) } inline ::uint64_t JSONSchema::_internal_max_items() const { @@ -9753,7 +10285,7 @@ inline void JSONSchema::_internal_set_max_items(::uint64_t value) { inline void JSONSchema::clear_min_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_items_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00004000u; + ClearHasBit(_impl_._has_bits_[0], 0x00040000U); } inline ::uint64_t JSONSchema::min_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_items) @@ -9761,7 +10293,7 @@ inline ::uint64_t JSONSchema::min_items() const { } inline void JSONSchema::set_min_items(::uint64_t value) { _internal_set_min_items(value); - _impl_._has_bits_[0] |= 0x00004000u; + SetHasBit(_impl_._has_bits_[0], 0x00040000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_items) } inline ::uint64_t JSONSchema::_internal_min_items() const { @@ -9777,7 +10309,7 @@ inline void JSONSchema::_internal_set_min_items(::uint64_t value) { inline void JSONSchema::clear_unique_items() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.unique_items_ = false; - _impl_._has_bits_[0] &= ~0x00100000u; + ClearHasBit(_impl_._has_bits_[0], 0x01000000U); } inline bool JSONSchema::unique_items() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.unique_items) @@ -9785,7 +10317,7 @@ inline bool JSONSchema::unique_items() const { } inline void JSONSchema::set_unique_items(bool value) { _internal_set_unique_items(value); - _impl_._has_bits_[0] |= 0x00100000u; + SetHasBit(_impl_._has_bits_[0], 0x01000000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.unique_items) } inline bool JSONSchema::_internal_unique_items() const { @@ -9801,7 +10333,7 @@ inline void JSONSchema::_internal_set_unique_items(bool value) { inline void JSONSchema::clear_max_properties() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.max_properties_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00008000u; + ClearHasBit(_impl_._has_bits_[0], 0x00080000U); } inline ::uint64_t JSONSchema::max_properties() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_properties) @@ -9809,7 +10341,7 @@ inline ::uint64_t JSONSchema::max_properties() const { } inline void JSONSchema::set_max_properties(::uint64_t value) { _internal_set_max_properties(value); - _impl_._has_bits_[0] |= 0x00008000u; + SetHasBit(_impl_._has_bits_[0], 0x00080000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.max_properties) } inline ::uint64_t JSONSchema::_internal_max_properties() const { @@ -9825,7 +10357,7 @@ inline void JSONSchema::_internal_set_max_properties(::uint64_t value) { inline void JSONSchema::clear_min_properties() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.min_properties_ = ::uint64_t{0u}; - _impl_._has_bits_[0] &= ~0x00010000u; + ClearHasBit(_impl_._has_bits_[0], 0x00100000U); } inline ::uint64_t JSONSchema::min_properties() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_properties) @@ -9833,7 +10365,7 @@ inline ::uint64_t JSONSchema::min_properties() const { } inline void JSONSchema::set_min_properties(::uint64_t value) { _internal_set_min_properties(value); - _impl_._has_bits_[0] |= 0x00010000u; + SetHasBit(_impl_._has_bits_[0], 0x00100000U); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.min_properties) } inline ::uint64_t JSONSchema::_internal_min_properties() const { @@ -9855,11 +10387,15 @@ inline int JSONSchema::required_size() const { inline void JSONSchema::clear_required() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.required_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_required() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_required()->Add(); + ::std::string* _s = + _internal_mutable_required()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) return _s; } @@ -9875,16 +10411,19 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_required(int index) } template inline void JSONSchema::set_required(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_required()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_required()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } template inline void JSONSchema::add_required(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_required(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_required(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::required() @@ -9894,6 +10433,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::re } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_required() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.required) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_required(); @@ -9919,11 +10459,15 @@ inline int JSONSchema::array_size() const { inline void JSONSchema::clear_array() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.array_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_array() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_array()->Add(); + ::std::string* _s = + _internal_mutable_array()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) return _s; } @@ -9939,16 +10483,19 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_array(int index) } template inline void JSONSchema::set_array(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_array()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_array()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } template inline void JSONSchema::add_array(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_array(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_array(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::array() @@ -9958,6 +10505,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::ar } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_array() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.array) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_array(); @@ -9983,6 +10531,7 @@ inline int JSONSchema::type_size() const { inline void JSONSchema::clear_type() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.type_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } 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) @@ -9994,7 +10543,10 @@ inline void JSONSchema::set_type(int index, ::grpc::gateway::protoc_gen_openapiv } inline void JSONSchema::add_type(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_JSONSchemaSimpleTypes value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _internal_mutable_type()->Add(value); + _internal_mutable_type() + ->InternalAddWithArena( + internal_visibility(), this, value); + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) } inline const ::google::protobuf::RepeatedField& JSONSchema::type() const @@ -10004,6 +10556,7 @@ inline const ::google::protobuf::RepeatedField& JSONSchema::type() const } inline ::google::protobuf::RepeatedField* PROTOBUF_NONNULL JSONSchema::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.type) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_type(); @@ -10023,7 +10576,7 @@ JSONSchema::_internal_mutable_type() { inline void JSONSchema::clear_format() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.format_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } inline const ::std::string& JSONSchema::format() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10033,12 +10586,13 @@ inline const ::std::string& JSONSchema::format() const template PROTOBUF_ALWAYS_INLINE void JSONSchema::set_format(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000400U); _impl_.format_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) } inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_format() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000400U); ::std::string* _s = _internal_mutable_format(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) return _s; @@ -10049,21 +10603,19 @@ inline const ::std::string& JSONSchema::_internal_format() const { } inline void JSONSchema::_internal_set_format(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000040u; _impl_.format_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::_internal_mutable_format() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000040u; return _impl_.format_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_format() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.format) - if ((_impl_._has_bits_[0] & 0x00000040u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000400U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); auto* released = _impl_.format_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.format_.Set("", GetArena()); @@ -10073,9 +10625,9 @@ inline ::std::string* PROTOBUF_NULLABLE JSONSchema::release_format() { inline void JSONSchema::set_allocated_format(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000400U); } else { - _impl_._has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000400U); } _impl_.format_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.format_.IsDefault()) { @@ -10094,11 +10646,15 @@ inline int JSONSchema::enum__size() const { inline void JSONSchema::clear_enum_() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.enum__.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline ::std::string* PROTOBUF_NONNULL JSONSchema::add_enum_() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_enum_()->Add(); + ::std::string* _s = + _internal_mutable_enum_()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) return _s; } @@ -10114,16 +10670,19 @@ inline ::std::string* PROTOBUF_NONNULL JSONSchema::mutable_enum_(int index) } template inline void JSONSchema::set_enum_(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_enum_()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_enum_()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } template inline void JSONSchema::add_enum_(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_enum_(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_enum_(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::enum_() @@ -10133,6 +10692,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& JSONSchema::en } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL JSONSchema::mutable_enum_() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.enum) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_enum_(); @@ -10150,19 +10710,19 @@ JSONSchema::_internal_mutable_enum_() { // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; inline bool JSONSchema::has_field_configuration() const { - bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000800U); PROTOBUF_ASSUME(!value || _impl_.field_configuration_ != nullptr); return value; } inline void JSONSchema::clear_field_configuration() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.field_configuration_ != nullptr) _impl_.field_configuration_->Clear(); - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& JSONSchema::_internal_field_configuration() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>(&::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_); } 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) @@ -10176,16 +10736,16 @@ inline void JSONSchema::unsafe_arena_set_allocated_field_configuration( } _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } // @@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* PROTOBUF_NULLABLE JSONSchema::release_field_configuration() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* released = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -10205,7 +10765,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfigura ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.field_configuration) - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* temp = _impl_.field_configuration_; _impl_.field_configuration_ = nullptr; return temp; @@ -10220,7 +10780,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfigura } inline ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration* PROTOBUF_NONNULL JSONSchema::mutable_field_configuration() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000800U); ::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; @@ -10237,9 +10797,9 @@ inline void JSONSchema::set_allocated_field_configuration(::grpc::gateway::proto if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000800U); } else { - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } _impl_.field_configuration_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration*>(value); @@ -10253,20 +10813,21 @@ inline int JSONSchema::_internal_extensions_size() const { inline int JSONSchema::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& JSONSchema::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& JSONSchema::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& JSONSchema::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& JSONSchema::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL JSONSchema::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL JSONSchema::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL JSONSchema::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL JSONSchema::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x02000000U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.extensions) return _internal_mutable_extensions(); } @@ -10279,7 +10840,7 @@ inline ::google::protobuf::Map* PROTOBUF inline void Tag::clear_description() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.description_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline const ::std::string& Tag::description() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10289,12 +10850,13 @@ inline const ::std::string& Tag::description() const template PROTOBUF_ALWAYS_INLINE void Tag::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) } inline ::std::string* PROTOBUF_NONNULL Tag::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) return _s; @@ -10305,21 +10867,19 @@ inline const ::std::string& Tag::_internal_description() const { } inline void Tag::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL Tag::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE Tag::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.description) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -10329,9 +10889,9 @@ inline ::std::string* PROTOBUF_NULLABLE Tag::release_description() { inline void Tag::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -10342,19 +10902,19 @@ inline void Tag::set_allocated_description(::std::string* PROTOBUF_NULLABLE valu // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; inline bool Tag::has_external_docs() const { - bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U); PROTOBUF_ASSUME(!value || _impl_.external_docs_ != nullptr); return value; } inline void Tag::clear_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.external_docs_ != nullptr) _impl_.external_docs_->Clear(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& Tag::_internal_external_docs() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>(&::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_); } 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) @@ -10368,16 +10928,16 @@ inline void Tag::unsafe_arena_set_allocated_external_docs( } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } // @@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* PROTOBUF_NULLABLE Tag::release_external_docs() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* released = _impl_.external_docs_; _impl_.external_docs_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -10397,7 +10957,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.Tag.external_docs) - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* temp = _impl_.external_docs_; _impl_.external_docs_ = nullptr; return temp; @@ -10412,7 +10972,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PR } inline ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation* PROTOBUF_NONNULL Tag::mutable_external_docs() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_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.Tag.external_docs) return _msg; @@ -10429,9 +10989,9 @@ inline void Tag::set_allocated_external_docs(::grpc::gateway::protoc_gen_openapi if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.external_docs_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation*>(value); @@ -10454,21 +11014,23 @@ inline int SecurityDefinitions::security_size() const { inline void SecurityDefinitions::clear_security() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::Map& SecurityDefinitions::_internal_security() const { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& SecurityDefinitions::_internal_security() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.security_.GetMap(); } -inline const ::google::protobuf::Map& SecurityDefinitions::security() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>& SecurityDefinitions::security() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security) return _internal_security(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityDefinitions::_internal_mutable_security() { +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL SecurityDefinitions::_internal_mutable_security() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.security_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityDefinitions::mutable_security() +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>* PROTOBUF_NONNULL SecurityDefinitions::mutable_security() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.security) return _internal_mutable_security(); } @@ -10483,7 +11045,7 @@ inline ::google::protobuf::Map PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_description(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); _impl_.description_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::mutable_description() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); ::std::string* _s = _internal_mutable_description(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) return _s; @@ -10533,21 +11096,19 @@ inline const ::std::string& SecurityScheme::_internal_description() const { } inline void SecurityScheme::_internal_set_description(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; _impl_.description_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_description() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000001u; return _impl_.description_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_description() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.description) - if ((_impl_._has_bits_[0] & 0x00000001u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); auto* released = _impl_.description_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.description_.Set("", GetArena()); @@ -10557,9 +11118,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_description() { inline void SecurityScheme::set_allocated_description(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000001u; + SetHasBit(_impl_._has_bits_[0], 0x00000001U); } else { - _impl_._has_bits_[0] &= ~0x00000001u; + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } _impl_.description_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.description_.IsDefault()) { @@ -10572,7 +11133,7 @@ inline void SecurityScheme::set_allocated_description(::std::string* PROTOBUF_NU inline void SecurityScheme::clear_name() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.name_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } inline const ::std::string& SecurityScheme::name() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10582,12 +11143,13 @@ inline const ::std::string& SecurityScheme::name() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_name(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); _impl_.name_.Set(static_cast(arg), args..., GetArena()); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000002U); ::std::string* _s = _internal_mutable_name(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) return _s; @@ -10598,21 +11160,19 @@ inline const ::std::string& SecurityScheme::_internal_name() const { } inline void SecurityScheme::_internal_set_name(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; _impl_.name_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_name() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000002u; return _impl_.name_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_name() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.name) - if ((_impl_._has_bits_[0] & 0x00000002u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); auto* released = _impl_.name_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.name_.Set("", GetArena()); @@ -10622,9 +11182,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_name() { inline void SecurityScheme::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000002u; + SetHasBit(_impl_._has_bits_[0], 0x00000002U); } else { - _impl_._has_bits_[0] &= ~0x00000002u; + ClearHasBit(_impl_._has_bits_[0], 0x00000002U); } _impl_.name_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) { @@ -10637,7 +11197,7 @@ inline void SecurityScheme::set_allocated_name(::std::string* PROTOBUF_NULLABLE inline void SecurityScheme::clear_in() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.in_ = 0; - _impl_._has_bits_[0] &= ~0x00000040u; + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In SecurityScheme::in() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.in) @@ -10645,7 +11205,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In Securit } inline void SecurityScheme::set_in(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_In value) { _internal_set_in(value); - _impl_._has_bits_[0] |= 0x00000040u; + SetHasBit(_impl_._has_bits_[0], 0x00000040U); // @@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 { @@ -10661,7 +11221,7 @@ inline void SecurityScheme::_internal_set_in(::grpc::gateway::protoc_gen_openapi inline void SecurityScheme::clear_flow() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.flow_ = 0; - _impl_._has_bits_[0] &= ~0x00000080u; + ClearHasBit(_impl_._has_bits_[0], 0x00000080U); } inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow SecurityScheme::flow() const { // @@protoc_insertion_point(field_get:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.flow) @@ -10669,7 +11229,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow Secur } inline void SecurityScheme::set_flow(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow value) { _internal_set_flow(value); - _impl_._has_bits_[0] |= 0x00000080u; + SetHasBit(_impl_._has_bits_[0], 0x00000080U); // @@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 { @@ -10685,7 +11245,7 @@ inline void SecurityScheme::_internal_set_flow(::grpc::gateway::protoc_gen_opena inline void SecurityScheme::clear_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.authorization_url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } inline const ::std::string& SecurityScheme::authorization_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10695,12 +11255,13 @@ inline const ::std::string& SecurityScheme::authorization_url() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_authorization_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); _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* PROTOBUF_NONNULL SecurityScheme::mutable_authorization_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000004U); ::std::string* _s = _internal_mutable_authorization_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) return _s; @@ -10711,21 +11272,19 @@ inline const ::std::string& SecurityScheme::_internal_authorization_url() const } inline void SecurityScheme::_internal_set_authorization_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; _impl_.authorization_url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000004u; return _impl_.authorization_url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_authorization_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.authorization_url) - if ((_impl_._has_bits_[0] & 0x00000004u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); auto* released = _impl_.authorization_url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.authorization_url_.Set("", GetArena()); @@ -10735,9 +11294,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_authorization_ur inline void SecurityScheme::set_allocated_authorization_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000004u; + SetHasBit(_impl_._has_bits_[0], 0x00000004U); } else { - _impl_._has_bits_[0] &= ~0x00000004u; + ClearHasBit(_impl_._has_bits_[0], 0x00000004U); } _impl_.authorization_url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.authorization_url_.IsDefault()) { @@ -10750,7 +11309,7 @@ inline void SecurityScheme::set_allocated_authorization_url(::std::string* PROTO inline void SecurityScheme::clear_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.token_url_.ClearToEmpty(); - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } inline const ::std::string& SecurityScheme::token_url() const ABSL_ATTRIBUTE_LIFETIME_BOUND { @@ -10760,12 +11319,13 @@ inline const ::std::string& SecurityScheme::token_url() const template PROTOBUF_ALWAYS_INLINE void SecurityScheme::set_token_url(Arg_&& arg, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); _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* PROTOBUF_NONNULL SecurityScheme::mutable_token_url() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000008U); ::std::string* _s = _internal_mutable_token_url(); // @@protoc_insertion_point(field_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) return _s; @@ -10776,21 +11336,19 @@ inline const ::std::string& SecurityScheme::_internal_token_url() const { } inline void SecurityScheme::_internal_set_token_url(const ::std::string& value) { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; _impl_.token_url_.Set(value, GetArena()); } inline ::std::string* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] |= 0x00000008u; return _impl_.token_url_.Mutable( GetArena()); } inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_token_url() { ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.token_url) - if ((_impl_._has_bits_[0] & 0x00000008u) == 0) { + if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) { return nullptr; } - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); auto* released = _impl_.token_url_.Release(); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) { _impl_.token_url_.Set("", GetArena()); @@ -10800,9 +11358,9 @@ inline ::std::string* PROTOBUF_NULLABLE SecurityScheme::release_token_url() { inline void SecurityScheme::set_allocated_token_url(::std::string* PROTOBUF_NULLABLE value) { ::google::protobuf::internal::TSanWrite(&_impl_); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000008u; + SetHasBit(_impl_._has_bits_[0], 0x00000008U); } else { - _impl_._has_bits_[0] &= ~0x00000008u; + ClearHasBit(_impl_._has_bits_[0], 0x00000008U); } _impl_.token_url_.SetAllocated(value, GetArena()); if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.token_url_.IsDefault()) { @@ -10813,19 +11371,19 @@ inline void SecurityScheme::set_allocated_token_url(::std::string* PROTOBUF_NULL // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; inline bool SecurityScheme::has_scopes() const { - bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; + bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U); PROTOBUF_ASSUME(!value || _impl_.scopes_ != nullptr); return value; } inline void SecurityScheme::clear_scopes() { ::google::protobuf::internal::TSanWrite(&_impl_); if (_impl_.scopes_ != nullptr) _impl_.scopes_->Clear(); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } inline const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& SecurityScheme::_internal_scopes() const { ::google::protobuf::internal::TSanRead(&_impl_); 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 : *::google::protobuf::internal::MessageGlobalsBase::ToDefaultInstance<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>(&::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_); } 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) @@ -10839,16 +11397,16 @@ inline void SecurityScheme::unsafe_arena_set_allocated_scopes( } _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); if (value != nullptr) { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE SecurityScheme::release_scopes() { ::google::protobuf::internal::TSanWrite(&_impl_); - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* released = _impl_.scopes_; _impl_.scopes_ = nullptr; if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) { @@ -10868,7 +11426,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NULLABLE ::google::protobuf::internal::TSanWrite(&_impl_); // @@protoc_insertion_point(field_release:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.scopes) - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* temp = _impl_.scopes_; _impl_.scopes_ = nullptr; return temp; @@ -10883,7 +11441,7 @@ inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL } inline ::grpc::gateway::protoc_gen_openapiv2::options::Scopes* PROTOBUF_NONNULL SecurityScheme::mutable_scopes() ABSL_ATTRIBUTE_LIFETIME_BOUND { - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); ::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; @@ -10900,9 +11458,9 @@ inline void SecurityScheme::set_allocated_scopes(::grpc::gateway::protoc_gen_ope if (message_arena != submessage_arena) { value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena); } - _impl_._has_bits_[0] |= 0x00000010u; + SetHasBit(_impl_._has_bits_[0], 0x00000010U); } else { - _impl_._has_bits_[0] &= ~0x00000010u; + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } _impl_.scopes_ = reinterpret_cast<::grpc::gateway::protoc_gen_openapiv2::options::Scopes*>(value); @@ -10916,20 +11474,21 @@ inline int SecurityScheme::_internal_extensions_size() const { inline int SecurityScheme::extensions_size() const { return _internal_extensions_size(); } -inline const ::google::protobuf::Map& SecurityScheme::_internal_extensions() const { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& SecurityScheme::_internal_extensions() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.extensions_.GetMap(); } -inline const ::google::protobuf::Map& SecurityScheme::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::google::protobuf::Value>& SecurityScheme::extensions() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions) return _internal_extensions(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_extensions() { +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL SecurityScheme::_internal_mutable_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.extensions_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityScheme::mutable_extensions() +inline ::google::protobuf::Map<::std::string, ::google::protobuf::Value>* PROTOBUF_NONNULL SecurityScheme::mutable_extensions() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000100U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.extensions) return _internal_mutable_extensions(); } @@ -10948,11 +11507,15 @@ inline int SecurityRequirement_SecurityRequirementValue::scope_size() const { inline void SecurityRequirement_SecurityRequirementValue::clear_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.scope_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } inline ::std::string* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::add_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { ::google::protobuf::internal::TSanWrite(&_impl_); - ::std::string* _s = _internal_mutable_scope()->Add(); + ::std::string* _s = + _internal_mutable_scope()->InternalAddWithArena( + ::google::protobuf::MessageLite::internal_visibility(), GetArena()); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add_mutable:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) return _s; } @@ -10968,16 +11531,19 @@ inline ::std::string* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementVa } template inline void SecurityRequirement_SecurityRequirementValue::set_scope(int index, Arg_&& value, Args_... args) { - ::google::protobuf::internal::AssignToString(*_internal_mutable_scope()->Mutable(index), ::std::forward(value), - args... ); + ::google::protobuf::internal::AssignToString( + *_internal_mutable_scope()->Mutable(index), + ::std::forward(value), args... ); // @@protoc_insertion_point(field_set:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } template inline void SecurityRequirement_SecurityRequirementValue::add_scope(Arg_&& value, Args_... args) { ::google::protobuf::internal::TSanWrite(&_impl_); - ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_scope(), - ::std::forward(value), - args... ); + ::google::protobuf::internal::AddToRepeatedPtrField( + ::google::protobuf::MessageLite::internal_visibility(), GetArena(), + *_internal_mutable_scope(), ::std::forward(value), + args... ); + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_add:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) } inline const ::google::protobuf::RepeatedPtrField<::std::string>& SecurityRequirement_SecurityRequirementValue::scope() @@ -10987,6 +11553,7 @@ inline const ::google::protobuf::RepeatedPtrField<::std::string>& SecurityRequir } inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_list:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue.scope) ::google::protobuf::internal::TSanWrite(&_impl_); return _internal_mutable_scope(); @@ -11018,21 +11585,23 @@ inline int SecurityRequirement::security_requirement_size() const { inline void SecurityRequirement::clear_security_requirement() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.security_requirement_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::Map& SecurityRequirement::_internal_security_requirement() const { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& SecurityRequirement::_internal_security_requirement() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.security_requirement_.GetMap(); } -inline const ::google::protobuf::Map& SecurityRequirement::security_requirement() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>& 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 ::google::protobuf::Map* PROTOBUF_NONNULL SecurityRequirement::_internal_mutable_security_requirement() { +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL SecurityRequirement::_internal_mutable_security_requirement() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.security_requirement_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL SecurityRequirement::mutable_security_requirement() +inline ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>* PROTOBUF_NONNULL SecurityRequirement::mutable_security_requirement() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.security_requirement) return _internal_mutable_security_requirement(); } @@ -11053,21 +11622,23 @@ inline int Scopes::scope_size() const { inline void Scopes::clear_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.scope_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000001U); } -inline const ::google::protobuf::Map& Scopes::_internal_scope() const { +inline const ::google::protobuf::Map<::std::string, ::std::string>& Scopes::_internal_scope() const { ::google::protobuf::internal::TSanRead(&_impl_); return _impl_.scope_.GetMap(); } -inline const ::google::protobuf::Map& Scopes::scope() const ABSL_ATTRIBUTE_LIFETIME_BOUND { +inline const ::google::protobuf::Map<::std::string, ::std::string>& Scopes::scope() const ABSL_ATTRIBUTE_LIFETIME_BOUND { // @@protoc_insertion_point(field_map:grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope) return _internal_scope(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Scopes::_internal_mutable_scope() { +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Scopes::_internal_mutable_scope() { ::google::protobuf::internal::TSanWrite(&_impl_); return _impl_.scope_.MutableMap(); } -inline ::google::protobuf::Map* PROTOBUF_NONNULL Scopes::mutable_scope() +inline ::google::protobuf::Map<::std::string, ::std::string>* PROTOBUF_NONNULL Scopes::mutable_scope() ABSL_ATTRIBUTE_LIFETIME_BOUND { + SetHasBit(_impl_._has_bits_[0], 0x00000001U); // @@protoc_insertion_point(field_mutable_map:grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope) return _internal_mutable_scope(); } @@ -11123,5 +11694,6 @@ inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::grpc::gateway: // @@protoc_insertion_point(global_scope) #include "google/protobuf/port_undef.inc" +// clang-format on #endif // protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto_2epb_2eh diff --git a/sdks/cpp/src/agones/sdk.pb.cc b/sdks/cpp/src/agones/sdk.pb.cc index 480bad09df..43f8fdb765 100644 --- a/sdks/cpp/src/agones/sdk.pb.cc +++ b/sdks/cpp/src/agones/sdk.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: sdk.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #include "sdk.pb.h" @@ -24,6 +24,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -39,11 +40,103 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; +#ifdef PROTOBUF_MESSAGE_GLOBALS +namespace { +PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData + file_reflection_data[] = { + // ::agones::dev::sdk::Empty + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::KeyValue + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::Duration + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_ObjectMeta + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Spec_Health + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Spec + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_Address + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_Port + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_CounterStatus + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_ListStatus + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer_Status + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, + // ::agones::dev::sdk::GameServer + {&::_pbi::kDescriptorMethods, &::descriptor_table_sdk_2eproto, /* tracker*/ nullptr,}, +}; +} // namespace +#endif namespace agones { namespace dev { namespace sdk { +class KeyValue::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_); +}; + +constexpr KeyValue::ParseTableT_ KeyValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\27\3\5\0\0\0\0\0" + "agones.dev.sdk.KeyValue" + "key" + "value" + }}, + }; +} + inline constexpr KeyValue::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, key_( @@ -54,26 +147,151 @@ inline constexpr KeyValue::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR KeyValue::KeyValue(::_pbi::ConstantInitialized) +constexpr KeyValue::KeyValue(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(KeyValue_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL KeyValue::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) KeyValue(arena); +} +constexpr auto KeyValue::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(KeyValue), alignof(KeyValue)); +} +constexpr auto KeyValue::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &KeyValue::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &KeyValue::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &KeyValue::ByteSizeLong, + &KeyValue::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[1], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct KeyValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR KeyValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~KeyValueDefaultTypeInternal() {} +struct KeyValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr KeyValueGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + KeyValue_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(KeyValue::InternalGenerateClassData_( + _default, &KeyValue_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~KeyValueGlobalsTypeInternal() {} union { - KeyValue _instance; + alignas(::_pbi::kMaxMessageAlignment) KeyValue _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(KeyValueGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 KeyValueDefaultTypeInternal _KeyValue_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST KeyValueGlobalsTypeInternal KeyValue_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* KeyValue_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return KeyValue_globals_.GetClassData(); +#else + return KeyValue_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Status_Port::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_); +}; + +constexpr GameServer_Status_Port::ParseTableT_ GameServer_Status_Port::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int32 port = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + "\45\4\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Port" + "name" + }}, + }; +} + inline constexpr GameServer_Status_Port::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( @@ -82,78 +300,455 @@ inline constexpr GameServer_Status_Port::Impl_::Impl_( port_{0} {} template -PROTOBUF_CONSTEXPR GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized) +constexpr GameServer_Status_Port::GameServer_Status_Port(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Status_Port_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Status_Port::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_Port(arena); +} +constexpr auto GameServer_Status_Port::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Port), alignof(GameServer_Status_Port)); +} +constexpr auto GameServer_Status_Port::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_Port::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_Port::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Port::ByteSizeLong, + &GameServer_Status_Port::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[9], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_Status_PortDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_PortDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_PortDefaultTypeInternal() {} +struct GameServer_Status_PortGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_PortGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_Port_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_Port::InternalGenerateClassData_( + _default, &GameServer_Status_Port_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_PortGlobalsTypeInternal() {} union { - GameServer_Status_Port _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_Port _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_PortGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_PortDefaultTypeInternal _GameServer_Status_Port_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_PortGlobalsTypeInternal GameServer_Status_Port_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_Port_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_Port_globals_.GetClassData(); +#else + return GameServer_Status_Port_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Status_ListStatus::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_); +}; + +constexpr GameServer_Status_ListStatus::ParseTableT_ GameServer_Status_ListStatus::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_)}}, + // int64 capacity = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_ListStatus, _impl_.capacity_), 1>(), + {8, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 capacity = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // repeated string values = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), _Internal::kHasBitsOffset + 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" + }}, + }; +} + inline constexpr GameServer_Status_ListStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - values_{}, + values_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status_ListStatus, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() + } + , capacity_{::int64_t{0}} {} template -PROTOBUF_CONSTEXPR GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized) +constexpr GameServer_Status_ListStatus::GameServer_Status_ListStatus(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Status_ListStatus_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } -struct GameServer_Status_ListStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_ListStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_ListStatusDefaultTypeInternal() {} +inline void* PROTOBUF_NONNULL GameServer_Status_ListStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_ListStatus(arena); +} +constexpr auto GameServer_Status_ListStatus::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListStatus), alignof(GameServer_Status_ListStatus)); +} +constexpr auto GameServer_Status_ListStatus::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_ListStatus::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_ListStatus::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_ListStatus::ByteSizeLong, + &GameServer_Status_ListStatus::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[11], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct GameServer_Status_ListStatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_ListStatusGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_ListStatus_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_ListStatus::InternalGenerateClassData_( + _default, &GameServer_Status_ListStatus_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_ListStatusGlobalsTypeInternal() {} union { - GameServer_Status_ListStatus _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_ListStatus _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatusGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_ListStatusDefaultTypeInternal _GameServer_Status_ListStatus_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_ListStatusGlobalsTypeInternal GameServer_Status_ListStatus_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_ListStatus_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_ListStatus_globals_.GetClassData(); +#else + return GameServer_Status_ListStatus_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Status_CounterStatus::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_); +}; + +constexpr GameServer_Status_CounterStatus::ParseTableT_ GameServer_Status_CounterStatus::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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_), 1>(), + {16, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, + // int64 count = 1; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 count = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 capacity = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, + }; +} + inline constexpr GameServer_Status_CounterStatus::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, count_{::int64_t{0}}, capacity_{::int64_t{0}} {} template -PROTOBUF_CONSTEXPR GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized) +constexpr GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Status_CounterStatus_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Status_CounterStatus::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_CounterStatus(arena); +} +constexpr auto GameServer_Status_CounterStatus::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Status_CounterStatus), alignof(GameServer_Status_CounterStatus)); +} +constexpr auto GameServer_Status_CounterStatus::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_CounterStatus::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_CounterStatus::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_CounterStatus::ByteSizeLong, + &GameServer_Status_CounterStatus::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[10], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_Status_CounterStatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_CounterStatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_CounterStatusDefaultTypeInternal() {} +struct GameServer_Status_CounterStatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_CounterStatusGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_CounterStatus_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_CounterStatus::InternalGenerateClassData_( + _default, &GameServer_Status_CounterStatus_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_CounterStatusGlobalsTypeInternal() {} union { - GameServer_Status_CounterStatus _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_CounterStatus _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatusGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_CounterStatusDefaultTypeInternal _GameServer_Status_CounterStatus_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_CounterStatusGlobalsTypeInternal GameServer_Status_CounterStatus_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_CounterStatus_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_CounterStatus_globals_.GetClassData(); +#else + return GameServer_Status_CounterStatus_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Status_Address::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_); +}; + +constexpr GameServer_Status_Address::ParseTableT_ GameServer_Status_Address::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, + // string type = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string type = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\50\4\7\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.Address" + "type" + "address" + }}, + }; +} + inline constexpr GameServer_Status_Address::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, type_( @@ -164,26 +759,160 @@ inline constexpr GameServer_Status_Address::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized) +constexpr GameServer_Status_Address::GameServer_Status_Address(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Status_Address_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Status_Address::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_Address(arena); +} +constexpr auto GameServer_Status_Address::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Address), alignof(GameServer_Status_Address)); +} +constexpr auto GameServer_Status_Address::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_Address::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_Address::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Address::ByteSizeLong, + &GameServer_Status_Address::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[8], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_Status_AddressDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_AddressDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_AddressDefaultTypeInternal() {} +struct GameServer_Status_AddressGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_AddressGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_Address_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_Address::InternalGenerateClassData_( + _default, &GameServer_Status_Address_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_AddressGlobalsTypeInternal() {} union { - GameServer_Status_Address _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_Address _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_AddressGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Status_AddressDefaultTypeInternal _GameServer_Status_Address_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_AddressGlobalsTypeInternal GameServer_Status_Address_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_Address_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_Address_globals_.GetClassData(); +#else + return GameServer_Status_Address_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Spec_Health::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_); +}; + +constexpr GameServer_Spec_Health::ParseTableT_ GameServer_Spec_Health::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_), + 0, // no _extensions_ + 4, 24, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967280, // skipmap + offsetof(ParseTableT_, field_entries), + 4, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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_), 3>(), + {32, 3, 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, 0, 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_), 1>(), + {16, 1, 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_), 2>(), + {24, 2, 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // int32 period_seconds = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 failure_threshold = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + // int32 initial_delay_seconds = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, + }}, + // no aux_entries + {{ + }}, + }; +} + inline constexpr GameServer_Spec_Health::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, disabled_{false}, @@ -192,170 +921,1168 @@ inline constexpr GameServer_Spec_Health::Impl_::Impl_( initial_delay_seconds_{0} {} template -PROTOBUF_CONSTEXPR GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized) +constexpr GameServer_Spec_Health::GameServer_Spec_Health(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Spec_Health_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Spec_Health::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Spec_Health(arena); +} +constexpr auto GameServer_Spec_Health::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec_Health), alignof(GameServer_Spec_Health)); +} +constexpr auto GameServer_Spec_Health::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Spec_Health::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Spec_Health::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec_Health::ByteSizeLong, + &GameServer_Spec_Health::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[6], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_Spec_HealthDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Spec_HealthDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Spec_HealthDefaultTypeInternal() {} +struct GameServer_Spec_HealthGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Spec_HealthGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Spec_Health_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Spec_Health::InternalGenerateClassData_( + _default, &GameServer_Spec_Health_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Spec_HealthGlobalsTypeInternal() {} union { - GameServer_Spec_Health _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Spec_Health _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Spec_HealthGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_Spec_HealthDefaultTypeInternal _GameServer_Spec_Health_default_instance_; -template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized) + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Spec_HealthGlobalsTypeInternal GameServer_Spec_Health_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); #if defined(PROTOBUF_CUSTOM_VTABLE) - : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry() { +namespace { +const ::_pbi::ClassData* GameServer_Spec_Health_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Spec_Health_globals_.GetClassData(); +#else + return GameServer_Spec_Health_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal() {} - union { - GameServer_ObjectMeta_LabelsEntry_DoNotUse _instance; +constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse::ParseTableT_ GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\60\3\5\0\0\0\0\0" + "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry" + "key" + "value" + }}, }; -}; +} + +template +constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : GameServer_ObjectMeta_LabelsEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta_LabelsEntry_DoNotUse(arena); +} +constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_LabelsEntry_DoNotUse), alignof(GameServer_ObjectMeta_LabelsEntry_DoNotUse)); +} +constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta_LabelsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_ObjectMeta_LabelsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[4], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_( + _default, &GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta_LabelsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMeta_LabelsEntry_DoNotUseDefaultTypeInternal _GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMeta_LabelsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_.GetClassData(); +#else + return GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ParseTableT_ GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\65\3\5\0\0\0\0\0" + "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry" + "key" + "value" + }}, + }; +} + template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { } +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(arena); +} +constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse), alignof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)); +} +constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE -struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[3], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_( + _default, &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal() {} union { - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS 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 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMeta_AnnotationsEntry_DoNotUseGlobalsTypeInternal GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_.GetClassData(); +#else + return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Empty::_Internal { + public: +}; + +constexpr Empty::ParseTableT_ Empty::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Empty, + _impl_._cached_size_), // no hasbits + 0, // no _extensions_ + 0, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967295, // skipmap + offsetof(ParseTableT_, field_names), // no field_entries + 0, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::GenericFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::Empty>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, // no field_entries, or aux_entries + {{ + }}, + }; +} + template -PROTOBUF_CONSTEXPR Empty::Empty(::_pbi::ConstantInitialized) +constexpr Empty::Empty(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::internal::ZeroFieldsBase( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(Empty_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::internal::ZeroFieldsBase() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { } +inline void* PROTOBUF_NONNULL Empty::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Empty(arena); +} +constexpr auto Empty::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), alignof(Empty)); +} +constexpr auto Empty::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Empty::MergeImpl, + ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Empty::SharedDtor, + ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, + &Empty::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE -struct EmptyDefaultTypeInternal { - PROTOBUF_CONSTEXPR EmptyDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~EmptyDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[0], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct EmptyGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr EmptyGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Empty_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Empty::InternalGenerateClassData_( + _default, &Empty_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~EmptyGlobalsTypeInternal() {} union { - Empty _instance; + alignas(::_pbi::kMaxMessageAlignment) Empty _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(EmptyGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 EmptyDefaultTypeInternal _Empty_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST EmptyGlobalsTypeInternal Empty_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Empty_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Empty_globals_.GetClassData(); +#else + return Empty_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Duration::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_); +}; + +constexpr Duration::ParseTableT_ Duration::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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_), 0>(), + {8, 0, 0, + PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // int64 seconds = 1; + {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + }}, + // no aux_entries + {{ + }}, + }; +} + inline constexpr Duration::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, seconds_{::int64_t{0}} {} template -PROTOBUF_CONSTEXPR Duration::Duration(::_pbi::ConstantInitialized) +constexpr Duration::Duration(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Duration_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Duration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Duration(arena); } -struct DurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR DurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~DurationDefaultTypeInternal() {} +constexpr auto Duration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration), alignof(Duration)); +} +constexpr auto Duration::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Duration::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Duration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Duration::ByteSizeLong, + &Duration::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[2], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct DurationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr DurationGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Duration_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Duration::InternalGenerateClassData_( + _default, &Duration_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~DurationGlobalsTypeInternal() {} union { - Duration _instance; + alignas(::_pbi::kMaxMessageAlignment) Duration _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(DurationGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DurationDefaultTypeInternal _Duration_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST DurationGlobalsTypeInternal Duration_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Duration_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Duration_globals_.GetClassData(); +#else + return Duration_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr GameServer_Status_ListsEntry_DoNotUse::ParseTableT_ GameServer_Status_ListsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_ListStatus_globals_}, + #endif + }}, + {{ + "\53\3\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.ListsEntry" + "key" + }}, + }; +} + template -PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : GameServer_Status_ListsEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : GameServer_Status_ListsEntry_DoNotUse::MapEntry(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : GameServer_Status_ListsEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_ListsEntry_DoNotUse(arena); +} +constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListsEntry_DoNotUse), alignof(GameServer_Status_ListsEntry_DoNotUse)); +} +constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_ListsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_ListsEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_Status_ListsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[13], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_( + _default, &GameServer_Status_ListsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_ListsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_ListsEntry_DoNotUseGlobalsTypeInternal GameServer_Status_ListsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_ListsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_ListsEntry_DoNotUse_globals_.GetClassData(); +#else + return GameServer_Status_ListsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr GameServer_Status_CountersEntry_DoNotUse::ParseTableT_ GameServer_Status_CountersEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_}, + #endif + }}, + {{ + "\56\3\0\0\0\0\0\0" + "agones.dev.sdk.GameServer.Status.CountersEntry" + "key" + }}, + }; +} + +template +constexpr GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : GameServer_Status_CountersEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status_CountersEntry_DoNotUse(arena); +} +constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_CountersEntry_DoNotUse), alignof(GameServer_Status_CountersEntry_DoNotUse)); +} +constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status_CountersEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status_CountersEntry_DoNotUse::SharedDtor, + static_cast(&GameServer_Status_CountersEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[12], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } +struct GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_( + _default, &GameServer_Status_CountersEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status_CountersEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_Status_CountersEntry_DoNotUseGlobalsTypeInternal GameServer_Status_CountersEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_CountersEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_CountersEntry_DoNotUse_globals_.GetClassData(); +#else + return GameServer_Status_CountersEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_ListsEntry_DoNotUseDefaultTypeInternal() {} +class GameServer_Spec::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); +}; + +constexpr GameServer_Spec::ParseTableT_ GameServer_Spec::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec_Health>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Spec_Health_globals_}, + #endif + }}, + {{ + }}, + }; +} + + +inline constexpr GameServer_Spec::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + health_{nullptr} {} + +template +constexpr GameServer_Spec::GameServer_Spec(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Spec::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Spec(arena); +} +constexpr auto GameServer_Spec::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec), alignof(GameServer_Spec)); +} +constexpr auto GameServer_Spec::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Spec::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Spec::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec::ByteSizeLong, + &GameServer_Spec::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[7], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct GameServer_SpecGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_SpecGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Spec_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Spec::InternalGenerateClassData_( + _default, &GameServer_Spec_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_SpecGlobalsTypeInternal() {} union { - GameServer_Status_ListsEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Spec _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_SpecGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - 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) + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_SpecGlobalsTypeInternal GameServer_Spec_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); #if defined(PROTOBUF_CUSTOM_VTABLE) - : GameServer_Status_CountersEntry_DoNotUse::MapEntry(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : GameServer_Status_CountersEntry_DoNotUse::MapEntry() { +namespace { +const ::_pbi::ClassData* GameServer_Spec_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Spec_globals_.GetClassData(); +#else + return GameServer_Spec_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_Status_CountersEntry_DoNotUseDefaultTypeInternal() {} - union { - GameServer_Status_CountersEntry_DoNotUse _instance; - }; +class GameServer_ObjectMeta::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_); }; -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_Spec::GameServer_Spec(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Spec_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), -#endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { -} -struct GameServer_SpecDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_SpecDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_SpecDefaultTypeInternal() {} - union { - GameServer_Spec _instance; +constexpr GameServer_ObjectMeta::ParseTableT_ GameServer_ObjectMeta::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_), + 0, // no _extensions_ + 9, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294966784, // skipmap + offsetof(ParseTableT_, field_entries), + 9, // num_field_entries + 2, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, + // string namespace = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, + // string uid = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, + // string resource_version = 4; + {::_pbi::TcParser::FastUS1, + {34, 3, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, + // int64 generation = 5; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 4>(), + {40, 4, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, + // int64 creation_timestamp = 6; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 5>(), + {48, 5, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, + // int64 deletion_timestamp = 7; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 6>(), + {56, 6, 0, + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string namespace = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string uid = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string resource_version = 4; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // int64 generation = 5; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 creation_timestamp = 6; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // int64 deletion_timestamp = 7; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, + // map annotations = 8; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map labels = 9; + {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 9, 0)}, + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 9, 0)}, + }}, + {{ + "\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" + }}, }; -}; +} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_SpecDefaultTypeInternal _GameServer_Spec_default_instance_; inline constexpr GameServer_ObjectMeta::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - annotations_{}, - labels_{}, name_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -370,63 +2097,407 @@ inline constexpr GameServer_ObjectMeta::Impl_::Impl_( ::_pbi::ConstantInitialized()), generation_{::int64_t{0}}, creation_timestamp_{::int64_t{0}}, - deletion_timestamp_{::int64_t{0}} {} + deletion_timestamp_{::int64_t{0}}, + annotations_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() + } + , + labels_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() + } + {} template -PROTOBUF_CONSTEXPR GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized) +constexpr GameServer_ObjectMeta::GameServer_ObjectMeta(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_ObjectMeta_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_ObjectMeta::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_ObjectMeta(arena); +} +constexpr auto GameServer_ObjectMeta::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta), alignof(GameServer_ObjectMeta)); +} +constexpr auto GameServer_ObjectMeta::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_ObjectMeta::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_ObjectMeta::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_ObjectMeta::ByteSizeLong, + &GameServer_ObjectMeta::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[5], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_ObjectMetaDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_ObjectMetaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_ObjectMetaDefaultTypeInternal() {} +struct GameServer_ObjectMetaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_ObjectMetaGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_ObjectMeta_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_ObjectMeta::InternalGenerateClassData_( + _default, &GameServer_ObjectMeta_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_ObjectMetaGlobalsTypeInternal() {} union { - GameServer_ObjectMeta _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_ObjectMeta _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_ObjectMetaGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_ObjectMetaDefaultTypeInternal _GameServer_ObjectMeta_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_ObjectMetaGlobalsTypeInternal GameServer_ObjectMeta_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_ObjectMeta_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_ObjectMeta_globals_.GetClassData(); +#else + return GameServer_ObjectMeta_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer_Status::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); +}; + +constexpr GameServer_Status::ParseTableT_ GameServer_Status::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967176, // skipmap + offsetof(ParseTableT_, field_entries), + 6, // num_field_entries + 6, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 2, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, + // string address = 2; + {::_pbi::TcParser::FastUS1, + {18, 3, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_)}}, + // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; + {::_pbi::TcParser::FastMtR1, + {26, 0, 0, + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; + {::_pbi::TcParser::FastMtR1, + {58, 1, 1, + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string state = 1; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string address = 2; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map counters = 5; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_), _Internal::kHasBitsOffset + 4, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map lists = 6; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_), _Internal::kHasBitsOffset + 5, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; + {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_), _Internal::kHasBitsOffset + 1, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_Port_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_Address_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_ListStatus_globals_}, + #endif + }}, + {{ + "\40\5\7\0\10\5\0\0" + "agones.dev.sdk.GameServer.Status" + "state" + "address" + "counters" + "lists" + }}, + }; +} + inline constexpr GameServer_Status::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - ports_{}, - counters_{}, - lists_{}, - addresses_{}, + ports_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() + } + , + addresses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() + } + , state_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), address_( &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()) {} + ::_pbi::ConstantInitialized()), + counters_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() + } + , + lists_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() + } + {} template -PROTOBUF_CONSTEXPR GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized) +constexpr GameServer_Status::GameServer_Status(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_Status_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer_Status::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer_Status(arena); +} +constexpr auto GameServer_Status::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status), alignof(GameServer_Status)); +} +constexpr auto GameServer_Status::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer_Status::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer_Status::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer_Status::ByteSizeLong, + &GameServer_Status::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[14], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServer_StatusDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServer_StatusDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServer_StatusDefaultTypeInternal() {} +struct GameServer_StatusGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServer_StatusGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_Status_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer_Status::InternalGenerateClassData_( + _default, &GameServer_Status_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServer_StatusGlobalsTypeInternal() {} union { - GameServer_Status _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer_Status _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServer_StatusGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServer_StatusDefaultTypeInternal _GameServer_Status_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServer_StatusGlobalsTypeInternal GameServer_Status_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_Status_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_Status_globals_.GetClassData(); +#else + return GameServer_Status_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class GameServer::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); +}; + +constexpr GameServer::ParseTableT_ GameServer::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967288, // skipmap + offsetof(ParseTableT_, field_entries), + 3, // num_field_entries + 3, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_ObjectMeta_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Spec>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Spec_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::agones::dev::sdk::GameServer_Status_globals_}, + #endif + }}, + {{ + }}, + }; +} + inline constexpr GameServer::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, object_meta_{nullptr}, @@ -434,30 +2505,103 @@ inline constexpr GameServer::Impl_::Impl_( status_{nullptr} {} template -PROTOBUF_CONSTEXPR GameServer::GameServer(::_pbi::ConstantInitialized) +constexpr GameServer::GameServer(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(GameServer_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL GameServer::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) GameServer(arena); +} +constexpr auto GameServer::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer), alignof(GameServer)); +} +constexpr auto GameServer::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &GameServer::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &GameServer::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &GameServer::ByteSizeLong, + &GameServer::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[15], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_sdk_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct GameServerDefaultTypeInternal { - PROTOBUF_CONSTEXPR GameServerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~GameServerDefaultTypeInternal() {} +struct GameServerGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr GameServerGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + GameServer_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(GameServer::InternalGenerateClassData_( + _default, &GameServer_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~GameServerGlobalsTypeInternal() {} union { - GameServer _instance; + alignas(::_pbi::kMaxMessageAlignment) GameServer _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(GameServerGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GameServerDefaultTypeInternal _GameServer_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST GameServerGlobalsTypeInternal GameServer_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* GameServer_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return GameServer_globals_.GetClassData(); +#else + return GameServer_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE } // namespace sdk } // namespace dev } // namespace agones -static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_enum_descriptors_sdk_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_sdk_2eproto = nullptr; const ::uint32_t TableStruct_sdk_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -508,8 +2652,8 @@ const ::uint32_t 4, 5, 6, - ~0u, - ~0u, + 7, + 8, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Spec_Health, _impl_._has_bits_), 7, // hasbit index offset @@ -552,8 +2696,8 @@ const ::uint32_t 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.capacity_), PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_), + 1, 0, - ~0u, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -577,12 +2721,12 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_), PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_), PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_), - 0, + 2, + 3, 1, - ~0u, - ~0u, - ~0u, - ~0u, + 0, + 4, + 5, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer, _impl_._has_bits_), 6, // hasbit index offset @@ -613,23 +2757,24 @@ static const ::_pbi::MigrationSchema {106, sizeof(::agones::dev::sdk::GameServer_Status)}, {121, sizeof(::agones::dev::sdk::GameServer)}, }; -static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { - &::agones::dev::sdk::_Empty_default_instance_._instance, - &::agones::dev::sdk::_KeyValue_default_instance_._instance, - &::agones::dev::sdk::_Duration_default_instance_._instance, - &::agones::dev::sdk::_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, - &::agones::dev::sdk::_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, - &::agones::dev::sdk::_GameServer_ObjectMeta_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Spec_Health_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Spec_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_Address_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_Port_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_CounterStatus_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_ListStatus_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, - &::agones::dev::sdk::_GameServer_Status_default_instance_._instance, - &::agones::dev::sdk::_GameServer_default_instance_._instance, +static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const + file_message_globals[] = { + &::agones::dev::sdk::Empty_globals_, + &::agones::dev::sdk::KeyValue_globals_, + &::agones::dev::sdk::Duration_globals_, + &::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_, + &::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_, + &::agones::dev::sdk::GameServer_ObjectMeta_globals_, + &::agones::dev::sdk::GameServer_Spec_Health_globals_, + &::agones::dev::sdk::GameServer_Spec_globals_, + &::agones::dev::sdk::GameServer_Status_Address_globals_, + &::agones::dev::sdk::GameServer_Status_Port_globals_, + &::agones::dev::sdk::GameServer_Status_CounterStatus_globals_, + &::agones::dev::sdk::GameServer_Status_ListStatus_globals_, + &::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse_globals_, + &::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse_globals_, + &::agones::dev::sdk::GameServer_Status_globals_, + &::agones::dev::sdk::GameServer_globals_, }; const char descriptor_table_protodef_sdk_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -714,7 +2859,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_sdk_2eproto = 2, 16, schemas, - file_default_instances, + file_message_globals, TableStruct_sdk_2eproto::offsets, file_level_enum_descriptors_sdk_2eproto, file_level_service_descriptors_sdk_2eproto, @@ -724,13 +2869,9 @@ namespace dev { namespace sdk { // =================================================================== -class Empty::_Internal { - public: -}; - Empty::Empty(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -740,7 +2881,8 @@ Empty::Empty( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Empty& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_class_data_.base()) { + : ::google::protobuf::internal::ZeroFieldsBase(arena, Empty_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::internal::ZeroFieldsBase(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -752,41 +2894,10 @@ Empty::Empty( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.Empty) } -inline void* PROTOBUF_NONNULL Empty::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Empty(arena); -} -constexpr auto Empty::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Empty), - alignof(Empty)); -} -constexpr auto Empty::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Empty_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Empty::MergeImpl, - ::google::protobuf::internal::ZeroFieldsBase::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Empty::SharedDtor, - ::google::protobuf::internal::ZeroFieldsBase::GetClearImpl(), &Empty::ByteSizeLong, - &Empty::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Empty, _impl_._cached_size_), - false, - }, - &Empty::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Empty_class_data_ = - Empty::InternalGenerateClassData_(); + Empty::InternalGenerateClassData_(Empty_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Empty::GetClassData() const { @@ -794,33 +2905,21 @@ Empty::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Empty_class_data_.tc_table); return Empty_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 0, 0, 0, 2> -Empty::_table_ = { - { - 0, // no _has_bits_ - 0, // no _extensions_ - 0, 0, // max_field_number, fast_idx_mask - offsetof(decltype(_table_), field_lookup_table), - 4294967295, // skipmap - offsetof(decltype(_table_), field_names), // no field_entries - 0, // num_field_entries - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Empty_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::GenericFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::Empty>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, // no field_entries, or aux_entries - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Empty::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Empty_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Empty_globals_)); + return Empty_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Empty::ParseTableT_ + Empty::_table_ = + Empty::InternalGenerateParseTable_(Empty_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS @@ -833,17 +2932,9 @@ ::google::protobuf::Metadata Empty::GetMetadata() const { } // =================================================================== -class KeyValue::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._has_bits_); -}; - KeyValue::KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { + : ::google::protobuf::Message(arena, KeyValue_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -851,9 +2942,9 @@ KeyValue::KeyValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.KeyValue) } PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::KeyValue& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::KeyValue& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, key_(arena, from.key_), @@ -863,7 +2954,8 @@ KeyValue::KeyValue( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const KeyValue& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, KeyValue_class_data_.base()) { + : ::google::protobuf::Message(arena, KeyValue_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -876,8 +2968,8 @@ KeyValue::KeyValue( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.KeyValue) } PROTOBUF_NDEBUG_INLINE KeyValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, key_(arena), value_(arena) {} @@ -891,6 +2983,9 @@ KeyValue::~KeyValue() { } inline void KeyValue::SharedDtor(MessageLite& self) { KeyValue& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.key_.Destroy(); @@ -898,41 +2993,10 @@ inline void KeyValue::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL KeyValue::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) KeyValue(arena); -} -constexpr auto KeyValue::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(KeyValue), - alignof(KeyValue)); -} -constexpr auto KeyValue::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_KeyValue_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &KeyValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &KeyValue::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &KeyValue::ByteSizeLong, - &KeyValue::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._cached_size_), - false, - }, - &KeyValue::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull KeyValue_class_data_ = - KeyValue::InternalGenerateClassData_(); + KeyValue::InternalGenerateClassData_(KeyValue_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL KeyValue::GetClassData() const { @@ -940,50 +3004,21 @@ KeyValue::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(KeyValue_class_data_.tc_table); return KeyValue_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 40, 2> -KeyValue::_table_ = { - { - PROTOBUF_FIELD_OFFSET(KeyValue, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(KeyValue, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\27\3\5\0\0\0\0\0" - "agones.dev.sdk.KeyValue" - "key" - "value" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +KeyValue::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&KeyValue_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&KeyValue_globals_)); + return KeyValue_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const KeyValue::ParseTableT_ + KeyValue::_table_ = + KeyValue::InternalGenerateParseTable_(KeyValue_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void KeyValue::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.KeyValue) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -992,11 +3027,11 @@ PROTOBUF_NOINLINE void KeyValue::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.key_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.value_.ClearNonDefaultToEmpty(); } } @@ -1015,12 +3050,16 @@ ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const KeyValue& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.KeyValue) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string key = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { const ::std::string& _s = this_._internal_key(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1030,7 +3069,7 @@ ::uint8_t* PROTOBUF_NONNULL KeyValue::_InternalSerialize( } // string value = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { const ::std::string& _s = this_._internal_value(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1064,16 +3103,16 @@ ::size_t KeyValue::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string key = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_key().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_key()); } } // string value = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_value().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_value()); @@ -1084,17 +3123,21 @@ ::size_t KeyValue::ByteSizeLong() const { &this_._impl_._cached_size_); } -void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.KeyValue) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_key().empty()) { _this->_internal_set_key(from._internal_key()); } else { @@ -1103,7 +3146,7 @@ void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_value().empty()) { _this->_internal_set_value(from._internal_value()); } else { @@ -1114,11 +3157,12 @@ void KeyValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void KeyValue::CopyFrom(const KeyValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.KeyValue) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.KeyValue) if (&from == this) return; Clear(); MergeFrom(from); @@ -1140,17 +3184,9 @@ ::google::protobuf::Metadata KeyValue::GetMetadata() const { } // =================================================================== -class Duration::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Duration, _impl_._has_bits_); -}; - Duration::Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Duration_class_data_.base()) { + : ::google::protobuf::Message(arena, Duration_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1160,7 +3196,7 @@ Duration::Duration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) Duration::Duration( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Duration& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Duration_class_data_.base()), + : ::google::protobuf::Message(arena, Duration_get_class_data()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -1169,8 +3205,8 @@ Duration::Duration( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE Duration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void Duration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { @@ -1179,50 +3215,22 @@ inline void Duration::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { } Duration::~Duration() { // @@protoc_insertion_point(destructor:agones.dev.sdk.Duration) - SharedDtor(*this); -} -inline void Duration::SharedDtor(MessageLite& self) { - Duration& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Duration::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Duration(arena); -} -constexpr auto Duration::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(Duration), - alignof(Duration)); + SharedDtor(*this); } -constexpr auto Duration::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Duration_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Duration::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Duration::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Duration::ByteSizeLong, - &Duration::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Duration, _impl_._cached_size_), - false, - }, - &Duration::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; +inline void Duration::SharedDtor(MessageLite& self) { + Duration& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.~Impl_(); } +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Duration_class_data_ = - Duration::InternalGenerateClassData_(); + Duration::InternalGenerateClassData_(Duration_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Duration::GetClassData() const { @@ -1230,40 +3238,21 @@ Duration::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Duration_class_data_.tc_table); return Duration_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 0, 2> -Duration::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Duration, _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 - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Duration_class_data_.base(), - nullptr, // post_loop_handler - ::_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_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 seconds = 1; - {PROTOBUF_FIELD_OFFSET(Duration, _impl_.seconds_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Duration::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Duration_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Duration_globals_)); + return Duration_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Duration::ParseTableT_ + Duration::_table_ = + Duration::InternalGenerateParseTable_(Duration_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Duration::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.Duration) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1287,12 +3276,16 @@ ::uint8_t* PROTOBUF_NONNULL Duration::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Duration& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.Duration) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int64 seconds = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -1326,7 +3319,7 @@ ::size_t Duration::ByteSizeLong() const { { // int64 seconds = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_seconds()); @@ -1337,26 +3330,31 @@ ::size_t Duration::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Duration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.Duration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_seconds() != 0) { _this->_impl_.seconds_ = from._impl_.seconds_; } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Duration::CopyFrom(const Duration& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.Duration) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.Duration) if (&from == this) return; Clear(); MergeFrom(from); @@ -1376,212 +3374,84 @@ ::google::protobuf::Metadata Duration::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() - : SuperType(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} +GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() : SuperType(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data()) {} GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse() : SuperType() {} GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta_AnnotationsEntry_DoNotUse(arena); -} -constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse), - alignof(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse)); -} -constexpr auto GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_ = - GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_(); + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateClassData_(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.tc_table); return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 70, 2> -GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_._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_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_AnnotationsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\65\3\5\0\0\0\0\0" - "agones.dev.sdk.GameServer.ObjectMeta.AnnotationsEntry" - "key" - "value" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_)); + return GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::ParseTableT_ + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::_table_ = + GameServer_ObjectMeta_AnnotationsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_ObjectMeta_AnnotationsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() - : SuperType(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} +GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() : SuperType(GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data()) {} GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, GameServer_ObjectMeta_LabelsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse() : SuperType() {} GameServer_ObjectMeta_LabelsEntry_DoNotUse::GameServer_ObjectMeta_LabelsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta_LabelsEntry_DoNotUse(arena); -} -constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_ObjectMeta_LabelsEntry_DoNotUse), - alignof(GameServer_ObjectMeta_LabelsEntry_DoNotUse)); -} -constexpr auto GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_ObjectMeta_LabelsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_ObjectMeta_LabelsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta_LabelsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_ObjectMeta_LabelsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &GameServer_ObjectMeta_LabelsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_ = - GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_(); + GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateClassData_(GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.tc_table); return GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 65, 2> -GameServer_ObjectMeta_LabelsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_._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_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_ObjectMeta_LabelsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta_LabelsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\60\3\5\0\0\0\0\0" - "agones.dev.sdk.GameServer.ObjectMeta.LabelsEntry" - "key" - "value" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_ObjectMeta_LabelsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_)); + return GameServer_ObjectMeta_LabelsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta_LabelsEntry_DoNotUse::ParseTableT_ + GameServer_ObjectMeta_LabelsEntry_DoNotUse::_table_ = + GameServer_ObjectMeta_LabelsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_ObjectMeta_LabelsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class GameServer_ObjectMeta::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._has_bits_); -}; - GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_ObjectMeta_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1589,23 +3459,36 @@ GameServer_ObjectMeta::GameServer_ObjectMeta(::google::protobuf::Arena* PROTOBUF // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.ObjectMeta) } PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_ObjectMeta& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_ObjectMeta& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - 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_) {} + resource_version_(arena, from.resource_version_), + annotations_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() + , from.annotations_ + } + , + labels_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() + , from.labels_ + } + {} GameServer_ObjectMeta::GameServer_ObjectMeta( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_ObjectMeta& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_ObjectMeta_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_ObjectMeta_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1614,9 +3497,9 @@ GameServer_ObjectMeta::GameServer_ObjectMeta( _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, generation_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, generation_), offsetof(Impl_, deletion_timestamp_) - offsetof(Impl_, generation_) + @@ -1625,19 +3508,27 @@ GameServer_ObjectMeta::GameServer_ObjectMeta( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.ObjectMeta) } PROTOBUF_NDEBUG_INLINE GameServer_ObjectMeta::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - annotations_{visibility, arena}, - labels_{visibility, arena}, name_(arena), namespace__(arena), uid_(arena), - resource_version_(arena) {} + resource_version_(arena), + annotations_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.annotations_)>() + } + , + labels_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_ObjectMeta, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_ObjectMeta, _impl_.labels_)>() + } + {} inline void GameServer_ObjectMeta::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, generation_), 0, offsetof(Impl_, deletion_timestamp_) - @@ -1650,6 +3541,9 @@ GameServer_ObjectMeta::~GameServer_ObjectMeta() { } inline void GameServer_ObjectMeta::SharedDtor(MessageLite& self) { GameServer_ObjectMeta& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -1659,65 +3553,10 @@ inline void GameServer_ObjectMeta::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_ObjectMeta::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_ObjectMeta(arena); -} -constexpr auto GameServer_ObjectMeta::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + - decltype(GameServer_ObjectMeta::_impl_.annotations_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_) + - decltype(GameServer_ObjectMeta::_impl_.annotations_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + - decltype(GameServer_ObjectMeta::_impl_.labels_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_) + - decltype(GameServer_ObjectMeta::_impl_.labels_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GameServer_ObjectMeta), alignof(GameServer_ObjectMeta), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GameServer_ObjectMeta::PlacementNew_, - sizeof(GameServer_ObjectMeta), - alignof(GameServer_ObjectMeta)); - } -} -constexpr auto GameServer_ObjectMeta::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_ObjectMeta_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_ObjectMeta::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_ObjectMeta::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_ObjectMeta::ByteSizeLong, - &GameServer_ObjectMeta::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_._cached_size_), - false, - }, - &GameServer_ObjectMeta::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_ObjectMeta_class_data_ = - GameServer_ObjectMeta::InternalGenerateClassData_(); + GameServer_ObjectMeta::InternalGenerateClassData_(GameServer_ObjectMeta_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_ObjectMeta::GetClassData() const { @@ -1725,98 +3564,21 @@ GameServer_ObjectMeta::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_ObjectMeta_class_data_.tc_table); return GameServer_ObjectMeta_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 9, 2, 102, 2> -GameServer_ObjectMeta::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _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 - 2, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GameServer_ObjectMeta_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_)}}, - // string namespace = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__)}}, - // string uid = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_)}}, - // string resource_version = 4; - {::_pbi::TcParser::FastUS1, - {34, 3, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_)}}, - // int64 generation = 5; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.generation_), 4>(), - {40, 4, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)}}, - // int64 creation_timestamp = 6; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.creation_timestamp_), 5>(), - {48, 5, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_)}}, - // int64 deletion_timestamp = 7; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_ObjectMeta, _impl_.deletion_timestamp_), 6>(), - {56, 6, 0, PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string namespace = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.namespace__), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string uid = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.uid_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string resource_version = 4; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.resource_version_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int64 generation = 5; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 creation_timestamp = 6; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.creation_timestamp_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 deletion_timestamp = 7; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.deletion_timestamp_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // map annotations = 8; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.annotations_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // map labels = 9; - {PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.labels_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - }}, - {{ - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 9, - 0)}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 9, - 0)}, - }}, - {{ - "\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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_ObjectMeta::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_ObjectMeta_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_ObjectMeta_globals_)); + return GameServer_ObjectMeta_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_ObjectMeta::ParseTableT_ + GameServer_ObjectMeta::_table_ = + GameServer_ObjectMeta::InternalGenerateParseTable_(GameServer_ObjectMeta_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.ObjectMeta) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1824,27 +3586,31 @@ PROTOBUF_NOINLINE void GameServer_ObjectMeta::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.annotations_.Clear(); - _impl_.labels_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.name_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.namespace__.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.uid_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.resource_version_.ClearNonDefaultToEmpty(); } } - if ((cached_has_bits & 0x00000070u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000f0U)) { ::memset(&_impl_.generation_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.deletion_timestamp_) - reinterpret_cast(&_impl_.generation_)) + sizeof(_impl_.deletion_timestamp_)); + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _impl_.annotations_.Clear(); + } + } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _impl_.labels_.Clear(); } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -1861,12 +3627,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_ObjectMeta& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.ObjectMeta) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1876,7 +3646,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string namespace = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_namespace_().empty()) { const ::std::string& _s = this_._internal_namespace_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1886,7 +3656,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string uid = 3; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_uid().empty()) { const ::std::string& _s = this_._internal_uid(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1896,7 +3666,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // string resource_version = 4; - if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_resource_version().empty()) { const ::std::string& _s = this_._internal_resource_version(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1906,7 +3676,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 generation = 5; - if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_generation() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<5>( @@ -1915,7 +3685,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 creation_timestamp = 6; - if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_creation_timestamp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<6>( @@ -1924,7 +3694,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // int64 deletion_timestamp = 7; - if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_deletion_timestamp() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<7>( @@ -1933,67 +3703,71 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_ObjectMeta::_InternalSerialize( } // map annotations = 8; - if (!this_._internal_annotations().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + if (!this_._internal_annotations().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::std::string>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 8, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (!this_._internal_labels().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::std::string>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "agones.dev.sdk.GameServer.ObjectMeta.labels"); + } } } } @@ -2022,97 +3796,99 @@ ::size_t GameServer_ObjectMeta::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // map annotations = 8; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_annotations_size()); - for (const auto& entry : this_._internal_annotations()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - // map labels = 9; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_labels_size()); - for (const auto& entry : this_._internal_labels()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000007fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // string name = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string namespace = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_namespace_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_namespace_()); } } // string uid = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_uid().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_uid()); } } // string resource_version = 4; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_resource_version().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_resource_version()); } } // int64 generation = 5; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_generation() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_generation()); } } // int64 creation_timestamp = 6; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_creation_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_creation_timestamp()); } } // int64 deletion_timestamp = 7; - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_deletion_timestamp() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_deletion_timestamp()); } } + // map annotations = 8; + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_annotations_size()); + for (const auto& entry : this_._internal_annotations()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); + } + } + } + { + // map labels = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_labels_size()); + for (const auto& entry : this_._internal_labels()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.ObjectMeta) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); - _this->_impl_.labels_.MergeFrom(from._impl_.labels_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000007fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -2121,7 +3897,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_namespace_().empty()) { _this->_internal_set_namespace_(from._internal_namespace_()); } else { @@ -2130,7 +3906,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_uid().empty()) { _this->_internal_set_uid(from._internal_uid()); } else { @@ -2139,7 +3915,7 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_resource_version().empty()) { _this->_internal_set_resource_version(from._internal_resource_version()); } else { @@ -2148,28 +3924,35 @@ void GameServer_ObjectMeta::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_generation() != 0) { _this->_impl_.generation_ = from._impl_.generation_; } } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (from._internal_creation_timestamp() != 0) { _this->_impl_.creation_timestamp_ = from._impl_.creation_timestamp_; } } - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (from._internal_deletion_timestamp() != 0) { _this->_impl_.deletion_timestamp_ = from._impl_.deletion_timestamp_; } } + if (CheckHasBit(cached_has_bits, 0x00000080U)) { + _this->_impl_.annotations_.MergeFrom(from._impl_.annotations_); + } + } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.labels_.MergeFrom(from._impl_.labels_); } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_ObjectMeta::CopyFrom(const GameServer_ObjectMeta& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.ObjectMeta) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.ObjectMeta) if (&from == this) return; Clear(); MergeFrom(from); @@ -2182,8 +3965,6 @@ void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRIC ABSL_DCHECK_EQ(arena, other->GetArena()); _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); - _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); - _impl_.labels_.InternalSwap(&other->_impl_.labels_); ::_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); @@ -2194,6 +3975,8 @@ void GameServer_ObjectMeta::InternalSwap(GameServer_ObjectMeta* PROTOBUF_RESTRIC - PROTOBUF_FIELD_OFFSET(GameServer_ObjectMeta, _impl_.generation_)>( reinterpret_cast(&_impl_.generation_), reinterpret_cast(&other->_impl_.generation_)); + _impl_.annotations_.InternalSwap(&other->_impl_.annotations_); + _impl_.labels_.InternalSwap(&other->_impl_.labels_); } ::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { @@ -2201,17 +3984,9 @@ ::google::protobuf::Metadata GameServer_ObjectMeta::GetMetadata() const { } // =================================================================== -class GameServer_Spec_Health::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._has_bits_); -}; - GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Spec_Health_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2221,7 +3996,7 @@ GameServer_Spec_Health::GameServer_Spec_Health(::google::protobuf::Arena* PROTOB GameServer_Spec_Health::GameServer_Spec_Health( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec_Health& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_Health_class_data_.base()), + : ::google::protobuf::Message(arena, GameServer_Spec_Health_get_class_data()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -2230,13 +4005,13 @@ GameServer_Spec_Health::GameServer_Spec_Health( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE GameServer_Spec_Health::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Spec_Health::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, disabled_), 0, offsetof(Impl_, initial_delay_seconds_) - @@ -2249,46 +4024,18 @@ GameServer_Spec_Health::~GameServer_Spec_Health() { } inline void GameServer_Spec_Health::SharedDtor(MessageLite& self) { GameServer_Spec_Health& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Spec_Health::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Spec_Health(arena); -} -constexpr auto GameServer_Spec_Health::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec_Health), - alignof(GameServer_Spec_Health)); -} -constexpr auto GameServer_Spec_Health::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Spec_Health_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Spec_Health::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Spec_Health::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec_Health::ByteSizeLong, - &GameServer_Spec_Health::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._cached_size_), - false, - }, - &GameServer_Spec_Health::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Spec_Health_class_data_ = - GameServer_Spec_Health::InternalGenerateClassData_(); + GameServer_Spec_Health::InternalGenerateClassData_(GameServer_Spec_Health_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Spec_Health::GetClassData() const { @@ -2296,58 +4043,21 @@ GameServer_Spec_Health::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_Health_class_data_.tc_table); return GameServer_Spec_Health_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 4, 0, 0, 2> -GameServer_Spec_Health::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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_), 3>(), - {32, 3, 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, 0, 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_), 1>(), - {16, 1, 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_), 2>(), - {24, 2, 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_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // int32 period_seconds = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.period_seconds_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 failure_threshold = 3; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.failure_threshold_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - // int32 initial_delay_seconds = 4; - {PROTOBUF_FIELD_OFFSET(GameServer_Spec_Health, _impl_.initial_delay_seconds_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Spec_Health::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_Health_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Spec_Health_globals_)); + return GameServer_Spec_Health_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Spec_Health::ParseTableT_ + GameServer_Spec_Health::_table_ = + GameServer_Spec_Health::InternalGenerateParseTable_(GameServer_Spec_Health_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec.Health) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -2356,7 +4066,7 @@ PROTOBUF_NOINLINE void GameServer_Spec_Health::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { ::memset(&_impl_.disabled_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.initial_delay_seconds_) - reinterpret_cast(&_impl_.disabled_)) + sizeof(_impl_.initial_delay_seconds_)); @@ -2376,12 +4086,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Spec_Health& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec.Health) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_disabled() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -2390,7 +4104,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 period_seconds = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_period_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( @@ -2399,7 +4113,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 failure_threshold = 3; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_failure_threshold() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<3>( @@ -2408,7 +4122,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec_Health::_InternalSerialize( } // int32 initial_delay_seconds = 4; - if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_initial_delay_seconds() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<4>( @@ -2441,29 +4155,29 @@ ::size_t GameServer_Spec_Health::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // bool disabled = 1 [(.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_disabled() != 0) { total_size += 2; } } // int32 period_seconds = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_period_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_period_seconds()); } } // int32 failure_threshold = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (this_._internal_failure_threshold() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_failure_threshold()); } } // int32 initial_delay_seconds = 4; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (this_._internal_initial_delay_seconds() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_initial_delay_seconds()); @@ -2474,43 +4188,48 @@ ::size_t GameServer_Spec_Health::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Spec_Health::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Spec.Health) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_disabled() != 0) { _this->_impl_.disabled_ = from._impl_.disabled_; } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_period_seconds() != 0) { _this->_impl_.period_seconds_ = from._impl_.period_seconds_; } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (from._internal_failure_threshold() != 0) { _this->_impl_.failure_threshold_ = from._impl_.failure_threshold_; } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (from._internal_initial_delay_seconds() != 0) { _this->_impl_.initial_delay_seconds_ = from._impl_.initial_delay_seconds_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Spec_Health::CopyFrom(const GameServer_Spec_Health& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec.Health) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec.Health) if (&from == this) return; Clear(); MergeFrom(from); @@ -2534,17 +4253,9 @@ ::google::protobuf::Metadata GameServer_Spec_Health::GetMetadata() const { } // =================================================================== -class GameServer_Spec::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._has_bits_); -}; - GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Spec_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2552,9 +4263,9 @@ GameServer_Spec::GameServer_Spec(::google::protobuf::Arena* PROTOBUF_NULLABLE ar // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Spec) } PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_Spec& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_Spec& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} @@ -2562,7 +4273,8 @@ GameServer_Spec::GameServer_Spec( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Spec& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Spec_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Spec_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2572,15 +4284,15 @@ GameServer_Spec::GameServer_Spec( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.health_ = ((cached_has_bits & 0x00000001u) != 0) + _impl_.health_ = (CheckHasBit(cached_has_bits, 0x00000001U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_) : nullptr; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Spec) } PROTOBUF_NDEBUG_INLINE GameServer_Spec::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Spec::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { @@ -2593,47 +4305,19 @@ GameServer_Spec::~GameServer_Spec() { } inline void GameServer_Spec::SharedDtor(MessageLite& self) { GameServer_Spec& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.health_; this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Spec::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Spec(arena); -} -constexpr auto GameServer_Spec::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Spec), - alignof(GameServer_Spec)); -} -constexpr auto GameServer_Spec::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Spec_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Spec::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Spec::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Spec::ByteSizeLong, - &GameServer_Spec::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Spec, _impl_._cached_size_), - false, - }, - &GameServer_Spec::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Spec_class_data_ = - GameServer_Spec::InternalGenerateClassData_(); + GameServer_Spec::InternalGenerateClassData_(GameServer_Spec_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Spec::GetClassData() const { @@ -2641,42 +4325,21 @@ GameServer_Spec::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Spec_class_data_.tc_table); return GameServer_Spec_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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>()}, - }}, - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Spec::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Spec_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Spec_globals_)); + return GameServer_Spec_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Spec::ParseTableT_ + GameServer_Spec::_table_ = + GameServer_Spec::InternalGenerateParseTable_(GameServer_Spec_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Spec::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Spec) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -2685,7 +4348,7 @@ PROTOBUF_NOINLINE void GameServer_Spec::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.health_ != nullptr); _impl_.health_->Clear(); } @@ -2704,13 +4367,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Spec::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Spec& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Spec) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.Spec.Health health = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.health_, this_._impl_.health_->GetCachedSize(), target, stream); @@ -2742,7 +4408,7 @@ ::size_t GameServer_Spec::ByteSizeLong() const { { // .agones.dev.sdk.GameServer.Spec.Health health = 1; cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.health_); } @@ -2751,17 +4417,21 @@ ::size_t GameServer_Spec::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(from._impl_.health_ != nullptr); if (_this->_impl_.health_ == nullptr) { _this->_impl_.health_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.health_); @@ -2770,11 +4440,12 @@ void GameServer_Spec::MergeImpl(::google::protobuf::MessageLite& to_msg, const : } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Spec::CopyFrom(const GameServer_Spec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Spec) if (&from == this) return; Clear(); MergeFrom(from); @@ -2793,17 +4464,9 @@ ::google::protobuf::Metadata GameServer_Spec::GetMetadata() const { } // =================================================================== -class GameServer_Status_Address::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._has_bits_); -}; - GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_Address_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2811,9 +4474,9 @@ GameServer_Status_Address::GameServer_Status_Address(::google::protobuf::Arena* // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Address) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_Status_Address& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_Address& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, type_(arena, from.type_), @@ -2823,7 +4486,8 @@ GameServer_Status_Address::GameServer_Status_Address( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Address& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Address_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_Address_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2836,8 +4500,8 @@ GameServer_Status_Address::GameServer_Status_Address( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Address) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Address::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, type_(arena), address_(arena) {} @@ -2851,6 +4515,9 @@ GameServer_Status_Address::~GameServer_Status_Address() { } inline void GameServer_Status_Address::SharedDtor(MessageLite& self) { GameServer_Status_Address& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.type_.Destroy(); @@ -2858,41 +4525,10 @@ inline void GameServer_Status_Address::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Status_Address::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_Address(arena); -} -constexpr auto GameServer_Status_Address::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Address), - alignof(GameServer_Status_Address)); -} -constexpr auto GameServer_Status_Address::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_Address_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_Address::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_Address::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Address::ByteSizeLong, - &GameServer_Status_Address::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._cached_size_), - false, - }, - &GameServer_Status_Address::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_Address_class_data_ = - GameServer_Status_Address::InternalGenerateClassData_(); + GameServer_Status_Address::InternalGenerateClassData_(GameServer_Status_Address_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_Address::GetClassData() const { @@ -2900,50 +4536,21 @@ GameServer_Status_Address::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Address_class_data_.tc_table); return GameServer_Status_Address_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 60, 2> -GameServer_Status_Address::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_)}}, - // string type = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string type = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.type_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string address = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Address, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\50\4\7\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.Address" - "type" - "address" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_Address::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Address_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_Address_globals_)); + return GameServer_Status_Address_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_Address::ParseTableT_ + GameServer_Status_Address::_table_ = + GameServer_Status_Address::InternalGenerateParseTable_(GameServer_Status_Address_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Address) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -2952,11 +4559,11 @@ PROTOBUF_NOINLINE void GameServer_Status_Address::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.type_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.address_.ClearNonDefaultToEmpty(); } } @@ -2975,12 +4582,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_Address& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Address) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string type = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_type().empty()) { const ::std::string& _s = this_._internal_type(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2990,7 +4601,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Address::_InternalSerialize( } // string address = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_address().empty()) { const ::std::string& _s = this_._internal_address(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3024,16 +4635,16 @@ ::size_t GameServer_Status_Address::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string type = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_type().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type()); } } // string address = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_address().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_address()); @@ -3044,17 +4655,21 @@ ::size_t GameServer_Status_Address::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Address) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_type().empty()) { _this->_internal_set_type(from._internal_type()); } else { @@ -3063,7 +4678,7 @@ void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_ms } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } else { @@ -3074,11 +4689,12 @@ void GameServer_Status_Address::MergeImpl(::google::protobuf::MessageLite& to_ms } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Status_Address::CopyFrom(const GameServer_Status_Address& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Address) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Address) if (&from == this) return; Clear(); MergeFrom(from); @@ -3100,17 +4716,9 @@ ::google::protobuf::Metadata GameServer_Status_Address::GetMetadata() const { } // =================================================================== -class GameServer_Status_Port::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._has_bits_); -}; - GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_Port_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3118,9 +4726,9 @@ GameServer_Status_Port::GameServer_Status_Port(::google::protobuf::Arena* PROTOB // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.Port) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_Status_Port& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_Port& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_) {} @@ -3129,7 +4737,8 @@ GameServer_Status_Port::GameServer_Status_Port( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_Port& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_Port_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_Port_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3143,8 +4752,8 @@ GameServer_Status_Port::GameServer_Status_Port( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.Port) } PROTOBUF_NDEBUG_INLINE GameServer_Status_Port::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena) {} @@ -3158,47 +4767,19 @@ GameServer_Status_Port::~GameServer_Status_Port() { } inline void GameServer_Status_Port::SharedDtor(MessageLite& self) { GameServer_Status_Port& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Status_Port::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_Port(arena); -} -constexpr auto GameServer_Status_Port::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_Port), - alignof(GameServer_Status_Port)); -} -constexpr auto GameServer_Status_Port::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_Port_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_Port::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_Port::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_Port::ByteSizeLong, - &GameServer_Status_Port::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._cached_size_), - false, - }, - &GameServer_Status_Port::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_Port_class_data_ = - GameServer_Status_Port::InternalGenerateClassData_(); + GameServer_Status_Port::InternalGenerateClassData_(GameServer_Status_Port_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_Port::GetClassData() const { @@ -3206,49 +4787,21 @@ GameServer_Status_Port::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_Port_class_data_.tc_table); return GameServer_Status_Port_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 50, 2> -GameServer_Status_Port::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // int32 port = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_Port, _impl_.port_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt32)}, - }}, - // no aux_entries - {{ - "\45\4\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.Port" - "name" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_Port::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_Port_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_Port_globals_)); + return GameServer_Status_Port_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_Port::ParseTableT_ + GameServer_Status_Port::_table_ = + GameServer_Status_Port::InternalGenerateParseTable_(GameServer_Status_Port_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.Port) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3257,7 +4810,7 @@ PROTOBUF_NOINLINE void GameServer_Status_Port::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.name_.ClearNonDefaultToEmpty(); } _impl_.port_ = 0; @@ -3276,12 +4829,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_Port& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.Port) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3291,7 +4848,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_Port::_InternalSerialize( } // int32 port = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_port() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<2>( @@ -3324,16 +4881,16 @@ ::size_t GameServer_Status_Port::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string name = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // int32 port = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_port() != 0) { total_size += ::_pbi::WireFormatLite::Int32SizePlusOne( this_._internal_port()); @@ -3344,17 +4901,21 @@ ::size_t GameServer_Status_Port::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_Port::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.Port) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -3363,18 +4924,19 @@ void GameServer_Status_Port::MergeImpl(::google::protobuf::MessageLite& to_msg, } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_port() != 0) { _this->_impl_.port_ = from._impl_.port_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Status_Port::CopyFrom(const GameServer_Status_Port& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Port) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.Port) if (&from == this) return; Clear(); MergeFrom(from); @@ -3396,17 +4958,9 @@ ::google::protobuf::Metadata GameServer_Status_Port::GetMetadata() const { } // =================================================================== -class GameServer_Status_CounterStatus::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._has_bits_); -}; - GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3416,7 +4970,7 @@ GameServer_Status_CounterStatus::GameServer_Status_CounterStatus(::google::proto GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_CounterStatus& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_class_data_.base()), + : ::google::protobuf::Message(arena, GameServer_Status_CounterStatus_get_class_data()), #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena), #endif // PROTOBUF_CUSTOM_VTABLE @@ -3425,13 +4979,13 @@ GameServer_Status_CounterStatus::GameServer_Status_CounterStatus( from._internal_metadata_); } PROTOBUF_NDEBUG_INLINE GameServer_Status_CounterStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer_Status_CounterStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, count_), 0, offsetof(Impl_, capacity_) - @@ -3444,46 +4998,18 @@ GameServer_Status_CounterStatus::~GameServer_Status_CounterStatus() { } inline void GameServer_Status_CounterStatus::SharedDtor(MessageLite& self) { GameServer_Status_CounterStatus& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Status_CounterStatus::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_CounterStatus(arena); -} -constexpr auto GameServer_Status_CounterStatus::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer_Status_CounterStatus), - alignof(GameServer_Status_CounterStatus)); -} -constexpr auto GameServer_Status_CounterStatus::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_CounterStatus_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_CounterStatus::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_CounterStatus::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_CounterStatus::ByteSizeLong, - &GameServer_Status_CounterStatus::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._cached_size_), - false, - }, - &GameServer_Status_CounterStatus::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_CounterStatus_class_data_ = - GameServer_Status_CounterStatus::InternalGenerateClassData_(); + GameServer_Status_CounterStatus::InternalGenerateClassData_(GameServer_Status_CounterStatus_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_CounterStatus::GetClassData() const { @@ -3491,46 +5017,21 @@ GameServer_Status_CounterStatus::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CounterStatus_class_data_.tc_table); return GameServer_Status_CounterStatus_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 0, 2> -GameServer_Status_CounterStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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_), 1>(), - {16, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_)}}, - // int64 count = 1; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(GameServer_Status_CounterStatus, _impl_.count_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 count = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.count_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // int64 capacity = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CounterStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - }}, - // no aux_entries - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_CounterStatus::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CounterStatus_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_CounterStatus_globals_)); + return GameServer_Status_CounterStatus_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_CounterStatus::ParseTableT_ + GameServer_Status_CounterStatus::_table_ = + GameServer_Status_CounterStatus::InternalGenerateParseTable_(GameServer_Status_CounterStatus_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.CounterStatus) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3539,7 +5040,7 @@ PROTOBUF_NOINLINE void GameServer_Status_CounterStatus::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { ::memset(&_impl_.count_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.capacity_) - reinterpret_cast(&_impl_.count_)) + sizeof(_impl_.capacity_)); @@ -3559,12 +5060,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_CounterStatus& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.CounterStatus) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int64 count = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_count() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -3573,7 +5078,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_CounterStatus::_InternalSerialize( } // int64 capacity = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_capacity() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<2>( @@ -3606,16 +5111,16 @@ ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // int64 count = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (this_._internal_count() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_count()); } } // int64 capacity = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_capacity() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_capacity()); @@ -3626,33 +5131,38 @@ ::size_t GameServer_Status_CounterStatus::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_CounterStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (from._internal_count() != 0) { _this->_impl_.count_ = from._impl_.count_; } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (from._internal_capacity() != 0) { _this->_impl_.capacity_ = from._impl_.capacity_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Status_CounterStatus::CopyFrom(const GameServer_Status_CounterStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.CounterStatus) if (&from == this) return; Clear(); MergeFrom(from); @@ -3676,17 +5186,9 @@ ::google::protobuf::Metadata GameServer_Status_CounterStatus::GetMetadata() cons } // =================================================================== -class GameServer_Status_ListStatus::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._has_bits_); -}; - GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3694,18 +5196,25 @@ GameServer_Status_ListStatus::GameServer_Status_ListStatus(::google::protobuf::A // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_Status_ListStatus& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status_ListStatus& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - values_{visibility, arena, from.values_} {} + values_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status_ListStatus, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() + , from.values_ + } + {} GameServer_Status_ListStatus::GameServer_Status_ListStatus( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status_ListStatus& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_ListStatus_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3719,10 +5228,14 @@ GameServer_Status_ListStatus::GameServer_Status_ListStatus( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status.ListStatus) } PROTOBUF_NDEBUG_INLINE GameServer_Status_ListStatus::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - values_{visibility, arena} {} + values_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status_ListStatus, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status_ListStatus, _impl_.values_)>() + } + {} inline void GameServer_Status_ListStatus::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -3734,58 +5247,18 @@ GameServer_Status_ListStatus::~GameServer_Status_ListStatus() { } inline void GameServer_Status_ListStatus::SharedDtor(MessageLite& self) { GameServer_Status_ListStatus& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Status_ListStatus::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_ListStatus(arena); -} -constexpr auto GameServer_Status_ListStatus::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_) + - decltype(GameServer_Status_ListStatus::_impl_.values_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit( - sizeof(GameServer_Status_ListStatus), alignof(GameServer_Status_ListStatus), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GameServer_Status_ListStatus::PlacementNew_, - sizeof(GameServer_Status_ListStatus), - alignof(GameServer_Status_ListStatus)); - } -} -constexpr auto GameServer_Status_ListStatus::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_ListStatus_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_ListStatus::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_ListStatus::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status_ListStatus::ByteSizeLong, - &GameServer_Status_ListStatus::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._cached_size_), - false, - }, - &GameServer_Status_ListStatus::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListStatus_class_data_ = - GameServer_Status_ListStatus::InternalGenerateClassData_(); + GameServer_Status_ListStatus::InternalGenerateClassData_(GameServer_Status_ListStatus_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_ListStatus::GetClassData() const { @@ -3793,49 +5266,21 @@ GameServer_Status_ListStatus::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListStatus_class_data_.tc_table); return GameServer_Status_ListStatus_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 58, 2> -GameServer_Status_ListStatus::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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_), 0>(), - {8, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // int64 capacity = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.capacity_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kInt64)}, - // repeated string values = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListStatus, _impl_.values_), -1, 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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_ListStatus::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListStatus_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_ListStatus_globals_)); + return GameServer_Status_ListStatus_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_ListStatus::ParseTableT_ + GameServer_Status_ListStatus::_table_ = + GameServer_Status_ListStatus::InternalGenerateParseTable_(GameServer_Status_ListStatus_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status.ListStatus) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3843,7 +5288,10 @@ PROTOBUF_NOINLINE void GameServer_Status_ListStatus::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.values_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.values_.Clear(); + } _impl_.capacity_ = ::int64_t{0}; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -3860,12 +5308,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status_ListStatus& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status.ListStatus) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // int64 capacity = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_capacity() != 0) { target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<1>( @@ -3874,11 +5326,13 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status_ListStatus::_InternalSerialize( } // repeated string values = 2; - for (int i = 0, n = this_._internal_values_size(); i < n; ++i) { - 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 (CheckHasBit(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_values_size(); i < n; ++i) { + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -3905,9 +5359,10 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // repeated string values = 2; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_values().size()); for (int i = 0, n = this_._internal_values().size(); i < n; ++i) { @@ -3915,11 +5370,8 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { this_._internal_values().Get(i)); } } - } - { // int64 capacity = 1; - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_capacity() != 0) { total_size += ::_pbi::WireFormatLite::Int64SizePlusOne( this_._internal_capacity()); @@ -3930,27 +5382,39 @@ ::size_t GameServer_Status_ListStatus::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer_Status_ListStatus::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:agones.dev.sdk.GameServer.Status.ListStatus) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_values()->MergeFrom(from._internal_values()); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { - if (from._internal_capacity() != 0) { - _this->_impl_.capacity_ = from._impl_.capacity_; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_values()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_values()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_capacity() != 0) { + _this->_impl_.capacity_ = from._impl_.capacity_; + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Status_ListStatus::CopyFrom(const GameServer_Status_ListStatus& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.ListStatus) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status.ListStatus) if (&from == this) return; Clear(); MergeFrom(from); @@ -3971,214 +5435,84 @@ ::google::protobuf::Metadata GameServer_Status_ListStatus::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() - : SuperType(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} +GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() : SuperType(GameServer_Status_CountersEntry_DoNotUse_get_class_data()) {} GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_Status_CountersEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, GameServer_Status_CountersEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse() : SuperType() {} GameServer_Status_CountersEntry_DoNotUse::GameServer_Status_CountersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_CountersEntry_DoNotUse(arena); -} -constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_CountersEntry_DoNotUse), - alignof(GameServer_Status_CountersEntry_DoNotUse)); -} -constexpr auto GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_CountersEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_CountersEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_CountersEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_Status_CountersEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &GameServer_Status_CountersEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_CountersEntry_DoNotUse_class_data_ = - GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_(); + GameServer_Status_CountersEntry_DoNotUse::InternalGenerateClassData_(GameServer_Status_CountersEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_CountersEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CountersEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_CountersEntry_DoNotUse_class_data_.tc_table); return GameServer_Status_CountersEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 58, 2> -GameServer_Status_CountersEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_._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), - GameServer_Status_CountersEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CountersEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .agones.dev.sdk.GameServer.Status.CounterStatus value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_CountersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, - }}, - {{ - "\56\3\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.CountersEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_CountersEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_CountersEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_CountersEntry_DoNotUse_globals_)); + return GameServer_Status_CountersEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_CountersEntry_DoNotUse::ParseTableT_ + GameServer_Status_CountersEntry_DoNotUse::_table_ = + GameServer_Status_CountersEntry_DoNotUse::InternalGenerateParseTable_(GameServer_Status_CountersEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() - : SuperType(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} +GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() : SuperType(GameServer_Status_ListsEntry_DoNotUse_get_class_data()) {} GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, GameServer_Status_ListsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, GameServer_Status_ListsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse() : SuperType() {} GameServer_Status_ListsEntry_DoNotUse::GameServer_Status_ListsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status_ListsEntry_DoNotUse(arena); -} -constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(GameServer_Status_ListsEntry_DoNotUse), - alignof(GameServer_Status_ListsEntry_DoNotUse)); -} -constexpr auto GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_ListsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status_ListsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status_ListsEntry_DoNotUse::SharedDtor, - static_cast(&GameServer_Status_ListsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &GameServer_Status_ListsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_ListsEntry_DoNotUse_class_data_ = - GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_(); + GameServer_Status_ListsEntry_DoNotUse::InternalGenerateClassData_(GameServer_Status_ListsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status_ListsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_ListsEntry_DoNotUse_class_data_.tc_table); return GameServer_Status_ListsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 55, 2> -GameServer_Status_ListsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_._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), - GameServer_Status_ListsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .agones.dev.sdk.GameServer.Status.ListStatus value = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status_ListsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, - }}, - {{ - "\53\3\0\0\0\0\0\0" - "agones.dev.sdk.GameServer.Status.ListsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status_ListsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_ListsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_ListsEntry_DoNotUse_globals_)); + return GameServer_Status_ListsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status_ListsEntry_DoNotUse::ParseTableT_ + GameServer_Status_ListsEntry_DoNotUse::_table_ = + GameServer_Status_ListsEntry_DoNotUse::InternalGenerateParseTable_(GameServer_Status_ListsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class GameServer_Status::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._has_bits_); -}; - GameServer_Status::GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4186,23 +5520,48 @@ GameServer_Status::GameServer_Status(::google::protobuf::Arena* PROTOBUF_NULLABL // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer.Status) } PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer_Status& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer_Status& from_msg) : _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_}, + ports_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() + , from.ports_ + } + , + addresses_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() + , from.addresses_ + } + , state_(arena, from.state_), - address_(arena, from.address_) {} + address_(arena, from.address_), + counters_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() + , from.counters_ + } + , + lists_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() + , from.lists_ + } + {} GameServer_Status::GameServer_Status( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer_Status& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_Status_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_Status_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4215,15 +5574,31 @@ GameServer_Status::GameServer_Status( // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer.Status) } PROTOBUF_NDEBUG_INLINE GameServer_Status::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - ports_{visibility, arena}, - counters_{visibility, arena}, - lists_{visibility, arena}, - addresses_{visibility, arena}, + ports_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.ports_)>() + } + , + addresses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.addresses_)>() + } + , state_(arena), - address_(arena) {} + address_(arena), + counters_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.counters_)>() + } + , + lists_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::agones::dev::sdk::GameServer_Status, + PROTOBUF_FIELD_OFFSET(::agones::dev::sdk::GameServer_Status, _impl_.lists_)>() + } + {} inline void GameServer_Status::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -4234,6 +5609,9 @@ GameServer_Status::~GameServer_Status() { } inline void GameServer_Status::SharedDtor(MessageLite& self) { GameServer_Status& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.state_.Destroy(); @@ -4241,73 +5619,10 @@ inline void GameServer_Status::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer_Status::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer_Status(arena); -} -constexpr auto GameServer_Status::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_) + - decltype(GameServer_Status::_impl_.addresses_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.ports_) + - decltype(GameServer_Status::_impl_.ports_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + - decltype(GameServer_Status::_impl_.counters_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.counters_) + - decltype(GameServer_Status::_impl_.counters_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + - decltype(GameServer_Status::_impl_.lists_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.lists_) + - decltype(GameServer_Status::_impl_.lists_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(GameServer_Status), alignof(GameServer_Status), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&GameServer_Status::PlacementNew_, - sizeof(GameServer_Status), - alignof(GameServer_Status)); - } -} -constexpr auto GameServer_Status::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_Status_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer_Status::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer_Status::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer_Status::ByteSizeLong, - &GameServer_Status::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_._cached_size_), - false, - }, - &GameServer_Status::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_Status_class_data_ = - GameServer_Status::InternalGenerateClassData_(); + GameServer_Status::InternalGenerateClassData_(GameServer_Status_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer_Status::GetClassData() const { @@ -4315,85 +5630,21 @@ GameServer_Status::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_Status_class_data_.tc_table); return GameServer_Status_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 6, 6, 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), - 4294967176, // skipmap - offsetof(decltype(_table_), field_entries), - 6, // num_field_entries - 6, // num_aux_entries - offsetof(decltype(_table_), aux_entries), - GameServer_Status_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_)}}, - // string address = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 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_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - {::_pbi::TcParser::FastMtR1, - {58, 63, 1, PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.addresses_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string state = 1; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.state_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string address = 2; - {PROTOBUF_FIELD_OFFSET(GameServer_Status, _impl_.address_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_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)}, - // 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, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Port>()}, - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_Address>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_CounterStatus>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::agones::dev::sdk::GameServer_Status_ListStatus>()}, - }}, - {{ - "\40\5\7\0\10\5\0\0" - "agones.dev.sdk.GameServer.Status" - "state" - "address" - "counters" - "lists" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer_Status::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_Status_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_Status_globals_)); + return GameServer_Status_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer_Status::ParseTableT_ + GameServer_Status::_table_ = + GameServer_Status::InternalGenerateParseTable_(GameServer_Status_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer_Status::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer.Status) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4401,18 +5652,26 @@ PROTOBUF_NOINLINE void GameServer_Status::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.ports_.Clear(); - _impl_.counters_.Clear(); - _impl_.lists_.Clear(); - _impl_.addresses_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.ports_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.addresses_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.state_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.address_.ClearNonDefaultToEmpty(); } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.counters_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _impl_.lists_.Clear(); + } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -4429,12 +5688,16 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer_Status& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer.Status) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string state = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_state().empty()) { const ::std::string& _s = this_._internal_state(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4444,7 +5707,7 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( } // string address = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_address().empty()) { const ::std::string& _s = this_._internal_address(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4454,79 +5717,87 @@ ::uint8_t* PROTOBUF_NONNULL GameServer_Status::_InternalSerialize( } // 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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 3, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + 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); + } } // map counters = 5; - if (!this_._internal_counters().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_counters().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + if (!this_._internal_lists().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 6, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 7, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -4553,80 +5824,87 @@ ::size_t GameServer_Status::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { // repeated .agones.dev.sdk.GameServer.Status.Port ports = 3; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1UL * this_._internal_ports_size(); for (const auto& msg : this_._internal_ports()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - // map counters = 5; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_counters_size()); - for (const auto& entry : this_._internal_counters()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - // map lists = 6; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_lists_size()); - for (const auto& entry : this_._internal_lists()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } // repeated .agones.dev.sdk.GameServer.Status.Address addresses = 7; - { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1UL * this_._internal_addresses_size(); for (const auto& msg : this_._internal_addresses()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { // string state = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_state().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_state()); } } // string address = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_address().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_address()); } } + // map counters = 5; + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_counters_size()); + for (const auto& entry : this_._internal_counters()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_CounterStatus, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } + // map lists = 6; + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_lists_size()); + for (const auto& entry : this_._internal_lists()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::agones::dev::sdk::GameServer_Status_ListStatus, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::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; + (void)cached_has_bits; - _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()); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000003fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_ports()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_ports()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_addresses()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_addresses()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_state().empty()) { _this->_internal_set_state(from._internal_state()); } else { @@ -4635,7 +5913,7 @@ void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_address().empty()) { _this->_internal_set_address(from._internal_address()); } else { @@ -4644,13 +5922,20 @@ void GameServer_Status::MergeImpl(::google::protobuf::MessageLite& to_msg, const } } } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.counters_.MergeFrom(from._impl_.counters_); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { + _this->_impl_.lists_.MergeFrom(from._impl_.lists_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer_Status::CopyFrom(const GameServer_Status& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer.Status) if (&from == this) return; Clear(); MergeFrom(from); @@ -4664,11 +5949,11 @@ void GameServer_Status::InternalSwap(GameServer_Status* PROTOBUF_RESTRICT PROTOB _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.ports_.InternalSwap(&other->_impl_.ports_); - _impl_.counters_.InternalSwap(&other->_impl_.counters_); - _impl_.lists_.InternalSwap(&other->_impl_.lists_); _impl_.addresses_.InternalSwap(&other->_impl_.addresses_); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.state_, &other->_impl_.state_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.address_, &other->_impl_.address_, arena); + _impl_.counters_.InternalSwap(&other->_impl_.counters_); + _impl_.lists_.InternalSwap(&other->_impl_.lists_); } ::google::protobuf::Metadata GameServer_Status::GetMetadata() const { @@ -4676,17 +5961,9 @@ ::google::protobuf::Metadata GameServer_Status::GetMetadata() const { } // =================================================================== -class GameServer::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(GameServer, _impl_._has_bits_); -}; - GameServer::GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4694,9 +5971,9 @@ GameServer::GameServer(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:agones.dev.sdk.GameServer) } PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::agones::dev::sdk::GameServer& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::agones::dev::sdk::GameServer& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0} {} @@ -4704,7 +5981,8 @@ GameServer::GameServer( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const GameServer& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, GameServer_class_data_.base()) { + : ::google::protobuf::Message(arena, GameServer_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4714,26 +5992,26 @@ GameServer::GameServer( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.object_meta_ = ((cached_has_bits & 0x00000001u) != 0) + _impl_.object_meta_ = (CheckHasBit(cached_has_bits, 0x00000001U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_) : nullptr; - _impl_.spec_ = ((cached_has_bits & 0x00000002u) != 0) + _impl_.spec_ = (CheckHasBit(cached_has_bits, 0x00000002U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_) : nullptr; - _impl_.status_ = ((cached_has_bits & 0x00000004u) != 0) + _impl_.status_ = (CheckHasBit(cached_has_bits, 0x00000004U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_) : nullptr; // @@protoc_insertion_point(copy_constructor:agones.dev.sdk.GameServer) } PROTOBUF_NDEBUG_INLINE GameServer::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0} {} inline void GameServer::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, object_meta_), 0, offsetof(Impl_, status_) - @@ -4746,6 +6024,9 @@ GameServer::~GameServer() { } inline void GameServer::SharedDtor(MessageLite& self) { GameServer& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); delete this_._impl_.object_meta_; @@ -4754,41 +6035,10 @@ inline void GameServer::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL GameServer::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) GameServer(arena); -} -constexpr auto GameServer::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::ZeroInit(sizeof(GameServer), - alignof(GameServer)); -} -constexpr auto GameServer::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_GameServer_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &GameServer::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &GameServer::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &GameServer::ByteSizeLong, - &GameServer::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(GameServer, _impl_._cached_size_), - false, - }, - &GameServer::kDescriptorMethods, - &descriptor_table_sdk_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull GameServer_class_data_ = - GameServer::InternalGenerateClassData_(); + GameServer::InternalGenerateClassData_(GameServer_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GameServer::GetClassData() const { @@ -4796,57 +6046,21 @@ GameServer::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(GameServer_class_data_.tc_table); return GameServer_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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>()}, - }}, - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +GameServer::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&GameServer_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&GameServer_globals_)); + return GameServer_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const GameServer::ParseTableT_ + GameServer::_table_ = + GameServer::InternalGenerateParseTable_(GameServer_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void GameServer::Clear() { // @@protoc_insertion_point(message_clear_start:agones.dev.sdk.GameServer) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4855,16 +6069,16 @@ PROTOBUF_NOINLINE void GameServer::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(_impl_.object_meta_ != nullptr); _impl_.object_meta_->Clear(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(_impl_.spec_ != nullptr); _impl_.spec_->Clear(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(_impl_.status_ != nullptr); _impl_.status_->Clear(); } @@ -4884,27 +6098,30 @@ ::uint8_t* PROTOBUF_NONNULL GameServer::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const GameServer& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:agones.dev.sdk.GameServer) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.object_meta_, this_._impl_.object_meta_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Spec spec = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.spec_, this_._impl_.spec_->GetCachedSize(), target, stream); } // .agones.dev.sdk.GameServer.Status status = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.status_, this_._impl_.status_->GetCachedSize(), target, stream); @@ -4935,19 +6152,19 @@ ::size_t GameServer::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // .agones.dev.sdk.GameServer.ObjectMeta object_meta = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.object_meta_); } // .agones.dev.sdk.GameServer.Spec spec = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.spec_); } // .agones.dev.sdk.GameServer.Status status = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.status_); } @@ -4956,18 +6173,22 @@ ::size_t GameServer::ByteSizeLong() const { &this_._impl_._cached_size_); } -void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { ABSL_DCHECK(from._impl_.object_meta_ != nullptr); if (_this->_impl_.object_meta_ == nullptr) { _this->_impl_.object_meta_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.object_meta_); @@ -4975,7 +6196,7 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog _this->_impl_.object_meta_->MergeFrom(*from._impl_.object_meta_); } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(from._impl_.spec_ != nullptr); if (_this->_impl_.spec_ == nullptr) { _this->_impl_.spec_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.spec_); @@ -4983,7 +6204,7 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog _this->_impl_.spec_->MergeFrom(*from._impl_.spec_); } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(from._impl_.status_ != nullptr); if (_this->_impl_.status_ == nullptr) { _this->_impl_.status_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.status_); @@ -4993,11 +6214,12 @@ void GameServer::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void GameServer::CopyFrom(const GameServer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer) + // @@protoc_insertion_point(class_specific_copy_from_start:agones.dev.sdk.GameServer) if (&from == this) return; Clear(); MergeFrom(from); diff --git a/sdks/cpp/src/google/annotations.pb.cc b/sdks/cpp/src/google/annotations.pb.cc index 810483535a..c7581f6a6a 100644 --- a/sdks/cpp/src/google/annotations.pb.cc +++ b/sdks/cpp/src/google/annotations.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/annotations.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #include "google/api/annotations.pb.h" @@ -24,6 +24,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -43,14 +44,14 @@ namespace google { namespace api { } // namespace api } // namespace google -static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_enum_descriptors_google_2fapi_2fannotations_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_google_2fapi_2fannotations_2eproto = nullptr; const ::uint32_t TableStruct_google_2fapi_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* PROTOBUF_NULLABLE schemas = nullptr; -static constexpr ::_pb::Message* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE - file_default_instances = nullptr; +static constexpr ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE + file_message_globals = nullptr; const char descriptor_table_protodef_google_2fapi_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { "\n\034google/api/annotations.proto\022\ngoogle.a" @@ -79,7 +80,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2 2, 0, schemas, - file_default_instances, + file_message_globals, TableStruct_google_2fapi_2fannotations_2eproto::offsets, file_level_enum_descriptors_google_2fapi_2fannotations_2eproto, file_level_service_descriptors_google_2fapi_2fannotations_2eproto, @@ -89,7 +90,7 @@ namespace api { 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_); + http(kHttpFieldNumber, &::google::api::HttpRule_globals_); // @@protoc_insertion_point(namespace_scope) } // namespace api } // namespace google diff --git a/sdks/cpp/src/google/http.pb.cc b/sdks/cpp/src/google/http.pb.cc index 31e4b0789d..ff945bcbcb 100644 --- a/sdks/cpp/src/google/http.pb.cc +++ b/sdks/cpp/src/google/http.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: google/api/http.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #include "google/api/http.pb.h" @@ -24,6 +24,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -39,10 +40,76 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; +#ifdef PROTOBUF_MESSAGE_GLOBALS +namespace { +PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData + file_reflection_data[] = { + // ::google::api::Http + {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, + // ::google::api::HttpRule + {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, + // ::google::api::CustomHttpPattern + {&::_pbi::kDescriptorMethods, &::descriptor_table_google_2fapi_2fhttp_2eproto, /* tracker*/ nullptr,}, +}; +} // namespace +#endif namespace google { namespace api { +class CustomHttpPattern::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_); +}; + +constexpr CustomHttpPattern::ParseTableT_ CustomHttpPattern::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, + // string kind = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string kind = 1; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string path = 2; + {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\34\4\4\0\0\0\0\0" + "google.api.CustomHttpPattern" + "kind" + "path" + }}, + }; +} + inline constexpr CustomHttpPattern::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, kind_( @@ -53,29 +120,206 @@ inline constexpr CustomHttpPattern::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized) +constexpr CustomHttpPattern::CustomHttpPattern(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(CustomHttpPattern_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL CustomHttpPattern::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) CustomHttpPattern(arena); +} +constexpr auto CustomHttpPattern::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CustomHttpPattern), alignof(CustomHttpPattern)); } -struct CustomHttpPatternDefaultTypeInternal { - PROTOBUF_CONSTEXPR CustomHttpPatternDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~CustomHttpPatternDefaultTypeInternal() {} +constexpr auto CustomHttpPattern::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &CustomHttpPattern::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &CustomHttpPattern::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &CustomHttpPattern::ByteSizeLong, + &CustomHttpPattern::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[2], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct CustomHttpPatternGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr CustomHttpPatternGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + CustomHttpPattern_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(CustomHttpPattern::InternalGenerateClassData_( + _default, &CustomHttpPattern_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~CustomHttpPatternGlobalsTypeInternal() {} union { - CustomHttpPattern _instance; + alignas(::_pbi::kMaxMessageAlignment) CustomHttpPattern _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(CustomHttpPatternGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST CustomHttpPatternGlobalsTypeInternal CustomHttpPattern_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* CustomHttpPattern_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return CustomHttpPattern_globals_.GetClassData(); +#else + return CustomHttpPattern_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class HttpRule::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_); + static constexpr ::int32_t kOneofCaseOffset = + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); +}; + +constexpr HttpRule::ParseTableT_ HttpRule::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_), + 0, // no _extensions_ + 12, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294963968, // skipmap + offsetof(ParseTableT_, field_entries), + 10, // num_field_entries + 2, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated .google.api.HttpRule additional_bindings = 11; + {::_pbi::TcParser::FastMtR1, + {90, 0, 1, + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_)}}, + // string response_body = 12; + {::_pbi::TcParser::FastUS1, + {98, 3, 0, + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // string body = 7; + {::_pbi::TcParser::FastUS1, + {58, 2, 0, + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string selector = 1; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 0, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // string response_body = 12; + {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::api::CustomHttpPattern>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::api::CustomHttpPattern_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::api::HttpRule_globals_}, + #endif + }}, + {{ + "\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" + }}, + }; +} + inline constexpr HttpRule::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - additional_bindings_{}, + additional_bindings_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::HttpRule, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() + } + , selector_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -89,55 +333,260 @@ inline constexpr HttpRule::Impl_::Impl_( _oneof_case_{} {} template -PROTOBUF_CONSTEXPR HttpRule::HttpRule(::_pbi::ConstantInitialized) +constexpr HttpRule::HttpRule(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(HttpRule_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL HttpRule::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) HttpRule(arena); +} +constexpr auto HttpRule::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(HttpRule), alignof(HttpRule)); +} +constexpr auto HttpRule::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &HttpRule::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &HttpRule::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &HttpRule::ByteSizeLong, + &HttpRule::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[1], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct HttpRuleDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpRuleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HttpRuleDefaultTypeInternal() {} +struct HttpRuleGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr HttpRuleGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + HttpRule_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(HttpRule::InternalGenerateClassData_( + _default, &HttpRule_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~HttpRuleGlobalsTypeInternal() {} union { - HttpRule _instance; + alignas(::_pbi::kMaxMessageAlignment) HttpRule _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(HttpRuleGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpRuleDefaultTypeInternal _HttpRule_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HttpRuleGlobalsTypeInternal HttpRule_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* HttpRule_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return HttpRule_globals_.GetClassData(); +#else + return HttpRule_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Http::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_); +}; + +constexpr Http::ParseTableT_ Http::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_)}}, + // repeated .google.api.HttpRule rules = 1; + {::_pbi::TcParser::FastMtR1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated .google.api.HttpRule rules = 1; + {PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // bool fully_decode_reserved_expansion = 2; + {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::api::HttpRule_globals_}, + #endif + }}, + {{ + }}, + }; +} + inline constexpr Http::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - rules_{}, + rules_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::Http, + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() + } + , fully_decode_reserved_expansion_{false} {} template -PROTOBUF_CONSTEXPR Http::Http(::_pbi::ConstantInitialized) +constexpr Http::Http(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Http_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } -struct HttpDefaultTypeInternal { - PROTOBUF_CONSTEXPR HttpDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HttpDefaultTypeInternal() {} +inline void* PROTOBUF_NONNULL Http::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Http(arena); +} +constexpr auto Http::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Http), alignof(Http)); +} +constexpr auto Http::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Http::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Http::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Http::ByteSizeLong, + &Http::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Http, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[0], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_google_2fapi_2fhttp_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct HttpGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr HttpGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Http_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Http::InternalGenerateClassData_( + _default, &Http_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~HttpGlobalsTypeInternal() {} union { - Http _instance; + alignas(::_pbi::kMaxMessageAlignment) Http _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(HttpGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HttpDefaultTypeInternal _Http_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HttpGlobalsTypeInternal Http_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Http_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Http_globals_.GetClassData(); +#else + return Http_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE } // namespace api } // namespace google -static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_enum_descriptors_google_2fapi_2fhttp_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_google_2fapi_2fhttp_2eproto = nullptr; const ::uint32_t TableStruct_google_2fapi_2fhttp_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -147,33 +596,33 @@ const ::uint32_t 5, // hasbit index offset PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_), PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.fully_decode_reserved_expansion_), - ~0u, 0, + 1, 0x085, // bitmap PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._has_bits_), PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_[0]), 15, // hasbit index offset 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_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.pattern_), 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_), - 0, + 1, ~0u, ~0u, ~0u, ~0u, ~0u, ~0u, - 1, 2, - ~0u, + 3, + 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::google::api::CustomHttpPattern, _impl_._has_bits_), 5, // hasbit index offset @@ -189,10 +638,11 @@ static const ::_pbi::MigrationSchema {7, sizeof(::google::api::HttpRule)}, {32, sizeof(::google::api::CustomHttpPattern)}, }; -static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = { - &::google::api::_Http_default_instance_._instance, - &::google::api::_HttpRule_default_instance_._instance, - &::google::api::_CustomHttpPattern_default_instance_._instance, +static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const + file_message_globals[] = { + &::google::api::Http_globals_, + &::google::api::HttpRule_globals_, + &::google::api::CustomHttpPattern_globals_, }; const char descriptor_table_protodef_google_2fapi_2fhttp_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -223,7 +673,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_google_2fapi_2 0, 3, schemas, - file_default_instances, + file_message_globals, TableStruct_google_2fapi_2fhttp_2eproto::offsets, file_level_enum_descriptors_google_2fapi_2fhttp_2eproto, file_level_service_descriptors_google_2fapi_2fhttp_2eproto, @@ -232,17 +682,9 @@ namespace google { namespace api { // =================================================================== -class Http::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Http, _impl_._has_bits_); -}; - Http::Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Http_class_data_.base()) { + : ::google::protobuf::Message(arena, Http_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -250,18 +692,25 @@ Http::Http(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:google.api.Http) } PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::google::api::Http& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::google::api::Http& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - rules_{visibility, arena, from.rules_} {} + rules_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::Http, + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() + , from.rules_ + } + {} Http::Http( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Http& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Http_class_data_.base()) { + : ::google::protobuf::Message(arena, Http_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -275,10 +724,14 @@ Http::Http( // @@protoc_insertion_point(copy_constructor:google.api.Http) } PROTOBUF_NDEBUG_INLINE Http::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - rules_{visibility, arena} {} + rules_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::Http, + PROTOBUF_FIELD_OFFSET(::google::api::Http, _impl_.rules_)>() + } + {} inline void Http::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -290,58 +743,18 @@ Http::~Http() { } inline void Http::SharedDtor(MessageLite& self) { Http& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Http::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Http(arena); -} -constexpr auto Http::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Http, _impl_.rules_) + - decltype(Http::_impl_.rules_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit( - sizeof(Http), alignof(Http), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Http::PlacementNew_, - sizeof(Http), - alignof(Http)); - } -} -constexpr auto Http::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Http_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Http::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Http::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Http::ByteSizeLong, - &Http::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Http, _impl_._cached_size_), - false, - }, - &Http::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Http_class_data_ = - Http::InternalGenerateClassData_(); + Http::InternalGenerateClassData_(Http_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Http::GetClassData() const { @@ -349,48 +762,21 @@ Http::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Http_class_data_.tc_table); return Http_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 0, 2> -Http::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Http, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 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_), -1, 0, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // bool fully_decode_reserved_expansion = 2; - {PROTOBUF_FIELD_OFFSET(Http, _impl_.fully_decode_reserved_expansion_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::api::HttpRule>()}, - }}, - {{ - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Http::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Http_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Http_globals_)); + return Http_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Http::ParseTableT_ + Http::_table_ = + Http::InternalGenerateParseTable_(Http_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Http::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.Http) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -398,7 +784,10 @@ PROTOBUF_NOINLINE void Http::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.rules_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.rules_.Clear(); + } _impl_.fully_decode_reserved_expansion_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -415,23 +804,29 @@ ::uint8_t* PROTOBUF_NONNULL Http::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Http& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:google.api.Http) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // 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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 1, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + 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; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_fully_decode_reserved_expansion() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -463,19 +858,17 @@ ::size_t Http::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // repeated .google.api.HttpRule rules = 1; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1UL * this_._internal_rules_size(); for (const auto& msg : this_._internal_rules()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - } - { // bool fully_decode_reserved_expansion = 2; - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (this_._internal_fully_decode_reserved_expansion() != 0) { total_size += 2; } @@ -485,28 +878,39 @@ ::size_t Http::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Http::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:google.api.Http) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_rules()->MergeFrom( - from._internal_rules()); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { - if (from._internal_fully_decode_reserved_expansion() != 0) { - _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_rules()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_rules()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + if (from._internal_fully_decode_reserved_expansion() != 0) { + _this->_impl_.fully_decode_reserved_expansion_ = from._impl_.fully_decode_reserved_expansion_; + } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Http::CopyFrom(const Http& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http) + // @@protoc_insertion_point(class_specific_copy_from_start:google.api.Http) if (&from == this) return; Clear(); MergeFrom(from); @@ -526,16 +930,6 @@ ::google::protobuf::Metadata Http::GetMetadata() const { } // =================================================================== -class HttpRule::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._has_bits_); - static constexpr ::int32_t kOneofCaseOffset = - PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_._oneof_case_); -}; - void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_NULLABLE custom) { ::google::protobuf::Arena* message_arena = GetArena(); clear_pattern(); @@ -551,7 +945,7 @@ void HttpRule::set_allocated_custom(::google::api::CustomHttpPattern* PROTOBUF_N } HttpRule::HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, HttpRule_class_data_.base()) { + : ::google::protobuf::Message(arena, HttpRule_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -559,12 +953,18 @@ HttpRule::HttpRule(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:google.api.HttpRule) } PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::google::api::HttpRule& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::google::api::HttpRule& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - additional_bindings_{visibility, arena, from.additional_bindings_}, + additional_bindings_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::HttpRule, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() + , from.additional_bindings_ + } + , selector_(arena, from.selector_), body_(arena, from.body_), response_body_(arena, from.response_body_), @@ -575,7 +975,8 @@ HttpRule::HttpRule( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const HttpRule& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, HttpRule_class_data_.base()) { + : ::google::protobuf::Message(arena, HttpRule_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -610,10 +1011,14 @@ HttpRule::HttpRule( // @@protoc_insertion_point(copy_constructor:google.api.HttpRule) } PROTOBUF_NDEBUG_INLINE HttpRule::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - additional_bindings_{visibility, arena}, + additional_bindings_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::google::api::HttpRule, + PROTOBUF_FIELD_OFFSET(::google::api::HttpRule, _impl_.additional_bindings_)>() + } + , selector_(arena), body_(arena), response_body_(arena), @@ -629,6 +1034,9 @@ HttpRule::~HttpRule() { } inline void HttpRule::SharedDtor(MessageLite& self) { HttpRule& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.selector_.Destroy(); @@ -680,53 +1088,10 @@ void HttpRule::clear_pattern() { } -inline void* PROTOBUF_NONNULL HttpRule::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) HttpRule(arena); -} -constexpr auto HttpRule::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.additional_bindings_) + - decltype(HttpRule::_impl_.additional_bindings_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(HttpRule), alignof(HttpRule), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&HttpRule::PlacementNew_, - sizeof(HttpRule), - alignof(HttpRule)); - } -} -constexpr auto HttpRule::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_HttpRule_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &HttpRule::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &HttpRule::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &HttpRule::ByteSizeLong, - &HttpRule::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._cached_size_), - false, - }, - &HttpRule::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull HttpRule_class_data_ = - HttpRule::InternalGenerateClassData_(); + HttpRule::InternalGenerateClassData_(HttpRule_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL HttpRule::GetClassData() const { @@ -734,93 +1099,21 @@ HttpRule::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(HttpRule_class_data_.tc_table); return HttpRule_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 10, 2, 82, 2> -HttpRule::_table_ = { - { - PROTOBUF_FIELD_OFFSET(HttpRule, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 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, 2, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_)}}, - {::_pbi::TcParser::MiniParse, {}}, - {::_pbi::TcParser::MiniParse, {}}, - // string body = 7; - {::_pbi::TcParser::FastUS1, - {58, 1, 0, PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.body_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string selector = 1; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.selector_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_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_), -1, 1, - (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, - // string response_body = 12; - {PROTOBUF_FIELD_OFFSET(HttpRule, _impl_.response_body_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +HttpRule::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&HttpRule_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&HttpRule_globals_)); + return HttpRule_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const HttpRule::ParseTableT_ + HttpRule::_table_ = + HttpRule::InternalGenerateParseTable_(HttpRule_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void HttpRule::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.HttpRule) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -828,16 +1121,18 @@ PROTOBUF_NOINLINE void HttpRule::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.additional_bindings_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.additional_bindings_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.selector_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.body_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.response_body_.ClearNonDefaultToEmpty(); } } @@ -857,12 +1152,16 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const HttpRule& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:google.api.HttpRule) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string selector = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_selector().empty()) { const ::std::string& _s = this_._internal_selector(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -911,7 +1210,7 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( break; } // string body = 7; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_body().empty()) { const ::std::string& _s = this_._internal_body(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -928,18 +1227,20 @@ ::uint8_t* PROTOBUF_NONNULL HttpRule::_InternalSerialize( } // 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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 11, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + 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_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_response_body().empty()) { const ::std::string& _s = this_._internal_response_body(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -972,33 +1273,31 @@ ::size_t HttpRule::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { // repeated .google.api.HttpRule additional_bindings = 11; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1UL * this_._internal_additional_bindings_size(); for (const auto& msg : this_._internal_additional_bindings()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { // string selector = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_selector().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_selector()); } } // string body = 7; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_body().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_body()); } } // string response_body = 12; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_response_body().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_response_body()); @@ -1050,20 +1349,27 @@ ::size_t HttpRule::ByteSizeLong() const { &this_._impl_._cached_size_); } -void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; + (void)cached_has_bits; - _this->_internal_mutable_additional_bindings()->MergeFrom( - from._internal_additional_bindings()); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_additional_bindings()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_additional_bindings()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_selector().empty()) { _this->_internal_set_selector(from._internal_selector()); } else { @@ -1072,7 +1378,7 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_body().empty()) { _this->_internal_set_body(from._internal_body()); } else { @@ -1081,7 +1387,7 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_response_body().empty()) { _this->_internal_set_response_body(from._internal_response_body()); } else { @@ -1092,7 +1398,8 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } _this->_impl_._has_bits_[0] |= cached_has_bits; - if (const uint32_t oneof_from_case = from._impl_._oneof_case_[0]) { + 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) { @@ -1150,11 +1457,12 @@ void HttpRule::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google break; } } - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void HttpRule::CopyFrom(const HttpRule& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule) + // @@protoc_insertion_point(class_specific_copy_from_start:google.api.HttpRule) if (&from == this) return; Clear(); MergeFrom(from); @@ -1180,17 +1488,9 @@ ::google::protobuf::Metadata HttpRule::GetMetadata() const { } // =================================================================== -class CustomHttpPattern::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._has_bits_); -}; - CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CustomHttpPattern_class_data_.base()) { + : ::google::protobuf::Message(arena, CustomHttpPattern_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1198,9 +1498,9 @@ CustomHttpPattern::CustomHttpPattern(::google::protobuf::Arena* PROTOBUF_NULLABL // @@protoc_insertion_point(arena_constructor:google.api.CustomHttpPattern) } PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::google::api::CustomHttpPattern& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::google::api::CustomHttpPattern& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, kind_(arena, from.kind_), @@ -1210,7 +1510,8 @@ CustomHttpPattern::CustomHttpPattern( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const CustomHttpPattern& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, CustomHttpPattern_class_data_.base()) { + : ::google::protobuf::Message(arena, CustomHttpPattern_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1223,8 +1524,8 @@ CustomHttpPattern::CustomHttpPattern( // @@protoc_insertion_point(copy_constructor:google.api.CustomHttpPattern) } PROTOBUF_NDEBUG_INLINE CustomHttpPattern::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, kind_(arena), path_(arena) {} @@ -1238,6 +1539,9 @@ CustomHttpPattern::~CustomHttpPattern() { } inline void CustomHttpPattern::SharedDtor(MessageLite& self) { CustomHttpPattern& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.kind_.Destroy(); @@ -1245,41 +1549,10 @@ inline void CustomHttpPattern::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL CustomHttpPattern::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) CustomHttpPattern(arena); -} -constexpr auto CustomHttpPattern::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(CustomHttpPattern), - alignof(CustomHttpPattern)); -} -constexpr auto CustomHttpPattern::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_CustomHttpPattern_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &CustomHttpPattern::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &CustomHttpPattern::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &CustomHttpPattern::ByteSizeLong, - &CustomHttpPattern::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._cached_size_), - false, - }, - &CustomHttpPattern::kDescriptorMethods, - &descriptor_table_google_2fapi_2fhttp_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull CustomHttpPattern_class_data_ = - CustomHttpPattern::InternalGenerateClassData_(); + CustomHttpPattern::InternalGenerateClassData_(CustomHttpPattern_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL CustomHttpPattern::GetClassData() const { @@ -1287,50 +1560,21 @@ CustomHttpPattern::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(CustomHttpPattern_class_data_.tc_table); return CustomHttpPattern_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 45, 2> -CustomHttpPattern::_table_ = { - { - PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_)}}, - // string kind = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string kind = 1; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.kind_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string path = 2; - {PROTOBUF_FIELD_OFFSET(CustomHttpPattern, _impl_.path_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\34\4\4\0\0\0\0\0" - "google.api.CustomHttpPattern" - "kind" - "path" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +CustomHttpPattern::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&CustomHttpPattern_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&CustomHttpPattern_globals_)); + return CustomHttpPattern_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const CustomHttpPattern::ParseTableT_ + CustomHttpPattern::_table_ = + CustomHttpPattern::InternalGenerateParseTable_(CustomHttpPattern_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { // @@protoc_insertion_point(message_clear_start:google.api.CustomHttpPattern) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1339,11 +1583,11 @@ PROTOBUF_NOINLINE void CustomHttpPattern::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.kind_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.path_.ClearNonDefaultToEmpty(); } } @@ -1362,12 +1606,16 @@ ::uint8_t* PROTOBUF_NONNULL CustomHttpPattern::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const CustomHttpPattern& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:google.api.CustomHttpPattern) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string kind = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_kind().empty()) { const ::std::string& _s = this_._internal_kind(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1377,7 +1625,7 @@ ::uint8_t* PROTOBUF_NONNULL CustomHttpPattern::_InternalSerialize( } // string path = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_path().empty()) { const ::std::string& _s = this_._internal_path(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -1411,16 +1659,16 @@ ::size_t CustomHttpPattern::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string kind = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_kind().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_kind()); } } // string path = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_path().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_path()); @@ -1431,17 +1679,21 @@ ::size_t CustomHttpPattern::ByteSizeLong() const { &this_._impl_._cached_size_); } -void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:google.api.CustomHttpPattern) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_kind().empty()) { _this->_internal_set_kind(from._internal_kind()); } else { @@ -1450,7 +1702,7 @@ void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, const } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_path().empty()) { _this->_internal_set_path(from._internal_path()); } else { @@ -1461,11 +1713,12 @@ void CustomHttpPattern::MergeImpl(::google::protobuf::MessageLite& to_msg, const } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void CustomHttpPattern::CopyFrom(const CustomHttpPattern& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern) + // @@protoc_insertion_point(class_specific_copy_from_start:google.api.CustomHttpPattern) if (&from == this) return; Clear(); MergeFrom(from); diff --git a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc index 6492e88787..fca85e8411 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/annotations.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/annotations.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #include "protoc-gen-openapiv2/options/annotations.pb.h" @@ -24,6 +24,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -47,14 +48,14 @@ namespace options { } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc -static constexpr const ::_pb::EnumDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::EnumDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto = nullptr; -static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto = nullptr; const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto::offsets[1] = {}; static constexpr ::_pbi::MigrationSchema* PROTOBUF_NULLABLE schemas = nullptr; -static constexpr ::_pb::Message* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE - file_default_instances = nullptr; +static constexpr ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const* PROTOBUF_NULLABLE + file_message_globals = nullptr; const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { "\n.protoc-gen-openapiv2/options/annotatio" @@ -96,7 +97,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2 2, 0, schemas, - file_default_instances, + file_message_globals, TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto::offsets, file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto, file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fannotations_2eproto, @@ -108,23 +109,23 @@ namespace options { 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_); + openapiv2_swagger(kOpenapiv2SwaggerFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_globals_); 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_); + openapiv2_operation(kOpenapiv2OperationFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::Operation_globals_); 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_); + openapiv2_schema(kOpenapiv2SchemaFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_); 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_); + openapiv2_tag(kOpenapiv2TagFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::Tag_globals_); 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_); + openapiv2_field(kOpenapiv2FieldFieldNumber, &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_); // @@protoc_insertion_point(namespace_scope) } // namespace options } // namespace protoc_gen_openapiv2 diff --git a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc index 3fe044b275..ec27698fe2 100644 --- a/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc +++ b/sdks/cpp/src/protoc-gen-openapiv2/openapiv2.pb.cc @@ -16,7 +16,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: protoc-gen-openapiv2/options/openapiv2.proto -// Protobuf C++ Version: 6.31.1 +// Protobuf C++ Version: 7.35.1 #include "protoc-gen-openapiv2/options/openapiv2.pb.h" @@ -24,6 +24,7 @@ #include #include "google/protobuf/io/coded_stream.h" #include "google/protobuf/generated_message_tctable_impl.h" +#include "google/protobuf/internal_visibility.h" #include "google/protobuf/extension_set.h" #include "google/protobuf/generated_message_util.h" #include "google/protobuf/wire_format_lite.h" @@ -39,73 +40,554 @@ PROTOBUF_PRAGMA_INIT_SEG namespace _pb = ::google::protobuf; namespace _pbi = ::google::protobuf::internal; namespace _fl = ::google::protobuf::internal::field_layout; +#ifdef PROTOBUF_MESSAGE_GLOBALS +namespace { +PROTOBUF_CONSTINIT ::google::protobuf::internal::ReflectionData + file_reflection_data[] = { + // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Swagger + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Operation + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Header + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Response + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Info + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Contact + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::License + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Schema + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Tag + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, + // ::grpc::gateway::protoc_gen_openapiv2::options::Scopes + {&::_pbi::kDescriptorMethods, &::descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, /* tracker*/ nullptr,}, +}; +} // namespace +#endif namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { +class SecurityRequirement_SecurityRequirementValue::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_); +}; + +constexpr SecurityRequirement_SecurityRequirementValue::ParseTableT_ SecurityRequirement_SecurityRequirementValue::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // repeated string scope = 1; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_), _Internal::kHasBitsOffset + 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" + }}, + }; +} + inline constexpr SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept - : scope_{}, - _cached_size_{0} {} + : _cached_size_{0}, + scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() + } + {} template -PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::_pbi::ConstantInitialized) +constexpr SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(SecurityRequirement_SecurityRequirementValue_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement_SecurityRequirementValue(arena); +} +constexpr auto SecurityRequirement_SecurityRequirementValue::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementValue), alignof(SecurityRequirement_SecurityRequirementValue)); +} +constexpr auto SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityRequirement_SecurityRequirementValue::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement_SecurityRequirementValue::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement_SecurityRequirementValue::ByteSizeLong, + &SecurityRequirement_SecurityRequirementValue::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[25], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct SecurityRequirement_SecurityRequirementValueDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirement_SecurityRequirementValueDefaultTypeInternal() {} +struct SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityRequirement_SecurityRequirementValue_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_( + _default, &SecurityRequirement_SecurityRequirementValue_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal() {} union { - SecurityRequirement_SecurityRequirementValue _instance; + alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement_SecurityRequirementValue _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementValueDefaultTypeInternal _SecurityRequirement_SecurityRequirementValue_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirement_SecurityRequirementValueGlobalsTypeInternal SecurityRequirement_SecurityRequirementValue_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityRequirement_SecurityRequirementValue_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityRequirement_SecurityRequirementValue_globals_.GetClassData(); +#else + return SecurityRequirement_SecurityRequirementValue_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Scopes_ScopeEntry_DoNotUse::ParseTableT_ Scopes_ScopeEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\73\3\5\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry" + "key" + "value" + }}, + }; +} + template -PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Scopes_ScopeEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : Scopes_ScopeEntry_DoNotUse::MapEntry(Scopes_ScopeEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Scopes_ScopeEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { } +inline void* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Scopes_ScopeEntry_DoNotUse(arena); +} +constexpr auto Scopes_ScopeEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes_ScopeEntry_DoNotUse), alignof(Scopes_ScopeEntry_DoNotUse)); +} +constexpr auto Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Scopes_ScopeEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Scopes_ScopeEntry_DoNotUse::SharedDtor, + static_cast(&Scopes_ScopeEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE -struct Scopes_ScopeEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Scopes_ScopeEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[28], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Scopes_ScopeEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_( + _default, &Scopes_ScopeEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal() {} union { - Scopes_ScopeEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) Scopes_ScopeEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Scopes_ScopeEntry_DoNotUseDefaultTypeInternal _Scopes_ScopeEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Scopes_ScopeEntry_DoNotUseGlobalsTypeInternal Scopes_ScopeEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Scopes_ScopeEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Scopes_ScopeEntry_DoNotUse_globals_.GetClassData(); +#else + return Scopes_ScopeEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Response_ExamplesEntry_DoNotUse::ParseTableT_ Response_ExamplesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // string value = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string value = 2; + {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\100\3\5\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry" + "key" + "value" + }}, + }; +} + template -PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Response_ExamplesEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : Response_ExamplesEntry_DoNotUse::MapEntry(Response_ExamplesEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Response_ExamplesEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_ExamplesEntry_DoNotUse(arena); +} +constexpr auto Response_ExamplesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExamplesEntry_DoNotUse), alignof(Response_ExamplesEntry_DoNotUse)); } +constexpr auto Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Response_ExamplesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_ExamplesEntry_DoNotUse::SharedDtor, + static_cast(&Response_ExamplesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE -struct Response_ExamplesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_ExamplesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_ExamplesEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[8], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Response_ExamplesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Response_ExamplesEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Response_ExamplesEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_( + _default, &Response_ExamplesEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Response_ExamplesEntry_DoNotUseGlobalsTypeInternal() {} union { - Response_ExamplesEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) Response_ExamplesEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExamplesEntry_DoNotUseDefaultTypeInternal _Response_ExamplesEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_ExamplesEntry_DoNotUseGlobalsTypeInternal Response_ExamplesEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Response_ExamplesEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Response_ExamplesEntry_DoNotUse_globals_.GetClassData(); +#else + return Response_ExamplesEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class License::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_); +}; + +constexpr License::ParseTableT_ License::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(License, _impl_.url_)}}, + // string name = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(License, _impl_.name_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(License, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(License, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\61\4\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.License" + "name" + "url" + }}, + }; +} + inline constexpr License::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( @@ -116,26 +598,147 @@ inline constexpr License::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR License::License(::_pbi::ConstantInitialized) +constexpr License::License(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(License_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL License::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) License(arena); +} +constexpr auto License::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(License), alignof(License)); +} +constexpr auto License::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &License::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &License::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &License::ByteSizeLong, + &License::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(License, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[14], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct LicenseDefaultTypeInternal { - PROTOBUF_CONSTEXPR LicenseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~LicenseDefaultTypeInternal() {} +struct LicenseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr LicenseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + License_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(License::InternalGenerateClassData_( + _default, &License_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~LicenseGlobalsTypeInternal() {} union { - License _instance; + alignas(::_pbi::kMaxMessageAlignment) License _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(LicenseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LicenseDefaultTypeInternal _License_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST LicenseGlobalsTypeInternal License_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* License_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return License_globals_.GetClassData(); +#else + return License_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class JSONSchema_FieldConfiguration::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_); +}; + +constexpr JSONSchema_FieldConfiguration::ParseTableT_ JSONSchema_FieldConfiguration::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_), + 0, // no _extensions_ + 47, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967295, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 0, 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_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" + }}, + }; +} + inline constexpr JSONSchema_FieldConfiguration::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, path_param_name_( @@ -143,26 +746,176 @@ inline constexpr JSONSchema_FieldConfiguration::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::_pbi::ConstantInitialized) +constexpr JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(JSONSchema_FieldConfiguration_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema_FieldConfiguration(arena); +} +constexpr auto JSONSchema_FieldConfiguration::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_FieldConfiguration), alignof(JSONSchema_FieldConfiguration)); +} +constexpr auto JSONSchema_FieldConfiguration::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &JSONSchema_FieldConfiguration::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema_FieldConfiguration::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &JSONSchema_FieldConfiguration::ByteSizeLong, + &JSONSchema_FieldConfiguration::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[17], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct JSONSchema_FieldConfigurationDefaultTypeInternal { - PROTOBUF_CONSTEXPR JSONSchema_FieldConfigurationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JSONSchema_FieldConfigurationDefaultTypeInternal() {} +struct JSONSchema_FieldConfigurationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr JSONSchema_FieldConfigurationGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + JSONSchema_FieldConfiguration_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(JSONSchema_FieldConfiguration::InternalGenerateClassData_( + _default, &JSONSchema_FieldConfiguration_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~JSONSchema_FieldConfigurationGlobalsTypeInternal() {} union { - JSONSchema_FieldConfiguration _instance; + alignas(::_pbi::kMaxMessageAlignment) JSONSchema_FieldConfiguration _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfigurationGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_FieldConfigurationDefaultTypeInternal _JSONSchema_FieldConfiguration_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchema_FieldConfigurationGlobalsTypeInternal JSONSchema_FieldConfiguration_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* JSONSchema_FieldConfiguration_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return JSONSchema_FieldConfiguration_globals_.GetClassData(); +#else + return JSONSchema_FieldConfiguration_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Header::_Internal { + public: + using HasBits = decltype(::std::declval
()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); +}; + +constexpr Header::ParseTableT_ Header::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_), + 0, // no _extensions_ + 13, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294963160, // skipmap + offsetof(ParseTableT_, field_entries), + 5, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.description_)}}, + // string type = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.type_)}}, + // string format = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.format_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string pattern = 13; + {::_pbi::TcParser::FastUS1, + {106, 4, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_)}}, + // string default = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(Header, _impl_.default__)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string type = 2; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string format = 3; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.format_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 6; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string pattern = 13; + {PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_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" + }}, + }; +} + inline constexpr Header::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -182,26 +935,152 @@ inline constexpr Header::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR Header::Header(::_pbi::ConstantInitialized) +constexpr Header::Header(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Header_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Header::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Header(arena); +} +constexpr auto Header::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), alignof(Header)); +} +constexpr auto Header::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Header::MergeImpl, + ::google::protobuf::Message::GetNewImpl
(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Header::SharedDtor, + ::google::protobuf::Message::GetClearImpl
(), &Header::ByteSizeLong, + &Header::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[6], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct HeaderDefaultTypeInternal { - PROTOBUF_CONSTEXPR HeaderDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~HeaderDefaultTypeInternal() {} +struct HeaderGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr HeaderGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Header_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Header::InternalGenerateClassData_( + _default, &Header_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable
( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~HeaderGlobalsTypeInternal() {} union { - Header _instance; + alignas(::_pbi::kMaxMessageAlignment) Header _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable
( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(HeaderGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 HeaderDefaultTypeInternal _Header_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST HeaderGlobalsTypeInternal Header_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Header_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Header_globals_.GetClassData(); +#else + return Header_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class ExternalDocumentation::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_); +}; + +constexpr ExternalDocumentation::ParseTableT_ ExternalDocumentation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + // no aux_entries + {{ + "\77\13\3\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" + "description" + "url" + }}, + }; +} + inline constexpr ExternalDocumentation::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -212,27 +1091,161 @@ inline constexpr ExternalDocumentation::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR ExternalDocumentation::ExternalDocumentation(::_pbi::ConstantInitialized) +constexpr ExternalDocumentation::ExternalDocumentation(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(ExternalDocumentation_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } -struct ExternalDocumentationDefaultTypeInternal { - PROTOBUF_CONSTEXPR ExternalDocumentationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ExternalDocumentationDefaultTypeInternal() {} - union { - ExternalDocumentation _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExternalDocumentationDefaultTypeInternal _ExternalDocumentation_default_instance_; - -inline constexpr Contact::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept +inline void* PROTOBUF_NONNULL ExternalDocumentation::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) ExternalDocumentation(arena); +} +constexpr auto ExternalDocumentation::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ExternalDocumentation), alignof(ExternalDocumentation)); +} +constexpr auto ExternalDocumentation::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &ExternalDocumentation::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &ExternalDocumentation::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &ExternalDocumentation::ByteSizeLong, + &ExternalDocumentation::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[15], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct ExternalDocumentationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr ExternalDocumentationGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + ExternalDocumentation_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(ExternalDocumentation::InternalGenerateClassData_( + _default, &ExternalDocumentation_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~ExternalDocumentationGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) ExternalDocumentation _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(ExternalDocumentationGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ExternalDocumentationGlobalsTypeInternal ExternalDocumentation_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* ExternalDocumentation_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return ExternalDocumentation_globals_.GetClassData(); +#else + return ExternalDocumentation_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Contact::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_); +}; + +constexpr Contact::ParseTableT_ Contact::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_), + 0, // no _extensions_ + 3, 24, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967288, // skipmap + offsetof(ParseTableT_, field_entries), + 3, // num_field_entries + 0, // num_aux_entries + offsetof(ParseTableT_, field_names), // no aux_entries + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_)}}, + // string url = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_)}}, + // string email = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string name = 1; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string url = 2; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string email = 3; + {PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_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" + }}, + }; +} + + +inline constexpr Contact::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, name_( &::google::protobuf::internal::fixed_address_empty_string, @@ -245,26 +1258,157 @@ inline constexpr Contact::Impl_::Impl_( ::_pbi::ConstantInitialized()) {} template -PROTOBUF_CONSTEXPR Contact::Contact(::_pbi::ConstantInitialized) +constexpr Contact::Contact(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Contact_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Contact::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Contact(arena); +} +constexpr auto Contact::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Contact), alignof(Contact)); +} +constexpr auto Contact::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Contact::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Contact::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Contact::ByteSizeLong, + &Contact::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Contact, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[13], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct ContactDefaultTypeInternal { - PROTOBUF_CONSTEXPR ContactDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ContactDefaultTypeInternal() {} +struct ContactGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr ContactGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Contact_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Contact::InternalGenerateClassData_( + _default, &Contact_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~ContactGlobalsTypeInternal() {} union { - Contact _instance; + alignas(::_pbi::kMaxMessageAlignment) Contact _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(ContactGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ContactDefaultTypeInternal _Contact_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ContactGlobalsTypeInternal Contact_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Contact_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Contact_globals_.GetClassData(); +#else + return Contact_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Tag::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_); +}; + +constexpr Tag::ParseTableT_ Tag::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_), + 0, // no _extensions_ + 3, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967289, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {::_pbi::TcParser::FastMtS1, + {26, 1, 0, + PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; + {PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, + #endif + }}, + {{ + "\55\13\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Tag" + "description" + }}, + }; +} + inline constexpr Tag::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, description_( @@ -273,198 +1417,1492 @@ inline constexpr Tag::Impl_::Impl_( external_docs_{nullptr} {} template -PROTOBUF_CONSTEXPR Tag::Tag(::_pbi::ConstantInitialized) +constexpr Tag::Tag(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Tag_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { } -struct TagDefaultTypeInternal { - PROTOBUF_CONSTEXPR TagDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~TagDefaultTypeInternal() {} - union { - Tag _instance; - }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TagDefaultTypeInternal _Tag_default_instance_; -template -PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Swagger_ExtensionsEntry_DoNotUse::MapEntry(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Swagger_ExtensionsEntry_DoNotUse::MapEntry() { +inline void* PROTOBUF_NONNULL Tag::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Tag(arena); +} +constexpr auto Tag::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Tag), alignof(Tag)); } +constexpr auto Tag::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Tag::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Tag::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Tag::ByteSizeLong, + &Tag::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE -struct Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} - union { - Swagger_ExtensionsEntry_DoNotUse _instance; + PROTOBUF_FIELD_OFFSET(Tag, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[20], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ExtensionsEntry_DoNotUseDefaultTypeInternal _Swagger_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry() { } -#endif // PROTOBUF_CUSTOM_VTABLE -struct SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} +struct TagGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr TagGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Tag_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Tag::InternalGenerateClassData_( + _default, &Tag_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~TagGlobalsTypeInternal() {} union { - SecurityScheme_ExtensionsEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) Tag _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(TagGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityScheme_ExtensionsEntry_DoNotUseDefaultTypeInternal _SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST TagGlobalsTypeInternal Tag_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Tag_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Tag_globals_.GetClassData(); +#else + return Tag_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal() {} - union { - SecurityRequirement_SecurityRequirementEntry_DoNotUse _instance; +constexpr Swagger_ExtensionsEntry_DoNotUse::ParseTableT_ Swagger_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\101\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry" + "key" + }}, }; -}; - -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirement_SecurityRequirementEntry_DoNotUseDefaultTypeInternal _SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_; - -inline constexpr Scopes::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : scope_{}, - _cached_size_{0} {} +} template -PROTOBUF_CONSTEXPR Scopes::Scopes(::_pbi::ConstantInitialized) +constexpr Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Swagger_ExtensionsEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Scopes_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ExtensionsEntry_DoNotUse), alignof(Swagger_ExtensionsEntry_DoNotUse)); +} +constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Swagger_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Swagger_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Swagger_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[1], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct ScopesDefaultTypeInternal { - PROTOBUF_CONSTEXPR ScopesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ScopesDefaultTypeInternal() {} +struct Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &Swagger_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} union { - Scopes _instance; + alignas(::_pbi::kMaxMessageAlignment) Swagger_ExtensionsEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ScopesDefaultTypeInternal _Scopes_default_instance_; -template -PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Response_HeadersEntry_DoNotUse::MapEntry(Response_HeadersEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Response_HeadersEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Swagger_ExtensionsEntry_DoNotUseGlobalsTypeInternal Swagger_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Swagger_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Swagger_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return Swagger_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct Response_HeadersEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_HeadersEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_HeadersEntry_DoNotUseDefaultTypeInternal() {} - union { - Response_HeadersEntry_DoNotUse _instance; +constexpr SecurityScheme_ExtensionsEntry_DoNotUse::ParseTableT_ SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\110\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry" + "key" + }}, }; -}; +} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_HeadersEntry_DoNotUseDefaultTypeInternal _Response_HeadersEntry_DoNotUse_default_instance_; template -PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : SecurityScheme_ExtensionsEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : Response_ExtensionsEntry_DoNotUse::MapEntry(Response_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Response_ExtensionsEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityScheme_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme_ExtensionsEntry_DoNotUse), alignof(SecurityScheme_ExtensionsEntry_DoNotUse)); } +constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityScheme_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityScheme_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&SecurityScheme_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE -struct Response_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Response_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[23], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &SecurityScheme_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} union { - Response_ExtensionsEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) SecurityScheme_ExtensionsEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Response_ExtensionsEntry_DoNotUseDefaultTypeInternal _Response_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Operation_ExtensionsEntry_DoNotUse::MapEntry(Operation_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Operation_ExtensionsEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityScheme_ExtensionsEntry_DoNotUseGlobalsTypeInternal SecurityScheme_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityScheme_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} - union { - Operation_ExtensionsEntry_DoNotUse _instance; +constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse::ParseTableT_ SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_}, + #endif + }}, + {{ + "\126\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry" + "key" + }}, }; -}; +} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ExtensionsEntry_DoNotUseDefaultTypeInternal _Operation_ExtensionsEntry_DoNotUse_default_instance_; template -PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) +constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : SecurityRequirement_SecurityRequirementEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry() { + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement_SecurityRequirementEntry_DoNotUse(arena); +} +constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementEntry_DoNotUse), alignof(SecurityRequirement_SecurityRequirementEntry_DoNotUse)); } +constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityRequirement_SecurityRequirementEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement_SecurityRequirementEntry_DoNotUse::SharedDtor, + static_cast(&SecurityRequirement_SecurityRequirementEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE -struct JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} + PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[26], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_( + _default, &SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal() {} union { - JSONSchema_ExtensionsEntry_DoNotUse _instance; + alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement_SecurityRequirementEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchema_ExtensionsEntry_DoNotUseDefaultTypeInternal _JSONSchema_ExtensionsEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Info_ExtensionsEntry_DoNotUse::MapEntry(Info_ExtensionsEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Info_ExtensionsEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirement_SecurityRequirementEntry_DoNotUseGlobalsTypeInternal SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_.GetClassData(); +#else + return SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct Info_ExtensionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Info_ExtensionsEntry_DoNotUseDefaultTypeInternal() {} - union { - Info_ExtensionsEntry_DoNotUse _instance; - }; +class Scopes::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Scopes, _impl_._has_bits_); }; +constexpr Scopes::ParseTableT_ Scopes::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Scopes, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 9, 0)}, + }}, + {{ + "\60\5\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Scopes" + "scope" + }}, + }; +} + + +inline constexpr Scopes::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() + } + {} + +template +constexpr Scopes::Scopes(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Scopes::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Scopes(arena); +} +constexpr auto Scopes::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes), alignof(Scopes)); +} +constexpr auto Scopes::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Scopes::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Scopes::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Scopes::ByteSizeLong, + &Scopes::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Scopes, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[29], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct ScopesGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr ScopesGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Scopes_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Scopes::InternalGenerateClassData_( + _default, &Scopes_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~ScopesGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Scopes _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(ScopesGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ScopesGlobalsTypeInternal Scopes_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Scopes_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Scopes_globals_.GetClassData(); +#else + return Scopes_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Response_HeadersEntry_DoNotUse::ParseTableT_ Response_HeadersEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; + {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_}, + #endif + }}, + {{ + "\77\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry" + "key" + }}, + }; +} + +template +constexpr Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Response_HeadersEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_HeadersEntry_DoNotUse(arena); +} +constexpr auto Response_HeadersEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_HeadersEntry_DoNotUse), alignof(Response_HeadersEntry_DoNotUse)); +} +constexpr auto Response_HeadersEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Response_HeadersEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_HeadersEntry_DoNotUse::SharedDtor, + static_cast(&Response_HeadersEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[7], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Response_HeadersEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Response_HeadersEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Response_HeadersEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Response_HeadersEntry_DoNotUse::InternalGenerateClassData_( + _default, &Response_HeadersEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Response_HeadersEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Response_HeadersEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_HeadersEntry_DoNotUseGlobalsTypeInternal Response_HeadersEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Response_HeadersEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Response_HeadersEntry_DoNotUse_globals_.GetClassData(); +#else + return Response_HeadersEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Response_ExtensionsEntry_DoNotUse::ParseTableT_ Response_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\102\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry" + "key" + }}, + }; +} + +template +constexpr Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Response_ExtensionsEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Response_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExtensionsEntry_DoNotUse), alignof(Response_ExtensionsEntry_DoNotUse)); +} +constexpr auto Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Response_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Response_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[9], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Response_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &Response_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Response_ExtensionsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Response_ExtensionsEntry_DoNotUseGlobalsTypeInternal Response_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Response_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Response_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return Response_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Operation_ExtensionsEntry_DoNotUse::ParseTableT_ Operation_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\103\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry" + "key" + }}, + }; +} + +template +constexpr Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Operation_ExtensionsEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ExtensionsEntry_DoNotUse), alignof(Operation_ExtensionsEntry_DoNotUse)); +} +constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Operation_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Operation_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Operation_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[4], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Operation_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &Operation_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Operation_ExtensionsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Operation_ExtensionsEntry_DoNotUseGlobalsTypeInternal Operation_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Operation_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Operation_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return Operation_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr JSONSchema_ExtensionsEntry_DoNotUse::ParseTableT_ JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\104\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry" + "key" + }}, + }; +} + +template +constexpr JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : JSONSchema_ExtensionsEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_ExtensionsEntry_DoNotUse), alignof(JSONSchema_ExtensionsEntry_DoNotUse)); +} +constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &JSONSchema_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&JSONSchema_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[18], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &JSONSchema_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) JSONSchema_ExtensionsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchema_ExtensionsEntry_DoNotUseGlobalsTypeInternal JSONSchema_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* JSONSchema_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return JSONSchema_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Info_ExtensionsEntry_DoNotUse::ParseTableT_ Info_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .google.protobuf.Value value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .google.protobuf.Value value = 2; + {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\76\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry" + "key" + }}, + }; +} + +template +constexpr Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Info_ExtensionsEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Info_ExtensionsEntry_DoNotUse(arena); +} +constexpr auto Info_ExtensionsEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info_ExtensionsEntry_DoNotUse), alignof(Info_ExtensionsEntry_DoNotUse)); +} +constexpr auto Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Info_ExtensionsEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Info_ExtensionsEntry_DoNotUse::SharedDtor, + static_cast(&Info_ExtensionsEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[11], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Info_ExtensionsEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_( + _default, &Info_ExtensionsEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Info_ExtensionsEntry_DoNotUse _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Info_ExtensionsEntry_DoNotUseDefaultTypeInternal _Info_ExtensionsEntry_DoNotUse_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Info_ExtensionsEntry_DoNotUseGlobalsTypeInternal Info_ExtensionsEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Info_ExtensionsEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Info_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +#else + return Info_ExtensionsEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class SecurityScheme::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_); +}; + +constexpr SecurityScheme::ParseTableT_ SecurityScheme::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_), + 0, // no _extensions_ + 9, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294966784, // skipmap + offsetof(ParseTableT_, field_entries), + 9, // num_field_entries + 3, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 4, 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_), 5>(), + {8, 5, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_)}}, + // string name = 3; + {::_pbi::TcParser::FastUS1, + {26, 1, 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_), 6>(), + {32, 6, 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_), 7>(), + {40, 7, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_)}}, + // string authorization_url = 6; + {::_pbi::TcParser::FastUS1, + {50, 2, 0, + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_)}}, + // string token_url = 7; + {::_pbi::TcParser::FastUS1, + {58, 3, 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_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string name = 3; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, + // string authorization_url = 6; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string token_url = 7; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 9; + {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\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" + }}, + }; +} + inline constexpr SecurityScheme::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - extensions_{}, description_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -480,310 +2918,1999 @@ inline constexpr SecurityScheme::Impl_::Impl_( 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)} {} + flow_{static_cast< ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_Flow >(0)}, + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() + } + {} template -PROTOBUF_CONSTEXPR SecurityScheme::SecurityScheme(::_pbi::ConstantInitialized) +constexpr SecurityScheme::SecurityScheme(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(SecurityScheme_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL SecurityScheme::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityScheme(arena); +} +constexpr auto SecurityScheme::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme), alignof(SecurityScheme)); +} +constexpr auto SecurityScheme::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityScheme::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityScheme::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityScheme::ByteSizeLong, + &SecurityScheme::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[24], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct SecuritySchemeGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecuritySchemeGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityScheme_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityScheme::InternalGenerateClassData_( + _default, &SecurityScheme_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecuritySchemeGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) SecurityScheme _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecuritySchemeGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecuritySchemeGlobalsTypeInternal SecurityScheme_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityScheme_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityScheme_globals_.GetClassData(); +#else + return SecurityScheme_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class SecurityRequirement::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._has_bits_); +}; + +constexpr SecurityRequirement::ParseTableT_ SecurityRequirement::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 2, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_}, + #endif + }}, + {{ + "\75\24\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement" + "security_requirement" + }}, + }; +} + + +inline constexpr SecurityRequirement::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + security_requirement_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() + } + {} + +template +constexpr SecurityRequirement::SecurityRequirement(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL SecurityRequirement::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityRequirement(arena); +} +constexpr auto SecurityRequirement::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement), alignof(SecurityRequirement)); +} +constexpr auto SecurityRequirement::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityRequirement::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityRequirement::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement::ByteSizeLong, + &SecurityRequirement::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[27], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct SecurityRequirementGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityRequirementGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityRequirement_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityRequirement::InternalGenerateClassData_( + _default, &SecurityRequirement_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityRequirementGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) SecurityRequirement _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityRequirementGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityRequirementGlobalsTypeInternal SecurityRequirement_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityRequirement_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityRequirement_globals_.GetClassData(); +#else + return SecurityRequirement_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { +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_); +}; + +constexpr JSONSchema::ParseTableT_ JSONSchema::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._has_bits_), + 0, // no _extensions_ + 1001, 248, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4232445963, // skipmap + offsetof(ParseTableT_, field_entries), + 26, // num_field_entries + 3, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 4, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // string title = 5; + {::_pbi::TcParser::FastUS1, + {42, 5, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_)}}, + // string description = 6; + {::_pbi::TcParser::FastUS1, + {50, 6, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_)}}, + // string default = 7; + {::_pbi::TcParser::FastUS1, + {58, 7, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__)}}, + // bool read_only = 8; + {::_pbi::TcParser::SingularVarintNoZag1(), + {64, 21, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_)}}, + // string example = 9; + {::_pbi::TcParser::FastUS1, + {74, 8, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_)}}, + // double multiple_of = 10; + {::_pbi::TcParser::FastF64S1, + {81, 12, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_)}}, + // double maximum = 11; + {::_pbi::TcParser::FastF64S1, + {89, 13, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_)}}, + // bool exclusive_maximum = 12; + {::_pbi::TcParser::SingularVarintNoZag1(), + {96, 22, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_)}}, + // double minimum = 13; + {::_pbi::TcParser::FastF64S1, + {105, 14, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_)}}, + // bool exclusive_minimum = 14; + {::_pbi::TcParser::SingularVarintNoZag1(), + {112, 23, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_)}}, + // uint64 max_length = 15; + {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(JSONSchema, _impl_.max_length_), 15>(), + {120, 15, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_)}}, + // uint64 min_length = 16; + {::_pbi::TcParser::FastV64S2, + {384, 16, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_)}}, + // string pattern = 17; + {::_pbi::TcParser::FastUS2, + {394, 9, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_)}}, + // repeated string array = 34; + {::_pbi::TcParser::FastUR2, + {658, 1, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; + {::_pbi::TcParser::FastV32P2, + {666, 2, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_)}}, + // uint64 max_items = 20; + {::_pbi::TcParser::FastV64S2, + {416, 17, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_)}}, + // uint64 min_items = 21; + {::_pbi::TcParser::FastV64S2, + {424, 18, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_)}}, + // bool unique_items = 22; + {::_pbi::TcParser::FastV8S2, + {432, 24, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // uint64 max_properties = 24; + {::_pbi::TcParser::FastV64S2, + {448, 19, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_)}}, + // uint64 min_properties = 25; + {::_pbi::TcParser::FastV64S2, + {456, 20, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_)}}, + // repeated string required = 26; + {::_pbi::TcParser::FastUR2, + {466, 0, 0, + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_)}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + {::_pbi::TcParser::MiniParse, {}}, + // repeated string enum = 46; + {::_pbi::TcParser::FastUR2, + {754, 3, 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_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string title = 5; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 6; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string default = 7; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 8; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_), _Internal::kHasBitsOffset + 21, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // string example = 9; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // double multiple_of = 10; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_), _Internal::kHasBitsOffset + 12, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // double maximum = 11; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_), _Internal::kHasBitsOffset + 13, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool exclusive_maximum = 12; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_), _Internal::kHasBitsOffset + 22, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // double minimum = 13; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_), _Internal::kHasBitsOffset + 14, 0, (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, + // bool exclusive_minimum = 14; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_), _Internal::kHasBitsOffset + 23, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // uint64 max_length = 15; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_), _Internal::kHasBitsOffset + 15, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_length = 16; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_), _Internal::kHasBitsOffset + 16, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // string pattern = 17; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // uint64 max_items = 20; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_), _Internal::kHasBitsOffset + 17, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_items = 21; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_), _Internal::kHasBitsOffset + 18, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // bool unique_items = 22; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_), _Internal::kHasBitsOffset + 24, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // uint64 max_properties = 24; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_), _Internal::kHasBitsOffset + 19, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // uint64 min_properties = 25; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_), _Internal::kHasBitsOffset + 20, 0, (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, + // repeated string required = 26; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string array = 34; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_), _Internal::kHasBitsOffset + 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_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // string format = 36; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.format_), _Internal::kHasBitsOffset + 10, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string enum = 46; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map extensions = 48; + {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_), _Internal::kHasBitsOffset + 25, 1, (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 + 11, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\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" + }}, + }; +} + + +inline constexpr JSONSchema::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + required_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() + } + , + array_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() + } + , + type_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() + } + , + _type_cached_byte_size_{0}, + enum__ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() + } + , + 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}, + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() + } + {} + +template +constexpr JSONSchema::JSONSchema(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL JSONSchema::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) JSONSchema(arena); +} +constexpr auto JSONSchema::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema), alignof(JSONSchema)); +} +constexpr auto JSONSchema::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &JSONSchema::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &JSONSchema::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &JSONSchema::ByteSizeLong, + &JSONSchema::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[19], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct JSONSchemaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr JSONSchemaGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + JSONSchema_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(JSONSchema::InternalGenerateClassData_( + _default, &JSONSchema_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~JSONSchemaGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) JSONSchema _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(JSONSchemaGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST JSONSchemaGlobalsTypeInternal JSONSchema_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* JSONSchema_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return JSONSchema_globals_.GetClassData(); +#else + return JSONSchema_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Info::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_); +}; + +constexpr Info::ParseTableT_ Info::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_), + 0, // no _extensions_ + 7, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967168, // skipmap + offsetof(ParseTableT_, field_entries), + 7, // num_field_entries + 4, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(Info, _impl_.title_)}}, + // string description = 2; + {::_pbi::TcParser::FastUS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Info, _impl_.description_)}}, + // string terms_of_service = 3; + {::_pbi::TcParser::FastUS1, + {26, 2, 0, + PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {::_pbi::TcParser::FastMtS1, + {34, 4, 0, + PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; + {::_pbi::TcParser::FastMtS1, + {42, 5, 1, + PROTOBUF_FIELD_OFFSET(Info, _impl_.license_)}}, + // string version = 6; + {::_pbi::TcParser::FastUS1, + {50, 3, 0, + PROTOBUF_FIELD_OFFSET(Info, _impl_.version_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string title = 1; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.title_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 2; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string terms_of_service = 3; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_), _Internal::kHasBitsOffset + 4, 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 + 5, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string version = 6; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // map extensions = 7; + {PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_), _Internal::kHasBitsOffset + 6, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Contact>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::License>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::License_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\56\5\13\20\0\0\7\12" + "grpc.gateway.protoc_gen_openapiv2.options.Info" + "title" + "description" + "terms_of_service" + "version" + "extensions" + }}, + }; +} + + +inline constexpr Info::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + ::_pbi::ConstantInitialized) noexcept + : _cached_size_{0}, + 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}, + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Info, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() + } + {} + +template +constexpr Info::Info(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Info::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Info(arena); +} +constexpr auto Info::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info), alignof(Info)); +} +constexpr auto Info::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Info::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Info::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Info::ByteSizeLong, + &Info::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Info, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[12], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct SecuritySchemeDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecuritySchemeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecuritySchemeDefaultTypeInternal() {} +struct InfoGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr InfoGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Info_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Info::InternalGenerateClassData_( + _default, &Info_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~InfoGlobalsTypeInternal() {} union { - SecurityScheme _instance; + alignas(::_pbi::kMaxMessageAlignment) Info _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(InfoGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecuritySchemeDefaultTypeInternal _SecurityScheme_default_instance_; - -inline constexpr SecurityRequirement::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : security_requirement_{}, - _cached_size_{0} {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST InfoGlobalsTypeInternal Info_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Info_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Info_globals_.GetClassData(); +#else + return Info_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr SecurityDefinitions_SecurityEntry_DoNotUse::ParseTableT_ SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; + {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_}, + #endif + }}, + {{ + "\113\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry" + "key" + }}, + }; +} template -PROTOBUF_CONSTEXPR SecurityRequirement::SecurityRequirement(::_pbi::ConstantInitialized) +constexpr SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(SecurityRequirement_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityDefinitions_SecurityEntry_DoNotUse(arena); +} +constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions_SecurityEntry_DoNotUse), alignof(SecurityDefinitions_SecurityEntry_DoNotUse)); +} +constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityDefinitions_SecurityEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityDefinitions_SecurityEntry_DoNotUse::SharedDtor, + static_cast(&SecurityDefinitions_SecurityEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[21], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct SecurityRequirementDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityRequirementDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityRequirementDefaultTypeInternal() {} +struct SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_( + _default, &SecurityDefinitions_SecurityEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal() {} union { - SecurityRequirement _instance; + alignas(::_pbi::kMaxMessageAlignment) SecurityDefinitions_SecurityEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityRequirementDefaultTypeInternal _SecurityRequirement_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityDefinitions_SecurityEntry_DoNotUseGlobalsTypeInternal SecurityDefinitions_SecurityEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityDefinitions_SecurityEntry_DoNotUse_globals_.GetClassData(); +#else + return SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Schema::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_); +}; -inline constexpr JSONSchema::Impl_::Impl_( +constexpr Schema::ParseTableT_ Schema::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_), + 0, // no _extensions_ + 6, 56, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967240, // skipmap + offsetof(ParseTableT_, field_entries), + 5, // num_field_entries + 2, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 2, 0, + PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)}}, + // string discriminator = 2; + {::_pbi::TcParser::FastUS1, + {18, 0, 0, + PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_)}}, + // bool read_only = 3; + {::_pbi::TcParser::SingularVarintNoZag1(), + {24, 4, 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, 3, 1, + PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_)}}, + // string example = 6; + {::_pbi::TcParser::FastUS1, + {50, 1, 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 + 2, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string discriminator = 2; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // bool read_only = 3; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string example = 6; + {PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, + #endif + }}, + {{ + "\60\0\15\0\0\7\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Schema" + "discriminator" + "example" + }}, + }; +} + + +inline constexpr Schema::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_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__( + discriminator_( &::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} {} + json_schema_{nullptr}, + external_docs_{nullptr}, + read_only_{false} {} template -PROTOBUF_CONSTEXPR JSONSchema::JSONSchema(::_pbi::ConstantInitialized) +constexpr Schema::Schema(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(JSONSchema_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Schema::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Schema(arena); +} +constexpr auto Schema::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Schema), alignof(Schema)); +} +constexpr auto Schema::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Schema::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Schema::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Schema::ByteSizeLong, + &Schema::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Schema, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[16], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct JSONSchemaDefaultTypeInternal { - PROTOBUF_CONSTEXPR JSONSchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~JSONSchemaDefaultTypeInternal() {} +struct SchemaGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SchemaGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Schema_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Schema::InternalGenerateClassData_( + _default, &Schema_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SchemaGlobalsTypeInternal() {} union { - JSONSchema _instance; + alignas(::_pbi::kMaxMessageAlignment) Schema _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SchemaGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 JSONSchemaDefaultTypeInternal _JSONSchema_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SchemaGlobalsTypeInternal Schema_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Schema_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Schema_globals_.GetClassData(); +#else + return Schema_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class SecurityDefinitions::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._has_bits_); +}; -inline constexpr Info::Impl_::Impl_( +constexpr SecurityDefinitions::ParseTableT_ SecurityDefinitions::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._has_bits_), + 0, // no _extensions_ + 1, 0, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967294, // skipmap + offsetof(ParseTableT_, field_entries), + 1, // num_field_entries + 2, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_}, + #endif + }}, + {{ + "\75\10\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" + "security" + }}, + }; +} + + +inline constexpr SecurityDefinitions::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_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} {} + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() + } + {} template -PROTOBUF_CONSTEXPR Info::Info(::_pbi::ConstantInitialized) +constexpr SecurityDefinitions::SecurityDefinitions(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Info_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL SecurityDefinitions::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) SecurityDefinitions(arena); +} +constexpr auto SecurityDefinitions::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions), alignof(SecurityDefinitions)); +} +constexpr auto SecurityDefinitions::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &SecurityDefinitions::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &SecurityDefinitions::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &SecurityDefinitions::ByteSizeLong, + &SecurityDefinitions::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[22], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct InfoDefaultTypeInternal { - PROTOBUF_CONSTEXPR InfoDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~InfoDefaultTypeInternal() {} +struct SecurityDefinitionsGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SecurityDefinitionsGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + SecurityDefinitions_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(SecurityDefinitions::InternalGenerateClassData_( + _default, &SecurityDefinitions_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SecurityDefinitionsGlobalsTypeInternal() {} union { - Info _instance; + alignas(::_pbi::kMaxMessageAlignment) SecurityDefinitions _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SecurityDefinitionsGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InfoDefaultTypeInternal _Info_default_instance_; -template -PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : SecurityDefinitions_SecurityEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SecurityDefinitionsGlobalsTypeInternal SecurityDefinitions_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* SecurityDefinitions_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return SecurityDefinitions_globals_.GetClassData(); +#else + return SecurityDefinitions_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal() {} - union { - SecurityDefinitions_SecurityEntry_DoNotUse _instance; - }; +class Response::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SecurityDefinitions_SecurityEntry_DoNotUseDefaultTypeInternal _SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_; +constexpr Response::ParseTableT_ Response::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_), + 0, // no _extensions_ + 5, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967264, // skipmap + offsetof(ParseTableT_, field_entries), + 5, // num_field_entries + 6, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 1, 0, + PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_)}}, + // string description = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Response, _impl_.description_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string description = 1; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map headers = 3; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_), _Internal::kHasBitsOffset + 2, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map examples = 4; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_), _Internal::kHasBitsOffset + 3, 3, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // map extensions = 5; + {PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_), _Internal::kHasBitsOffset + 4, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Schema>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 9, 0)}, + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\62\13\0\7\10\12\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Response" + "description" + "headers" + "examples" + "extensions" + }}, + }; +} -inline constexpr Schema::Impl_::Impl_( + +inline constexpr Response::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - discriminator_( - &::google::protobuf::internal::fixed_address_empty_string, - ::_pbi::ConstantInitialized()), - example_( + description_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), - json_schema_{nullptr}, - external_docs_{nullptr}, - read_only_{false} {} + schema_{nullptr}, + headers_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() + } + , + examples_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() + } + {} + +template +constexpr Response::Response(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Response::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Response(arena); +} +constexpr auto Response::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response), alignof(Response)); +} +constexpr auto Response::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Response::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Response::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, + &Response::_InternalSerialize, +#endif // PROTOBUF_CUSTOM_VTABLE + PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[10], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; +} +struct ResponseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr ResponseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Response_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Response::InternalGenerateClassData_( + _default, &Response_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~ResponseGlobalsTypeInternal() {} + union { + alignas(::_pbi::kMaxMessageAlignment) Response _default; + }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif +}; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(ResponseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS + +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST ResponseGlobalsTypeInternal Response_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Response_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Response_globals_.GetClassData(); +#else + return Response_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Swagger_ResponsesEntry_DoNotUse::ParseTableT_ Swagger_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, + #endif + }}, + {{ + "\100\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry" + "key" + }}, + }; +} template -PROTOBUF_CONSTEXPR Schema::Schema(::_pbi::ConstantInitialized) +constexpr Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Swagger_ResponsesEntry_DoNotUse::MapEntry( +#if defined(PROTOBUF_CUSTOM_VTABLE) + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ) { +} +inline void* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger_ResponsesEntry_DoNotUse(arena); +} +constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ResponsesEntry_DoNotUse), alignof(Swagger_ResponsesEntry_DoNotUse)); +} +constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Swagger_ResponsesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Schema_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + &Swagger_ResponsesEntry_DoNotUse::SharedDtor, + static_cast(&Swagger_ResponsesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[0], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct SchemaDefaultTypeInternal { - PROTOBUF_CONSTEXPR SchemaDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SchemaDefaultTypeInternal() {} +struct Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Swagger_ResponsesEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_( + _default, &Swagger_ResponsesEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal() {} union { - Schema _instance; + alignas(::_pbi::kMaxMessageAlignment) Swagger_ResponsesEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaDefaultTypeInternal _Schema_default_instance_; - -inline constexpr SecurityDefinitions::Impl_::Impl_( - ::_pbi::ConstantInitialized) noexcept - : security_{}, - _cached_size_{0} {} + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Swagger_ResponsesEntry_DoNotUseGlobalsTypeInternal Swagger_ResponsesEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Swagger_ResponsesEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Swagger_ResponsesEntry_DoNotUse_globals_.GetClassData(); +#else + return Swagger_ResponsesEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +constexpr Operation_ResponsesEntry_DoNotUse::ParseTableT_ Operation_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._has_bits_), + 0, // no _extensions_ + 2, 8, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294967292, // skipmap + offsetof(ParseTableT_, field_entries), + 2, // num_field_entries + 1, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_pbi::TcParser::DiscardEverythingFallback, // fallback + #ifdef PROTOBUF_PREFETCH_PARSE_TABLE + ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse>(), // to_prefetch + #endif // PROTOBUF_PREFETCH_PARSE_TABLE + }, {{ + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {::_pbi::TcParser::FastMtS1, + {18, 1, 0, + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_)}}, + // string key = 1; + {::_pbi::TcParser::FastUS1, + {10, 0, 0, + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_)}}, + }}, {{ + 65535, 65535 + }}, {{ + // string key = 1; + {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; + {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, + #endif + }}, + {{ + "\102\3\0\0\0\0\0\0" + "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry" + "key" + }}, + }; +} template -PROTOBUF_CONSTEXPR SecurityDefinitions::SecurityDefinitions(::_pbi::ConstantInitialized) +constexpr Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : Operation_ResponsesEntry_DoNotUse::MapEntry( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(SecurityDefinitions_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + ) { } -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 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 Response::Response(::_pbi::ConstantInitialized) +inline void* PROTOBUF_NONNULL Operation_ResponsesEntry_DoNotUse::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation_ResponsesEntry_DoNotUse(arena); +} +constexpr auto Operation_ResponsesEntry_DoNotUse::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ResponsesEntry_DoNotUse), alignof(Operation_ResponsesEntry_DoNotUse)); +} +constexpr auto Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Operation_ResponsesEntry_DoNotUse::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Response_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + &Operation_ResponsesEntry_DoNotUse::SharedDtor, + static_cast(&Operation_ResponsesEntry_DoNotUse::ClearImpl), + ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl + , #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[3], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct ResponseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ResponseDefaultTypeInternal() {} +struct Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Operation_ResponsesEntry_DoNotUse_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_( + _default, &Operation_ResponsesEntry_DoNotUse_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal() {} union { - Response _instance; + alignas(::_pbi::kMaxMessageAlignment) Operation_ResponsesEntry_DoNotUse _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResponseDefaultTypeInternal _Response_default_instance_; -template -PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Swagger_ResponsesEntry_DoNotUse::MapEntry(Swagger_ResponsesEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Swagger_ResponsesEntry_DoNotUse::MapEntry() { + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST Operation_ResponsesEntry_DoNotUseGlobalsTypeInternal Operation_ResponsesEntry_DoNotUse_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Operation_ResponsesEntry_DoNotUse_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Operation_ResponsesEntry_DoNotUse_globals_.GetClassData(); +#else + return Operation_ResponsesEntry_DoNotUse_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS } +} // namespace #endif // PROTOBUF_CUSTOM_VTABLE -struct Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal() {} - union { - Swagger_ResponsesEntry_DoNotUse _instance; - }; +class Swagger::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_); }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Swagger_ResponsesEntry_DoNotUseDefaultTypeInternal _Swagger_ResponsesEntry_DoNotUse_default_instance_; -template -PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::_pbi::ConstantInitialized) -#if defined(PROTOBUF_CUSTOM_VTABLE) - : Operation_ResponsesEntry_DoNotUse::MapEntry(Operation_ResponsesEntry_DoNotUse_class_data_.base()){} -#else // PROTOBUF_CUSTOM_VTABLE - : Operation_ResponsesEntry_DoNotUse::MapEntry() { -} -#endif // PROTOBUF_CUSTOM_VTABLE -struct Operation_ResponsesEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~Operation_ResponsesEntry_DoNotUseDefaultTypeInternal() {} - union { - Operation_ResponsesEntry_DoNotUse _instance; +constexpr Swagger::ParseTableT_ Swagger::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_), + 0, // no _extensions_ + 15, 120, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294939008, // skipmap + offsetof(ParseTableT_, field_entries), + 12, // num_field_entries + 8, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 4, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {::_pbi::TcParser::FastMtS1, + {18, 7, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)}}, + // string host = 3; + {::_pbi::TcParser::FastUS1, + {26, 5, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_)}}, + // string base_path = 4; + {::_pbi::TcParser::FastUS1, + {34, 6, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + {::_pbi::TcParser::FastV32P1, + {42, 0, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_)}}, + // repeated string consumes = 6; + {::_pbi::TcParser::FastUR1, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_)}}, + // repeated string produces = 7; + {::_pbi::TcParser::FastUR1, + {58, 2, 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, 8, 1, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 3, 2, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_)}}, + {::_pbi::TcParser::MiniParse, {}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; + {::_pbi::TcParser::FastMtS1, + {114, 9, 3, + PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_)}}, + {::_pbi::TcParser::MiniParse, {}}, + }}, {{ + 65535, 65535 + }}, {{ + // string swagger = 1; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_), _Internal::kHasBitsOffset + 4, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string host = 3; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string base_path = 4; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // repeated string consumes = 6; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string produces = 7; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map responses = 10; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_), _Internal::kHasBitsOffset + 10, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_), _Internal::kHasBitsOffset + 8, 1, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_), _Internal::kHasBitsOffset + 3, 2, (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 + 9, 3, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 15; + {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_), _Internal::kHasBitsOffset + 11, 6, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\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" + }}, }; -}; +} -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Operation_ResponsesEntry_DoNotUseDefaultTypeInternal _Operation_ResponsesEntry_DoNotUse_default_instance_; inline constexpr Swagger::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - schemes_{}, + schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() + } + , _schemes_cached_byte_size_{0}, - consumes_{}, - produces_{}, - responses_{}, - security_{}, - extensions_{}, + consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() + } + , + produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() + } + , + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() + } + , swagger_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -795,39 +4922,282 @@ inline constexpr Swagger::Impl_::Impl_( ::_pbi::ConstantInitialized()), info_{nullptr}, security_definitions_{nullptr}, - external_docs_{nullptr} {} + external_docs_{nullptr}, + responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() + } + {} template -PROTOBUF_CONSTEXPR Swagger::Swagger(::_pbi::ConstantInitialized) +constexpr Swagger::Swagger(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Swagger_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Swagger::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Swagger(arena); +} +constexpr auto Swagger::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger), alignof(Swagger)); +} +constexpr auto Swagger::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Swagger::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Swagger::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Swagger::ByteSizeLong, + &Swagger::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Swagger, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[2], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct SwaggerDefaultTypeInternal { - PROTOBUF_CONSTEXPR SwaggerDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~SwaggerDefaultTypeInternal() {} +struct SwaggerGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr SwaggerGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Swagger_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Swagger::InternalGenerateClassData_( + _default, &Swagger_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~SwaggerGlobalsTypeInternal() {} union { - Swagger _instance; + alignas(::_pbi::kMaxMessageAlignment) Swagger _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(SwaggerGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SwaggerDefaultTypeInternal _Swagger_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST SwaggerGlobalsTypeInternal Swagger_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Swagger_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Swagger_globals_.GetClassData(); +#else + return Swagger_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE +class Operation::_Internal { + public: + using HasBits = decltype(::std::declval()._impl_._has_bits_); + static constexpr ::int32_t kHasBitsOffset = + 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); +}; + +constexpr Operation::ParseTableT_ Operation::InternalGenerateParseTable_(const ::_pbi::ClassData* class_data) { + return ParseTableT_{ + { + PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_), + 0, // no _extensions_ + 13, 120, // max_field_number, fast_idx_mask + offsetof(ParseTableT_, field_lookup_table), + 4294959232, // skipmap + offsetof(ParseTableT_, field_entries), + 12, // num_field_entries + 6, // num_aux_entries + offsetof(ParseTableT_, aux_entries), + class_data, + nullptr, // post_loop_handler + ::_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, 0, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_)}}, + // string summary = 2; + {::_pbi::TcParser::FastUS1, + {18, 5, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_)}}, + // string description = 3; + {::_pbi::TcParser::FastUS1, + {26, 6, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_)}}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {::_pbi::TcParser::FastMtS1, + {34, 8, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)}}, + // string operation_id = 5; + {::_pbi::TcParser::FastUS1, + {42, 7, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_)}}, + // repeated string consumes = 6; + {::_pbi::TcParser::FastUR1, + {50, 1, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_)}}, + // repeated string produces = 7; + {::_pbi::TcParser::FastUR1, + {58, 2, 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, 3, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_)}}, + // bool deprecated = 11; + {::_pbi::TcParser::SingularVarintNoZag1(), + {88, 9, 0, + PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_)}}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {::_pbi::TcParser::FastMtR1, + {98, 4, 1, + 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_), _Internal::kHasBitsOffset + 0, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // string summary = 2; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_), _Internal::kHasBitsOffset + 5, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // string description = 3; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_), _Internal::kHasBitsOffset + 6, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_), _Internal::kHasBitsOffset + 8, 0, (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, + // string operation_id = 5; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_), _Internal::kHasBitsOffset + 7, 0, (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, + // repeated string consumes = 6; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_), _Internal::kHasBitsOffset + 1, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // repeated string produces = 7; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_), _Internal::kHasBitsOffset + 2, 0, (0 | ::_fl::kFcRepeated | ::_fl::kUtf8String | ::_fl::kRepSString)}, + // map responses = 9; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_), _Internal::kHasBitsOffset + 10, 2, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_), _Internal::kHasBitsOffset + 3, 0, (0 | ::_fl::kFcRepeated | ::_fl::kPackedOpenEnum)}, + // bool deprecated = 11; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_), _Internal::kHasBitsOffset + 9, 0, (0 | ::_fl::kFcOptional | ::_fl::kBool)}, + // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_), _Internal::kHasBitsOffset + 4, 1, (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)}, + // map extensions = 13; + {PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_), _Internal::kHasBitsOffset + 11, 4, (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, + }}, + {{ + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_}, + #endif + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_}, + #endif + {::_pbi::TcParser::GetMapAuxInfo( + 1, 0, 9, 11, 0)}, + #ifndef PROTOBUF_MESSAGE_GLOBALS + {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, + #else + {::_pbi::FieldAuxMessageGlobals(), &::google::protobuf::Value_globals_}, + #endif + }}, + {{ + "\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" + }}, + }; +} + inline constexpr Operation::Impl_::Impl_( + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, ::_pbi::ConstantInitialized) noexcept : _cached_size_{0}, - tags_{}, - consumes_{}, - produces_{}, - responses_{}, - schemes_{}, + tags_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() + } + , + consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() + } + , + produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() + } + , + schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() + } + , _schemes_cached_byte_size_{0}, - security_{}, - extensions_{}, + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() + } + , summary_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), @@ -838,34 +5208,117 @@ inline constexpr Operation::Impl_::Impl_( &::google::protobuf::internal::fixed_address_empty_string, ::_pbi::ConstantInitialized()), external_docs_{nullptr}, - deprecated_{false} {} + deprecated_{false}, + responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() + } + {} template -PROTOBUF_CONSTEXPR Operation::Operation(::_pbi::ConstantInitialized) +constexpr Operation::Operation(::_pbi::ConstantInitialized, + const ::_pbi::ClassData* PROTOBUF_NONNULL class_data) + : ::google::protobuf::Message( #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(Operation_class_data_.base()), -#else // PROTOBUF_CUSTOM_VTABLE - : ::google::protobuf::Message(), + class_data +#endif // PROTOBUF_CUSTOM_VTABLE + ), + _impl_(internal_visibility(), ::_pbi::ConstantInitialized()) { +} +inline void* PROTOBUF_NONNULL Operation::PlacementNew_( + const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, + ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { + return ::new (mem) Operation(arena); +} +constexpr auto Operation::InternalNewImpl_() { + return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation), alignof(Operation)); +} +constexpr auto Operation::InternalGenerateClassData_( + const MessageLite& prototype, + const ::google::protobuf::internal::TcParseTableBase* tc_table) { + return ::google::protobuf::internal::ClassDataFull{ + ::google::protobuf::internal::ClassData{ + &prototype, +#ifndef PROTOBUF_MESSAGE_GLOBALS + &_table_.header, +#else + tc_table, +#endif + nullptr, // IsInitialized + &Operation::MergeImpl, + ::google::protobuf::Message::GetNewImpl(), +#if defined(PROTOBUF_CUSTOM_VTABLE) + &Operation::SharedDtor, + ::google::protobuf::Message::GetClearImpl(), &Operation::ByteSizeLong, + &Operation::_InternalSerialize, #endif // PROTOBUF_CUSTOM_VTABLE - _impl_(::_pbi::ConstantInitialized()) { + PROTOBUF_FIELD_OFFSET(Operation, _impl_._cached_size_), + false, + }, +#ifdef PROTOBUF_MESSAGE_GLOBALS + &file_reflection_data[5], +#else // !PROTOBUF_MESSAGE_GLOBALS + &::_pbi::kDescriptorMethods, + &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, + nullptr, // tracker +#endif // PROTOBUF_MESSAGE_GLOBALS + }; } -struct OperationDefaultTypeInternal { - PROTOBUF_CONSTEXPR OperationDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~OperationDefaultTypeInternal() {} +struct OperationGlobalsTypeInternal : ::_pbi::MessageGlobalsBase { + constexpr OperationGlobalsTypeInternal() + : +#ifndef PROTOBUF_MESSAGE_GLOBALS + _default(::_pbi::ConstantInitialized{}, + Operation_class_data_.base()) +#else // !PROTOBUF_MESSAGE_GLOBALS + MessageGlobalsBase(Operation::InternalGenerateClassData_( + _default, &Operation_globals_._table.header)), + _default(::_pbi::ConstantInitialized{}, GetClassData()), + _table(::_pbi::PrivateAccess::GenerateParseTable( + GetClassData())) +#endif // PROTOBUF_MESSAGE_GLOBALS + { + } + ~OperationGlobalsTypeInternal() {} union { - Operation _instance; + alignas(::_pbi::kMaxMessageAlignment) Operation _default; }; +#ifdef PROTOBUF_MESSAGE_GLOBALS + decltype(::_pbi::PrivateAccess::GenerateParseTable( + ::std::declval())) _table; +#endif }; +#ifdef PROTOBUF_MESSAGE_GLOBALS +static_assert(PROTOBUF_FIELD_OFFSET(OperationGlobalsTypeInternal, _default) == + ::_pbi::MessageGlobalsBase::OffsetToDefault()); +#endif // PROTOBUF_MESSAGE_GLOBALS PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AGONES_EXPORT - PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OperationDefaultTypeInternal _Operation_default_instance_; + PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PROTOBUF_MESSAGE_GLOBALS_CONST OperationGlobalsTypeInternal Operation_globals_ + PROTOBUF_MESSAGE_GLOBALS_SECTION(.data.rel.ro); +#if defined(PROTOBUF_CUSTOM_VTABLE) +namespace { +const ::_pbi::ClassData* Operation_get_class_data() { +#ifdef PROTOBUF_MESSAGE_GLOBALS + return Operation_globals_.GetClassData(); +#else + return Operation_class_data_.base(); +#endif // PROTOBUF_MESSAGE_GLOBALS +} +} // namespace +#endif // PROTOBUF_CUSTOM_VTABLE } // namespace options } // namespace protoc_gen_openapiv2 } // namespace gateway } // namespace grpc static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[5]; -static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE +static constexpr const ::_pb::ServiceDescriptor* PROTOBUF_NONNULL* PROTOBUF_NULLABLE file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto = nullptr; const ::uint32_t TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE( @@ -899,18 +5352,18 @@ const ::uint32_t 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_), + 4, + 7, + 5, + 6, 0, - 3, 1, 2, - ~0u, - ~0u, - ~0u, - ~0u, - 4, - ~0u, - 5, - ~0u, + 10, + 8, + 3, + 9, + 11, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -940,18 +5393,18 @@ const ::uint32_t 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, 0, + 5, + 6, + 8, + 7, 1, - 3, 2, - ~0u, - ~0u, - ~0u, - ~0u, + 10, + 3, + 9, 4, - ~0u, - ~0u, + 11, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Header, _impl_._has_bits_), 8, // hasbit index offset @@ -996,9 +5449,9 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_), 0, 1, - ~0u, - ~0u, - ~0u, + 2, + 3, + 4, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -1022,7 +5475,7 @@ const ::uint32_t 4, 5, 3, - ~0u, + 6, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Contact, _impl_._has_bits_), 6, // hasbit index offset @@ -1100,32 +5553,32 @@ const ::uint32_t 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_), - 0, - 1, - 2, - 3, - 17, 4, + 5, + 6, + 7, + 21, 8, - 9, - 18, - 10, - 19, - 11, 12, - 5, 13, + 22, 14, - 20, + 23, 15, 16, - ~0u, - ~0u, - ~0u, - 6, - ~0u, - 7, - ~0u, + 9, + 17, + 18, + 24, + 19, + 20, + 0, + 1, + 2, + 10, + 3, + 11, + 25, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Tag, _impl_._has_bits_), 5, // hasbit index offset @@ -1140,8 +5593,11 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), 0, 1, - 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_), + 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -1169,9 +5625,12 @@ const ::uint32_t 2, 3, 4, - ~0u, - 0x000, // bitmap + 8, + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_), + 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -1179,8 +5638,11 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), 0, 1, - 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_), + 0, 0x081, // bitmap PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _impl_._has_bits_), 5, // hasbit index offset @@ -1188,8 +5650,11 @@ const ::uint32_t PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse, _impl_.value_), 0, 1, - 0x000, // bitmap + 0x081, // bitmap + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_._has_bits_), + 4, // hasbit index offset PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_), + 0, }; static const ::_pbi::MigrationSchema @@ -1217,45 +5682,46 @@ static const ::_pbi::MigrationSchema {256, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Tag)}, {263, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse)}, {270, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions)}, - {272, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, - {279, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, - {300, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, - {302, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, - {309, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, - {311, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, - {318, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, + {275, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse)}, + {282, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme)}, + {303, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue)}, + {308, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse)}, + {315, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement)}, + {320, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse)}, + {327, sizeof(::grpc::gateway::protoc_gen_openapiv2::options::Scopes)}, }; -static const ::_pb::Message* PROTOBUF_NONNULL 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, - &::grpc::gateway::protoc_gen_openapiv2::options::_Swagger_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_ResponsesEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Operation_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Header_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Response_HeadersEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Response_ExamplesEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Response_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Response_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Info_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Info_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Contact_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_License_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_ExternalDocumentation_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Schema_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_FieldConfiguration_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_JSONSchema_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Tag_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityDefinitions_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityScheme_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_SecurityRequirementValue_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_SecurityRequirement_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_ScopeEntry_DoNotUse_default_instance_._instance, - &::grpc::gateway::protoc_gen_openapiv2::options::_Scopes_default_instance_._instance, +static const ::_pbi::MessageGlobalsBase* PROTOBUF_NONNULL const + file_message_globals[] = { + &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Swagger_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Operation_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Header_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Response_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Info_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Contact_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::License_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Schema_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Tag_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse_globals_, + &::grpc::gateway::protoc_gen_openapiv2::options::Scopes_globals_, }; const char descriptor_table_protodef_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE( protodesc_cold) = { @@ -1429,7 +5895,7 @@ PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_protoc_2dgen_2 1, 30, schemas, - file_default_instances, + file_message_globals, TableStruct_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto::offsets, file_level_enum_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, file_level_service_descriptors_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, @@ -1438,31 +5904,36 @@ namespace grpc { namespace gateway { namespace protoc_gen_openapiv2 { namespace options { -const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL JSONSchema_JSONSchemaSimpleTypes_descriptor() { +[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +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, }; -const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Type_descriptor() { +[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +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, }; -const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_In_descriptor() { +[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +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, }; -const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL SecurityScheme_Flow_descriptor() { +[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +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, }; -const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Scheme_descriptor() { +[[nodiscard]] const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL +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]; } @@ -1471,218 +5942,89 @@ PROTOBUF_CONSTINIT const uint32_t Scheme_internal_data_[] = { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() - : SuperType(Swagger_ResponsesEntry_DoNotUse_class_data_.base()) {} +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType(Swagger_ResponsesEntry_DoNotUse_get_class_data()) {} Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Swagger_ResponsesEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Swagger_ResponsesEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType() {} -Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} -#endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger_ResponsesEntry_DoNotUse(arena); -} -constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ResponsesEntry_DoNotUse), - alignof(Swagger_ResponsesEntry_DoNotUse)); -} -constexpr auto Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Swagger_ResponsesEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Swagger_ResponsesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger_ResponsesEntry_DoNotUse::SharedDtor, - static_cast(&Swagger_ResponsesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Swagger_ResponsesEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse() : SuperType() {} +Swagger_ResponsesEntry_DoNotUse::Swagger_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_ResponsesEntry_DoNotUse_class_data_ = - Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_(); + Swagger_ResponsesEntry_DoNotUse::InternalGenerateClassData_(Swagger_ResponsesEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger_ResponsesEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ResponsesEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Swagger_ResponsesEntry_DoNotUse_class_data_.tc_table); return Swagger_ResponsesEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 76, 2> -Swagger_ResponsesEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_._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), - Swagger_ResponsesEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ResponsesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {PROTOBUF_FIELD_OFFSET(Swagger_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - }}, - {{ - "\100\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ResponsesEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Swagger_ResponsesEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ResponsesEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_ResponsesEntry_DoNotUse_globals_)); + return Swagger_ResponsesEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger_ResponsesEntry_DoNotUse::ParseTableT_ + Swagger_ResponsesEntry_DoNotUse::_table_ = + Swagger_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(Swagger_ResponsesEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() - : SuperType(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) {} +Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() : SuperType(Swagger_ExtensionsEntry_DoNotUse_get_class_data()) {} Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Swagger_ExtensionsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Swagger_ExtensionsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse() : SuperType() {} Swagger_ExtensionsEntry_DoNotUse::Swagger_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Swagger_ExtensionsEntry_DoNotUse), - alignof(Swagger_ExtensionsEntry_DoNotUse)); -} -constexpr auto Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Swagger_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Swagger_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Swagger_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Swagger_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_ExtensionsEntry_DoNotUse_class_data_ = - Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + Swagger_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Swagger_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Swagger_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Swagger_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 77, 2> -Swagger_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_._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), - Swagger_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Swagger_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Swagger_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\101\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Swagger.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Swagger_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_ExtensionsEntry_DoNotUse_globals_)); + return Swagger_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger_ExtensionsEntry_DoNotUse::ParseTableT_ + Swagger_ExtensionsEntry_DoNotUse::_table_ = + Swagger_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Swagger_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class Swagger::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Swagger, _impl_._has_bits_); -}; - void Swagger::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } Swagger::Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Swagger_class_data_.base()) { + : ::google::protobuf::Message(arena, Swagger_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1690,27 +6032,64 @@ Swagger::Swagger(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Swagger& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Swagger& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - schemes_{visibility, arena, from.schemes_}, + schemes_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() + , 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_}, + consumes_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() + , from.consumes_ + } + , + produces_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() + , from.produces_ + } + , + security_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() + , from.security_ + } + , swagger_(arena, from.swagger_), host_(arena, from.host_), - base_path_(arena, from.base_path_) {} + base_path_(arena, from.base_path_), + responses_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() + , from.responses_ + } + , + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() + , from.extensions_ + } + {} Swagger::Swagger( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Swagger& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Swagger_class_data_.base()) { + : ::google::protobuf::Message(arena, Swagger_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -1720,36 +6099,60 @@ Swagger::Swagger( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.info_ = ((cached_has_bits & 0x00000008u) != 0) + _impl_.info_ = (CheckHasBit(cached_has_bits, 0x00000080U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.info_) : nullptr; - _impl_.security_definitions_ = ((cached_has_bits & 0x00000010u) != 0) + _impl_.security_definitions_ = (CheckHasBit(cached_has_bits, 0x00000100U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.security_definitions_) : nullptr; - _impl_.external_docs_ = ((cached_has_bits & 0x00000020u) != 0) + _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000200U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Swagger) } PROTOBUF_NDEBUG_INLINE Swagger::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - schemes_{visibility, arena}, + schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.schemes_)>() + } + , _schemes_cached_byte_size_{0}, - consumes_{visibility, arena}, - produces_{visibility, arena}, - responses_{visibility, arena}, - security_{visibility, arena}, - extensions_{visibility, arena}, + consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.consumes_)>() + } + , + produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.produces_)>() + } + , + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.security_)>() + } + , swagger_(arena), host_(arena), - base_path_(arena) {} + base_path_(arena), + responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.responses_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Swagger, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Swagger, _impl_.extensions_)>() + } + {} inline void Swagger::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, info_), 0, offsetof(Impl_, external_docs_) - @@ -1762,6 +6165,9 @@ Swagger::~Swagger() { } inline void Swagger::SharedDtor(MessageLite& self) { Swagger& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.swagger_.Destroy(); @@ -1773,81 +6179,10 @@ inline void Swagger::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Swagger::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Swagger(arena); -} -constexpr auto Swagger::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.schemes_) + - decltype(Swagger::_impl_.schemes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.consumes_) + - decltype(Swagger::_impl_.consumes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.produces_) + - decltype(Swagger::_impl_.produces_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_) + - decltype(Swagger::_impl_.responses_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.responses_) + - decltype(Swagger::_impl_.responses_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_) + - decltype(Swagger::_impl_.security_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_) + - decltype(Swagger::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.extensions_) + - decltype(Swagger::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Swagger), alignof(Swagger), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Swagger::PlacementNew_, - sizeof(Swagger), - alignof(Swagger)); - } -} -constexpr auto Swagger::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Swagger_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Swagger::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Swagger::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Swagger::ByteSizeLong, - &Swagger::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Swagger, _impl_._cached_size_), - false, - }, - &Swagger::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Swagger_class_data_ = - Swagger::InternalGenerateClassData_(); + Swagger::InternalGenerateClassData_(Swagger_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Swagger::GetClassData() const { @@ -1855,128 +6190,21 @@ Swagger::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Swagger_class_data_.tc_table); return Swagger_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - {::_pbi::TcParser::FastMtS1, - {18, 3, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)}}, - // string host = 3; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_)}}, - // string base_path = 4; - {::_pbi::TcParser::FastUS1, - {34, 2, 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, 4, 1, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {::_pbi::TcParser::FastMtR1, - {98, 63, 2, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - {::_pbi::TcParser::FastMtS1, - {114, 5, 3, PROTOBUF_FIELD_OFFSET(Swagger, _impl_.external_docs_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string swagger = 1; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.swagger_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string host = 3; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.host_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string base_path = 4; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.base_path_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_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, 4, - (0 | ::_fl::kFcRepeated | ::_fl::kMap)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_definitions_), _Internal::kHasBitsOffset + 4, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {PROTOBUF_FIELD_OFFSET(Swagger, _impl_.security_), -1, 2, - (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 + 5, 3, - (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::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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Swagger::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Swagger_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Swagger_globals_)); + return Swagger_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Swagger::ParseTableT_ + Swagger::_table_ = + Swagger::InternalGenerateParseTable_(Swagger_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Swagger::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -1984,35 +6212,49 @@ PROTOBUF_NOINLINE void Swagger::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.schemes_.Clear(); - _impl_.consumes_.Clear(); - _impl_.produces_.Clear(); - _impl_.responses_.Clear(); - _impl_.security_.Clear(); - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.schemes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.consumes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.produces_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.security_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { _impl_.swagger_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { _impl_.host_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { _impl_.base_path_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { ABSL_DCHECK(_impl_.info_ != nullptr); _impl_.info_->Clear(); } - if ((cached_has_bits & 0x00000010u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { ABSL_DCHECK(_impl_.security_definitions_ != nullptr); _impl_.security_definitions_->Clear(); } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _impl_.responses_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _impl_.extensions_.Clear(); + } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -2029,12 +6271,16 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Swagger& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string swagger = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_swagger().empty()) { const ::std::string& _s = this_._internal_swagger(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2043,16 +6289,15 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.info_, this_._impl_.info_->GetCachedSize(), target, stream); } // string host = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_host().empty()) { const ::std::string& _s = this_._internal_host(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2062,7 +6307,7 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } // string base_path = 4; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_base_path().empty()) { const ::std::string& _s = this_._internal_base_path(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2072,105 +6317,117 @@ ::uint8_t* PROTOBUF_NONNULL Swagger::_InternalSerialize( } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - { - ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 5, this_._internal_schemes(), byte_size, target); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + { + ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 5, this_._internal_schemes(), byte_size, target); + } } } // repeated string consumes = 6; - for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { - 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); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { + 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().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); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (!this_._internal_responses().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 10, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 11, *this_._impl_.security_definitions_, this_._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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + 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 & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 14, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // map extensions = 15; - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 15, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -2199,14 +6456,15 @@ ::size_t Swagger::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 5; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_schemes(), 1, this_._impl_._schemes_cached_byte_size_); } // repeated string consumes = 6; - { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_consumes().size()); for (int i = 0, n = this_._internal_consumes().size(); i < n; ++i) { @@ -2215,7 +6473,7 @@ ::size_t Swagger::ByteSizeLong() const { } } // repeated string produces = 7; - { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_produces().size()); for (int i = 0, n = this_._internal_produces().size(); i < n; ++i) { @@ -2223,96 +6481,110 @@ ::size_t Swagger::ByteSizeLong() const { this_._internal_produces().Get(i)); } } - // map responses = 10; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); - for (const auto& entry : this_._internal_responses()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1UL * this_._internal_security_size(); for (const auto& msg : this_._internal_security()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - // map extensions = 15; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { // string swagger = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_swagger().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_swagger()); } } // string host = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_host().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_host()); } } // string base_path = 4; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_base_path().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_base_path()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Info info = 2; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.info_); } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { // .grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions security_definitions = 11; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.security_definitions_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 14; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } + // map responses = 10; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); + for (const auto& entry : this_._internal_responses()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } + // map extensions = 15; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); - _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->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_consumes()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_consumes()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_produces()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_produces()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_mutable_security()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_security()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!from._internal_swagger().empty()) { _this->_internal_set_swagger(from._internal_swagger()); } else { @@ -2321,7 +6593,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!from._internal_host().empty()) { _this->_internal_set_host(from._internal_host()); } else { @@ -2330,7 +6602,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!from._internal_base_path().empty()) { _this->_internal_set_base_path(from._internal_base_path()); } else { @@ -2339,7 +6611,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { ABSL_DCHECK(from._impl_.info_ != nullptr); if (_this->_impl_.info_ == nullptr) { _this->_impl_.info_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.info_); @@ -2347,7 +6619,9 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: _this->_impl_.info_->MergeFrom(*from._impl_.info_); } } - if ((cached_has_bits & 0x00000010u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { ABSL_DCHECK(from._impl_.security_definitions_ != nullptr); if (_this->_impl_.security_definitions_ == nullptr) { _this->_impl_.security_definitions_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.security_definitions_); @@ -2355,7 +6629,7 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: _this->_impl_.security_definitions_->MergeFrom(*from._impl_.security_definitions_); } } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -2363,13 +6637,20 @@ void Swagger::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.responses_.MergeFrom(from._impl_.responses_); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Swagger::CopyFrom(const Swagger& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Swagger) if (&from == this) return; Clear(); MergeFrom(from); @@ -2385,9 +6666,7 @@ void Swagger::InternalSwap(Swagger* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); _impl_.produces_.InternalSwap(&other->_impl_.produces_); - _impl_.responses_.InternalSwap(&other->_impl_.responses_); _impl_.security_.InternalSwap(&other->_impl_.security_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); ::_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); @@ -2397,6 +6676,8 @@ void Swagger::InternalSwap(Swagger* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - PROTOBUF_FIELD_OFFSET(Swagger, _impl_.info_)>( reinterpret_cast(&_impl_.info_), reinterpret_cast(&other->_impl_.info_)); + _impl_.responses_.InternalSwap(&other->_impl_.responses_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Swagger::GetMetadata() const { @@ -2405,218 +6686,89 @@ ::google::protobuf::Metadata Swagger::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() - : SuperType(Operation_ResponsesEntry_DoNotUse_class_data_.base()) {} +Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() : SuperType(Operation_ResponsesEntry_DoNotUse_get_class_data()) {} Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Operation_ResponsesEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Operation_ResponsesEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse() : SuperType() {} Operation_ResponsesEntry_DoNotUse::Operation_ResponsesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Operation_ResponsesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation_ResponsesEntry_DoNotUse(arena); -} -constexpr auto Operation_ResponsesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ResponsesEntry_DoNotUse), - alignof(Operation_ResponsesEntry_DoNotUse)); -} -constexpr auto Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Operation_ResponsesEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Operation_ResponsesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation_ResponsesEntry_DoNotUse::SharedDtor, - static_cast(&Operation_ResponsesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Operation_ResponsesEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_ResponsesEntry_DoNotUse_class_data_ = - Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_(); - -PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL -Operation_ResponsesEntry_DoNotUse::GetClassData() const { - ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ResponsesEntry_DoNotUse_class_data_); - ::google::protobuf::internal::PrefetchToLocalCache(Operation_ResponsesEntry_DoNotUse_class_data_.tc_table); - return Operation_ResponsesEntry_DoNotUse_class_data_.base(); -} -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 78, 2> -Operation_ResponsesEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_._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), - Operation_ResponsesEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ResponsesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Response value = 2; - {PROTOBUF_FIELD_OFFSET(Operation_ResponsesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - }}, - {{ - "\102\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Operation.ResponsesEntry" - "key" - }}, -}; -// =================================================================== - -#if defined(PROTOBUF_CUSTOM_VTABLE) -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() - : SuperType(Operation_ExtensionsEntry_DoNotUse_class_data_.base()) {} -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Operation_ExtensionsEntry_DoNotUse_class_data_.base()) {} -#else // PROTOBUF_CUSTOM_VTABLE -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType() {} -Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} -#endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Operation_ExtensionsEntry_DoNotUse), - alignof(Operation_ExtensionsEntry_DoNotUse)); -} -constexpr auto Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Operation_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Operation_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Operation_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Operation_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; + Operation_ResponsesEntry_DoNotUse::InternalGenerateClassData_(Operation_ResponsesEntry_DoNotUse_globals_._default); + +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Operation_ResponsesEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ResponsesEntry_DoNotUse_class_data_); + ::google::protobuf::internal::PrefetchToLocalCache(Operation_ResponsesEntry_DoNotUse_class_data_.tc_table); + return Operation_ResponsesEntry_DoNotUse_class_data_.base(); } +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Operation_ResponsesEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ResponsesEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_ResponsesEntry_DoNotUse_globals_)); + return Operation_ResponsesEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation_ResponsesEntry_DoNotUse::ParseTableT_ + Operation_ResponsesEntry_DoNotUse::_table_ = + Operation_ResponsesEntry_DoNotUse::InternalGenerateParseTable_(Operation_ResponsesEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS +// =================================================================== +#if defined(PROTOBUF_CUSTOM_VTABLE) +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType(Operation_ExtensionsEntry_DoNotUse_get_class_data()) {} +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : SuperType(arena, Operation_ExtensionsEntry_DoNotUse_get_class_data()) {} +#else // PROTOBUF_CUSTOM_VTABLE +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse() : SuperType() {} +Operation_ExtensionsEntry_DoNotUse::Operation_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} +#endif // PROTOBUF_CUSTOM_VTABLE +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_ExtensionsEntry_DoNotUse_class_data_ = - Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + Operation_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Operation_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Operation_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Operation_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Operation_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 79, 2> -Operation_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_._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), - Operation_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Operation_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Operation_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\103\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Operation.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Operation_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Operation_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_ExtensionsEntry_DoNotUse_globals_)); + return Operation_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation_ExtensionsEntry_DoNotUse::ParseTableT_ + Operation_ExtensionsEntry_DoNotUse::_table_ = + Operation_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Operation_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class Operation::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Operation, _impl_._has_bits_); -}; - void Operation::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000800U); } Operation::Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Operation_class_data_.base()) { + : ::google::protobuf::Message(arena, Operation_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2624,28 +6776,71 @@ Operation::Operation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Operation& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Operation& from_msg) : _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_}, + tags_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() + , from.tags_ + } + , + consumes_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() + , from.consumes_ + } + , + produces_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() + , from.produces_ + } + , + schemes_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() + , from.schemes_ + } + , _schemes_cached_byte_size_{0}, - security_{visibility, arena, from.security_}, - extensions_{visibility, arena, from.extensions_}, + security_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() + , from.security_ + } + , summary_(arena, from.summary_), description_(arena, from.description_), - operation_id_(arena, from.operation_id_) {} + operation_id_(arena, from.operation_id_), + responses_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() + , from.responses_ + } + , + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() + , from.extensions_ + } + {} Operation::Operation( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Operation& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Operation_class_data_.base()) { + : ::google::protobuf::Message(arena, Operation_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -2655,7 +6850,7 @@ Operation::Operation( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.external_docs_ = ((cached_has_bits & 0x00000008u) != 0) + _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000100U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; _impl_.deprecated_ = from._impl_.deprecated_; @@ -2663,24 +6858,52 @@ Operation::Operation( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Operation) } PROTOBUF_NDEBUG_INLINE Operation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - tags_{visibility, arena}, - consumes_{visibility, arena}, - produces_{visibility, arena}, - responses_{visibility, arena}, - schemes_{visibility, arena}, + tags_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.tags_)>() + } + , + consumes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.consumes_)>() + } + , + produces_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.produces_)>() + } + , + schemes_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.schemes_)>() + } + , _schemes_cached_byte_size_{0}, - security_{visibility, arena}, - extensions_{visibility, arena}, + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.security_)>() + } + , summary_(arena), description_(arena), - operation_id_(arena) {} + operation_id_(arena), + responses_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.responses_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Operation, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Operation, _impl_.extensions_)>() + } + {} inline void Operation::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, external_docs_), 0, offsetof(Impl_, deprecated_) - @@ -2693,6 +6916,9 @@ Operation::~Operation() { } inline void Operation::SharedDtor(MessageLite& self) { Operation& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.summary_.Destroy(); @@ -2702,85 +6928,10 @@ inline void Operation::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Operation::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Operation(arena); -} -constexpr auto Operation::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Operation, _impl_.tags_) + - decltype(Operation::_impl_.tags_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.consumes_) + - decltype(Operation::_impl_.consumes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.produces_) + - decltype(Operation::_impl_.produces_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_) + - decltype(Operation::_impl_.responses_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.responses_) + - decltype(Operation::_impl_.responses_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.schemes_) + - decltype(Operation::_impl_.schemes_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_) + - decltype(Operation::_impl_.security_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_) + - decltype(Operation::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Operation, _impl_.extensions_) + - decltype(Operation::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Operation), alignof(Operation), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Operation::PlacementNew_, - sizeof(Operation), - alignof(Operation)); - } -} -constexpr auto Operation::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Operation_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Operation::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Operation::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Operation::ByteSizeLong, - &Operation::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Operation, _impl_._cached_size_), - false, - }, - &Operation::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Operation_class_data_ = - Operation::InternalGenerateClassData_(); + Operation::InternalGenerateClassData_(Operation_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Operation::GetClassData() const { @@ -2788,127 +6939,21 @@ Operation::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Operation_class_data_.tc_table); return Operation_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.summary_)}}, - // string description = 3; - {::_pbi::TcParser::FastUS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - {::_pbi::TcParser::FastMtS1, - {34, 3, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)}}, - // string operation_id = 5; - {::_pbi::TcParser::FastUS1, - {42, 2, 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, 4, 0, PROTOBUF_FIELD_OFFSET(Operation, _impl_.deprecated_)}}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {::_pbi::TcParser::FastMtR1, - {98, 63, 1, 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_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 3; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string operation_id = 5; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.operation_id_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_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, 2, - (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_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - {PROTOBUF_FIELD_OFFSET(Operation, _impl_.security_), -1, 1, - (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::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Operation::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Operation_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Operation_globals_)); + return Operation_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Operation::ParseTableT_ + Operation::_table_ = + Operation::InternalGenerateParseTable_(Operation_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Operation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -2916,30 +6961,46 @@ PROTOBUF_NOINLINE void Operation::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.tags_.Clear(); - _impl_.consumes_.Clear(); - _impl_.produces_.Clear(); - _impl_.responses_.Clear(); - _impl_.schemes_.Clear(); - _impl_.security_.Clear(); - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.tags_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.consumes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.produces_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.schemes_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.security_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { _impl_.summary_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { _impl_.operation_id_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { - ABSL_DCHECK(_impl_.external_docs_ != nullptr); - _impl_.external_docs_->Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + ABSL_DCHECK(_impl_.external_docs_ != nullptr); + _impl_.external_docs_->Clear(); + } + if (BatchCheckHasBit(cached_has_bits, 0x00000e00U)) { + _impl_.deprecated_ = false; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _impl_.responses_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _impl_.extensions_.Clear(); } } - _impl_.deprecated_ = false; _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -2955,20 +7016,26 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Operation& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated string tags = 1; - for (int i = 0, n = this_._internal_tags_size(); i < n; ++i) { - 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); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_tags_size(); i < n; ++i) { + 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_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_summary().empty()) { const ::std::string& _s = this_._internal_summary(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2978,7 +7045,7 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } // string description = 3; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -2987,16 +7054,15 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // string operation_id = 5; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!this_._internal_operation_id().empty()) { const ::std::string& _s = this_._internal_operation_id(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3006,59 +7072,67 @@ ::uint8_t* PROTOBUF_NONNULL Operation::_InternalSerialize( } // repeated string consumes = 6; - for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { - 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); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + for (int i = 0, n = this_._internal_consumes_size(); i < n; ++i) { + 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().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); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + for (int i = 0, n = this_._internal_produces_size(); i < n; ++i) { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + if (!this_._internal_responses().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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; - { - ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 10, this_._internal_schemes(), byte_size, target); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + { + ::size_t byte_size = this_._impl_._schemes_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 10, this_._internal_schemes(), byte_size, target); + } } } // bool deprecated = 11; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_deprecated() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -3067,39 +7141,43 @@ ::uint8_t* PROTOBUF_NONNULL 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().Get(i); - target = - ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( - 12, repfield, repfield.GetCachedSize(), - target, stream); + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 13, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -3128,9 +7206,10 @@ ::size_t Operation::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // repeated string tags = 1; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_tags().size()); for (int i = 0, n = this_._internal_tags().size(); i < n; ++i) { @@ -3139,7 +7218,7 @@ ::size_t Operation::ByteSizeLong() const { } } // repeated string consumes = 6; - { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_consumes().size()); for (int i = 0, n = this_._internal_consumes().size(); i < n; ++i) { @@ -3148,7 +7227,7 @@ ::size_t Operation::ByteSizeLong() const { } } // repeated string produces = 7; - { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_produces().size()); for (int i = 0, n = this_._internal_produces().size(); i < n; ++i) { @@ -3156,98 +7235,116 @@ ::size_t Operation::ByteSizeLong() const { this_._internal_produces().Get(i)); } } - // map responses = 9; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); - for (const auto& entry : this_._internal_responses()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } // repeated .grpc.gateway.protoc_gen_openapiv2.options.Scheme schemes = 10; - { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_schemes(), 1, this_._impl_._schemes_cached_byte_size_); } // repeated .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement security = 12; - { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1UL * this_._internal_security_size(); for (const auto& msg : this_._internal_security()) { total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg); } } - // map extensions = 13; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { // string summary = 2; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_summary().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_summary()); } } // string description = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string operation_id = 5; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!this_._internal_operation_id().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_operation_id()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 4; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } // bool deprecated = 11; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (this_._internal_deprecated() != 0) { total_size += 2; } } + // map responses = 9; + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_responses_size()); + for (const auto& entry : this_._internal_responses()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Response, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } + // map extensions = 13; + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_tags()->MergeFrom(from._internal_tags()); - _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_schemes()->MergeFrom(from._internal_schemes()); - _this->_internal_mutable_security()->MergeFrom( - from._internal_security()); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_tags()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_tags()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_consumes()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_consumes()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_produces()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_produces()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_mutable_schemes()->MergeFrom(from._internal_schemes()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_internal_mutable_security()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_security()); + } + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!from._internal_summary().empty()) { _this->_internal_set_summary(from._internal_summary()); } else { @@ -3256,7 +7353,7 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -3265,7 +7362,7 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!from._internal_operation_id().empty()) { _this->_internal_set_operation_id(from._internal_operation_id()); } else { @@ -3274,7 +7371,9 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl } } } - if ((cached_has_bits & 0x00000008u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -3282,18 +7381,25 @@ void Operation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::googl _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (from._internal_deprecated() != 0) { _this->_impl_.deprecated_ = from._impl_.deprecated_; } } + if (CheckHasBit(cached_has_bits, 0x00000400U)) { + _this->_impl_.responses_.MergeFrom(from._impl_.responses_); + } + if (CheckHasBit(cached_has_bits, 0x00000800U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Operation::CopyFrom(const Operation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Operation) if (&from == this) return; Clear(); MergeFrom(from); @@ -3309,10 +7415,8 @@ void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other _impl_.tags_.InternalSwap(&other->_impl_.tags_); _impl_.consumes_.InternalSwap(&other->_impl_.consumes_); _impl_.produces_.InternalSwap(&other->_impl_.produces_); - _impl_.responses_.InternalSwap(&other->_impl_.responses_); _impl_.schemes_.InternalSwap(&other->_impl_.schemes_); _impl_.security_.InternalSwap(&other->_impl_.security_); - _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); ::_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); @@ -3322,6 +7426,8 @@ void Operation::InternalSwap(Operation* PROTOBUF_RESTRICT PROTOBUF_NONNULL other - PROTOBUF_FIELD_OFFSET(Operation, _impl_.external_docs_)>( reinterpret_cast(&_impl_.external_docs_), reinterpret_cast(&other->_impl_.external_docs_)); + _impl_.responses_.InternalSwap(&other->_impl_.responses_); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Operation::GetMetadata() const { @@ -3329,17 +7435,9 @@ ::google::protobuf::Metadata Operation::GetMetadata() const { } // =================================================================== -class Header::_Internal { - public: - using HasBits = - decltype(::std::declval
()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Header, _impl_._has_bits_); -}; - Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Header_class_data_.base()) { + : ::google::protobuf::Message(arena, Header_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3347,9 +7445,9 @@ Header::Header(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Header& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Header& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_), @@ -3362,7 +7460,8 @@ Header::Header( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Header& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Header_class_data_.base()) { + : ::google::protobuf::Message(arena, Header_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -3375,8 +7474,8 @@ Header::Header( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Header) } PROTOBUF_NDEBUG_INLINE Header::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena), type_(arena), @@ -3393,6 +7492,9 @@ Header::~Header() { } inline void Header::SharedDtor(MessageLite& self) { Header& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -3403,41 +7505,10 @@ inline void Header::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Header::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Header(arena); -} -constexpr auto Header::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Header), - alignof(Header)); -} -constexpr auto Header::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Header_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Header::MergeImpl, - ::google::protobuf::Message::GetNewImpl
(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Header::SharedDtor, - ::google::protobuf::Message::GetClearImpl
(), &Header::ByteSizeLong, - &Header::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Header, _impl_._cached_size_), - false, - }, - &Header::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Header_class_data_ = - Header::InternalGenerateClassData_(); + Header::InternalGenerateClassData_(Header_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Header::GetClassData() const { @@ -3445,74 +7516,21 @@ Header::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Header_class_data_.tc_table); return Header_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<3, 5, 0, 92, 2> -Header::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Header, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.description_)}}, - // string type = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.type_)}}, - // string format = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.format_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string pattern = 13; - {::_pbi::TcParser::FastUS1, - {106, 4, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_)}}, - // string default = 6; - {::_pbi::TcParser::FastUS1, - {50, 3, 0, PROTOBUF_FIELD_OFFSET(Header, _impl_.default__)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string type = 2; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.type_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string format = 3; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.format_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string default = 6; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string pattern = 13; - {PROTOBUF_FIELD_OFFSET(Header, _impl_.pattern_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Header::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Header_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Header_globals_)); + return Header_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Header::ParseTableT_ + Header::_table_ = + Header::InternalGenerateParseTable_(Header_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Header::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -3521,20 +7539,20 @@ PROTOBUF_NOINLINE void Header::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.type_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.format_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.default__.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { _impl_.pattern_.ClearNonDefaultToEmpty(); } } @@ -3553,12 +7571,16 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Header& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3568,7 +7590,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string type = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_type().empty()) { const ::std::string& _s = this_._internal_type(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3578,7 +7600,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string format = 3; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_format().empty()) { const ::std::string& _s = this_._internal_format(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3588,7 +7610,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string default = 6; - if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_default_().empty()) { const ::std::string& _s = this_._internal_default_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3598,7 +7620,7 @@ ::uint8_t* PROTOBUF_NONNULL Header::_InternalSerialize( } // string pattern = 13; - if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_pattern().empty()) { const ::std::string& _s = this_._internal_pattern(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -3632,37 +7654,37 @@ ::size_t Header::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // string description = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string type = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_type().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_type()); } } // string format = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_format().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_format()); } } // string default = 6; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_default_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_default_()); } } // string pattern = 13; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_pattern().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_pattern()); @@ -3673,17 +7695,21 @@ ::size_t Header::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -3692,7 +7718,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_type().empty()) { _this->_internal_set_type(from._internal_type()); } else { @@ -3701,7 +7727,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_format().empty()) { _this->_internal_set_format(from._internal_format()); } else { @@ -3710,7 +7736,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_default_().empty()) { _this->_internal_set_default_(from._internal_default_()); } else { @@ -3719,7 +7745,7 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!from._internal_pattern().empty()) { _this->_internal_set_pattern(from._internal_pattern()); } else { @@ -3730,11 +7756,12 @@ void Header::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Header::CopyFrom(const Header& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Header) if (&from == this) return; Clear(); MergeFrom(from); @@ -3760,316 +7787,127 @@ ::google::protobuf::Metadata Header::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() - : SuperType(Response_HeadersEntry_DoNotUse_class_data_.base()) {} +Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() : SuperType(Response_HeadersEntry_DoNotUse_get_class_data()) {} Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_HeadersEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Response_HeadersEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse() : SuperType() {} Response_HeadersEntry_DoNotUse::Response_HeadersEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_HeadersEntry_DoNotUse(arena); -} -constexpr auto Response_HeadersEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_HeadersEntry_DoNotUse), - alignof(Response_HeadersEntry_DoNotUse)); -} -constexpr auto Response_HeadersEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Response_HeadersEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response_HeadersEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_HeadersEntry_DoNotUse::SharedDtor, - static_cast(&Response_HeadersEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Response_HeadersEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_HeadersEntry_DoNotUse_class_data_ = - Response_HeadersEntry_DoNotUse::InternalGenerateClassData_(); + Response_HeadersEntry_DoNotUse::InternalGenerateClassData_(Response_HeadersEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_HeadersEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_HeadersEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_HeadersEntry_DoNotUse_class_data_.tc_table); return Response_HeadersEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 75, 2> -Response_HeadersEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_._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), - Response_HeadersEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_HeadersEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Header value = 2; - {PROTOBUF_FIELD_OFFSET(Response_HeadersEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, - }}, - {{ - "\77\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.HeadersEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Response_HeadersEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Response_HeadersEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_HeadersEntry_DoNotUse_globals_)); + return Response_HeadersEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_HeadersEntry_DoNotUse::ParseTableT_ + Response_HeadersEntry_DoNotUse::_table_ = + Response_HeadersEntry_DoNotUse::InternalGenerateParseTable_(Response_HeadersEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() - : SuperType(Response_ExamplesEntry_DoNotUse_class_data_.base()) {} +Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() : SuperType(Response_ExamplesEntry_DoNotUse_get_class_data()) {} Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_ExamplesEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Response_ExamplesEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse() : SuperType() {} Response_ExamplesEntry_DoNotUse::Response_ExamplesEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_ExamplesEntry_DoNotUse(arena); -} -constexpr auto Response_ExamplesEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExamplesEntry_DoNotUse), - alignof(Response_ExamplesEntry_DoNotUse)); -} -constexpr auto Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Response_ExamplesEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response_ExamplesEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_ExamplesEntry_DoNotUse::SharedDtor, - static_cast(&Response_ExamplesEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Response_ExamplesEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_ExamplesEntry_DoNotUse_class_data_ = - Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_(); + Response_ExamplesEntry_DoNotUse::InternalGenerateClassData_(Response_ExamplesEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_ExamplesEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExamplesEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_ExamplesEntry_DoNotUse_class_data_.tc_table); return Response_ExamplesEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 81, 2> -Response_ExamplesEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_._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 - Response_ExamplesEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExamplesEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(Response_ExamplesEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\100\3\5\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.ExamplesEntry" - "key" - "value" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Response_ExamplesEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExamplesEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_ExamplesEntry_DoNotUse_globals_)); + return Response_ExamplesEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_ExamplesEntry_DoNotUse::ParseTableT_ + Response_ExamplesEntry_DoNotUse::_table_ = + Response_ExamplesEntry_DoNotUse::InternalGenerateParseTable_(Response_ExamplesEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() - : SuperType(Response_ExtensionsEntry_DoNotUse_class_data_.base()) {} +Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() : SuperType(Response_ExtensionsEntry_DoNotUse_get_class_data()) {} Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Response_ExtensionsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Response_ExtensionsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse() : SuperType() {} Response_ExtensionsEntry_DoNotUse::Response_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Response_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Response_ExtensionsEntry_DoNotUse), - alignof(Response_ExtensionsEntry_DoNotUse)); -} -constexpr auto Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Response_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Response_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Response_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_ExtensionsEntry_DoNotUse_class_data_ = - Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + Response_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Response_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Response_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Response_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 78, 2> -Response_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_._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), - Response_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Response_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Response_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\102\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Response_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Response_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_ExtensionsEntry_DoNotUse_globals_)); + return Response_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response_ExtensionsEntry_DoNotUse::ParseTableT_ + Response_ExtensionsEntry_DoNotUse::_table_ = + Response_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Response_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class Response::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Response, _impl_._has_bits_); -}; - void Response::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000010U); } Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_class_data_.base()) { + : ::google::protobuf::Message(arena, Response_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4077,21 +7915,40 @@ Response::Response(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Response& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Response& from_msg) : _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_) {} + description_(arena, from.description_), + headers_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() + , from.headers_ + } + , + examples_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() + , from.examples_ + } + , + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() + , from.extensions_ + } + {} Response::Response( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Response& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Response_class_data_.base()) { + : ::google::protobuf::Message(arena, Response_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4101,20 +7958,32 @@ Response::Response( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.schema_ = ((cached_has_bits & 0x00000002u) != 0) + _impl_.schema_ = (CheckHasBit(cached_has_bits, 0x00000002U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.schema_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Response) } PROTOBUF_NDEBUG_INLINE Response::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - headers_{visibility, arena}, - examples_{visibility, arena}, - extensions_{visibility, arena}, - description_(arena) {} + description_(arena), + headers_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.headers_)>() + } + , + examples_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.examples_)>() + } + , + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Response, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Response, _impl_.extensions_)>() + } + {} inline void Response::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -4126,6 +7995,9 @@ Response::~Response() { } inline void Response::SharedDtor(MessageLite& self) { Response& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -4133,73 +8005,10 @@ inline void Response::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Response::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Response(arena); -} -constexpr auto Response::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_) + - decltype(Response::_impl_.headers_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Response, _impl_.headers_) + - decltype(Response::_impl_.headers_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_) + - decltype(Response::_impl_.examples_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Response, _impl_.examples_) + - decltype(Response::_impl_.examples_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_) + - decltype(Response::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Response, _impl_.extensions_) + - decltype(Response::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Response), alignof(Response), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Response::PlacementNew_, - sizeof(Response), - alignof(Response)); - } -} -constexpr auto Response::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Response_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Response::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Response::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Response::ByteSizeLong, - &Response::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Response, _impl_._cached_size_), - false, - }, - &Response::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Response_class_data_ = - Response::InternalGenerateClassData_(); + Response::InternalGenerateClassData_(Response_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Response::GetClassData() const { @@ -4207,74 +8016,21 @@ Response::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Response_class_data_.tc_table); return Response_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_)}}, - // string description = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Response, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - {PROTOBUF_FIELD_OFFSET(Response, _impl_.schema_), _Internal::kHasBitsOffset + 1, 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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Header>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 9, - 0)}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\62\13\0\7\10\12\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Response" - "description" - "headers" - "examples" - "extensions" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Response::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Response_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Response_globals_)); + return Response_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Response::ParseTableT_ + Response::_table_ = + Response::InternalGenerateParseTable_(Response_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Response::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4282,18 +8038,24 @@ PROTOBUF_NOINLINE void Response::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.headers_.Clear(); - _impl_.examples_.Clear(); - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(_impl_.schema_ != nullptr); _impl_.schema_->Clear(); } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.headers_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.examples_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _impl_.extensions_.Clear(); + } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -4310,12 +8072,16 @@ ::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Response& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Response) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4324,97 +8090,102 @@ ::uint8_t* PROTOBUF_NONNULL Response::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 2, *this_._impl_.schema_, this_._impl_.schema_->GetCachedSize(), target, stream); } // map headers = 3; - if (!this_._internal_headers().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + if (!this_._internal_headers().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::Header, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 3, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + if (!this_._internal_examples().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::std::string>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 4, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 5, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -4443,72 +8214,71 @@ ::size_t Response::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + // string description = 1; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_description().empty()) { + total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( + this_._internal_description()); + } + } + // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.schema_); + } // map headers = 3; - { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_headers_size()); for (const auto& entry : this_._internal_headers()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } // map examples = 4; - { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_examples_size()); for (const auto& entry : this_._internal_examples()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } // map extensions = 5; - { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } } } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - // string description = 1; - if ((cached_has_bits & 0x00000001u) != 0) { - if (!this_._internal_description().empty()) { - total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( - this_._internal_description()); - } - } - // .grpc.gateway.protoc_gen_openapiv2.options.Schema schema = 2; - if ((cached_has_bits & 0x00000002u) != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.schema_); - } - } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.headers_.MergeFrom(from._impl_.headers_); - _this->_impl_.examples_.MergeFrom(from._impl_.examples_); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -4517,7 +8287,7 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(from._impl_.schema_ != nullptr); if (_this->_impl_.schema_ == nullptr) { _this->_impl_.schema_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.schema_); @@ -4525,13 +8295,23 @@ void Response::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google _this->_impl_.schema_->MergeFrom(*from._impl_.schema_); } } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_impl_.headers_.MergeFrom(from._impl_.headers_); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_impl_.examples_.MergeFrom(from._impl_.examples_); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Response::CopyFrom(const Response& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Response) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Response) if (&from == this) return; Clear(); MergeFrom(from); @@ -4544,11 +8324,11 @@ void Response::InternalSwap(Response* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) 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_, &other->_impl_.description_, arena); + swap(_impl_.schema_, other->_impl_.schema_); _impl_.headers_.InternalSwap(&other->_impl_.headers_); _impl_.examples_.InternalSwap(&other->_impl_.examples_); _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); - ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); - swap(_impl_.schema_, other->_impl_.schema_); } ::google::protobuf::Metadata Response::GetMetadata() const { @@ -4557,119 +8337,51 @@ ::google::protobuf::Metadata Response::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() - : SuperType(Info_ExtensionsEntry_DoNotUse_class_data_.base()) {} +Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() : SuperType(Info_ExtensionsEntry_DoNotUse_get_class_data()) {} Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Info_ExtensionsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Info_ExtensionsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse() : SuperType() {} Info_ExtensionsEntry_DoNotUse::Info_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Info_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto Info_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Info_ExtensionsEntry_DoNotUse), - alignof(Info_ExtensionsEntry_DoNotUse)); -} -constexpr auto Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Info_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Info_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Info_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&Info_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Info_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Info_ExtensionsEntry_DoNotUse_class_data_ = - Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + Info_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(Info_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Info_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Info_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Info_ExtensionsEntry_DoNotUse_class_data_.tc_table); return Info_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 74, 2> -Info_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_._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), - Info_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Info_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(Info_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\76\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Info.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Info_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Info_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Info_ExtensionsEntry_DoNotUse_globals_)); + return Info_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Info_ExtensionsEntry_DoNotUse::ParseTableT_ + Info_ExtensionsEntry_DoNotUse::_table_ = + Info_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(Info_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class Info::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Info, _impl_._has_bits_); -}; - void Info::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000040U); } Info::Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Info_class_data_.base()) { + : ::google::protobuf::Message(arena, Info_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4677,22 +8389,29 @@ Info::Info(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Info& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Info& from_msg) : _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_) {} + version_(arena, from.version_), + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Info, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() + , from.extensions_ + } + {} Info::Info( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Info& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Info_class_data_.base()) { + : ::google::protobuf::Message(arena, Info_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -4702,102 +8421,62 @@ Info::Info( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.contact_ = ((cached_has_bits & 0x00000010u) != 0) + _impl_.contact_ = (CheckHasBit(cached_has_bits, 0x00000010U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.contact_) : nullptr; - _impl_.license_ = ((cached_has_bits & 0x00000020u) != 0) + _impl_.license_ = (CheckHasBit(cached_has_bits, 0x00000020U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.license_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Info) } PROTOBUF_NDEBUG_INLINE Info::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - extensions_{visibility, arena}, title_(arena), description_(arena), terms_of_service_(arena), - version_(arena) {} + version_(arena), + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Info, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Info, _impl_.extensions_)>() + } + {} inline void Info::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::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) - SharedDtor(*this); -} -inline void Info::SharedDtor(MessageLite& self) { - Info& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.title_.Destroy(); - this_._impl_.description_.Destroy(); - this_._impl_.terms_of_service_.Destroy(); - this_._impl_.version_.Destroy(); - delete this_._impl_.contact_; - delete this_._impl_.license_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Info::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Info(arena); -} -constexpr auto Info::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_) + - decltype(Info::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Info, _impl_.extensions_) + - decltype(Info::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Info), alignof(Info), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Info::PlacementNew_, - sizeof(Info), - alignof(Info)); - } -} -constexpr auto Info::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Info_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Info::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Info::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Info::ByteSizeLong, - &Info::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Info, _impl_._cached_size_), - false, - }, - &Info::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; +Info::~Info() { + // @@protoc_insertion_point(destructor:grpc.gateway.protoc_gen_openapiv2.options.Info) + SharedDtor(*this); +} +inline void Info::SharedDtor(MessageLite& self) { + Info& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.title_.Destroy(); + this_._impl_.description_.Destroy(); + this_._impl_.terms_of_service_.Destroy(); + this_._impl_.version_.Destroy(); + delete this_._impl_.contact_; + delete this_._impl_.license_; + this_._impl_.~Impl_(); } +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Info_class_data_ = - Info::InternalGenerateClassData_(); + Info::InternalGenerateClassData_(Info_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Info::GetClassData() const { @@ -4805,89 +8484,21 @@ Info::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Info_class_data_.tc_table); return Info_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.title_)}}, - // string description = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.description_)}}, - // string terms_of_service = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - {::_pbi::TcParser::FastMtS1, - {34, 4, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - {::_pbi::TcParser::FastMtS1, - {42, 5, 1, PROTOBUF_FIELD_OFFSET(Info, _impl_.license_)}}, - // string version = 6; - {::_pbi::TcParser::FastUS1, - {50, 3, 0, PROTOBUF_FIELD_OFFSET(Info, _impl_.version_)}}, - {::_pbi::TcParser::MiniParse, {}}, - }}, {{ - 65535, 65535 - }}, {{ - // string title = 1; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.title_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 2; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.description_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string terms_of_service = 3; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.terms_of_service_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_), _Internal::kHasBitsOffset + 4, 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 + 5, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string version = 6; - {PROTOBUF_FIELD_OFFSET(Info, _impl_.version_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Info::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Info_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Info_globals_)); + return Info_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Info::ParseTableT_ + Info::_table_ = + Info::InternalGenerateParseTable_(Info_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Info::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -4895,29 +8506,31 @@ PROTOBUF_NOINLINE void Info::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.title_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.terms_of_service_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.version_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { ABSL_DCHECK(_impl_.contact_ != nullptr); _impl_.contact_->Clear(); } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { ABSL_DCHECK(_impl_.license_ != nullptr); _impl_.license_->Clear(); } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _impl_.extensions_.Clear(); + } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -4934,12 +8547,16 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Info& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Info) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string title = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_title().empty()) { const ::std::string& _s = this_._internal_title(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4949,7 +8566,7 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // string description = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4959,7 +8576,7 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // string terms_of_service = 3; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_terms_of_service().empty()) { const ::std::string& _s = this_._internal_terms_of_service(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4968,23 +8585,22 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 4, *this_._impl_.contact_, this_._impl_.contact_->GetCachedSize(), target, stream); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5, *this_._impl_.license_, this_._impl_.license_->GetCachedSize(), target, stream); } // string version = 6; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_version().empty()) { const ::std::string& _s = this_._internal_version(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -4994,28 +8610,30 @@ ::uint8_t* PROTOBUF_NONNULL Info::_InternalSerialize( } // map extensions = 7; - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 7, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -5044,76 +8662,77 @@ ::size_t Info::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // map extensions = 7; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { // string title = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_title().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_title()); } } // string description = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string terms_of_service = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_terms_of_service().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_terms_of_service()); } } // string version = 6; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_version().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_version()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Contact contact = 4; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.contact_); } // .grpc.gateway.protoc_gen_openapiv2.options.License license = 5; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.license_); } + // map extensions = 7; + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000003fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000007fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_title().empty()) { _this->_internal_set_title(from._internal_title()); } else { @@ -5122,7 +8741,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -5131,7 +8750,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_terms_of_service().empty()) { _this->_internal_set_terms_of_service(from._internal_terms_of_service()); } else { @@ -5140,7 +8759,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_version().empty()) { _this->_internal_set_version(from._internal_version()); } else { @@ -5149,7 +8768,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr } } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { ABSL_DCHECK(from._impl_.contact_ != nullptr); if (_this->_impl_.contact_ == nullptr) { _this->_impl_.contact_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.contact_); @@ -5157,7 +8776,7 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr _this->_impl_.contact_->MergeFrom(*from._impl_.contact_); } } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { ABSL_DCHECK(from._impl_.license_ != nullptr); if (_this->_impl_.license_ == nullptr) { _this->_impl_.license_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.license_); @@ -5165,13 +8784,17 @@ void Info::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pr _this->_impl_.license_->MergeFrom(*from._impl_.license_); } } + if (CheckHasBit(cached_has_bits, 0x00000040U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Info::CopyFrom(const Info& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Info) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Info) if (&from == this) return; Clear(); MergeFrom(from); @@ -5184,7 +8807,6 @@ void Info::InternalSwap(Info* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { 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_, &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); @@ -5195,6 +8817,7 @@ void Info::InternalSwap(Info* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { - PROTOBUF_FIELD_OFFSET(Info, _impl_.contact_)>( reinterpret_cast(&_impl_.contact_), reinterpret_cast(&other->_impl_.contact_)); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata Info::GetMetadata() const { @@ -5202,17 +8825,9 @@ ::google::protobuf::Metadata Info::GetMetadata() const { } // =================================================================== -class Contact::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Contact, _impl_._has_bits_); -}; - Contact::Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Contact_class_data_.base()) { + : ::google::protobuf::Message(arena, Contact_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5220,9 +8835,9 @@ Contact::Contact(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Contact& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), @@ -5233,7 +8848,8 @@ Contact::Contact( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Contact& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Contact_class_data_.base()) { + : ::google::protobuf::Message(arena, Contact_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5246,8 +8862,8 @@ Contact::Contact( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Contact) } PROTOBUF_NDEBUG_INLINE Contact::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), url_(arena), @@ -5262,6 +8878,9 @@ Contact::~Contact() { } inline void Contact::SharedDtor(MessageLite& self) { Contact& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -5270,41 +8889,10 @@ inline void Contact::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Contact::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Contact(arena); -} -constexpr auto Contact::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Contact), - alignof(Contact)); -} -constexpr auto Contact::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Contact_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Contact::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Contact::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Contact::ByteSizeLong, - &Contact::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Contact, _impl_._cached_size_), - false, - }, - &Contact::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Contact_class_data_ = - Contact::InternalGenerateClassData_(); + Contact::InternalGenerateClassData_(Contact_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Contact::GetClassData() const { @@ -5312,58 +8900,21 @@ Contact::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Contact_class_data_.tc_table); return Contact_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<2, 3, 0, 70, 2> -Contact::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Contact, _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 - 0, // num_aux_entries - offsetof(decltype(_table_), field_names), // no aux_entries - Contact_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_)}}, - // string url = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_)}}, - // string email = 3; - {::_pbi::TcParser::FastUS1, - {26, 2, 0, PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string email = 3; - {PROTOBUF_FIELD_OFFSET(Contact, _impl_.email_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Contact::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Contact_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Contact_globals_)); + return Contact_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Contact::ParseTableT_ + Contact::_table_ = + Contact::InternalGenerateParseTable_(Contact_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Contact::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5372,14 +8923,14 @@ PROTOBUF_NOINLINE void Contact::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.name_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.url_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.email_.ClearNonDefaultToEmpty(); } } @@ -5398,12 +8949,16 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Contact& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -5413,7 +8968,7 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( } // string url = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -5423,7 +8978,7 @@ ::uint8_t* PROTOBUF_NONNULL Contact::_InternalSerialize( } // string email = 3; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_email().empty()) { const ::std::string& _s = this_._internal_email(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -5457,23 +9012,23 @@ ::size_t Contact::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { // string name = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string url = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); } } // string email = 3; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_email().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_email()); @@ -5484,17 +9039,21 @@ ::size_t Contact::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000007u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000007U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -5503,7 +9062,7 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -5512,7 +9071,7 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_email().empty()) { _this->_internal_set_email(from._internal_email()); } else { @@ -5523,11 +9082,12 @@ void Contact::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Contact::CopyFrom(const Contact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Contact) if (&from == this) return; Clear(); MergeFrom(from); @@ -5550,17 +9110,9 @@ ::google::protobuf::Metadata Contact::GetMetadata() const { } // =================================================================== -class License::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(License, _impl_._has_bits_); -}; - License::License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, License_class_data_.base()) { + : ::google::protobuf::Message(arena, License_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5568,9 +9120,9 @@ License::License(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::License& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::License& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, name_(arena, from.name_), @@ -5580,7 +9132,8 @@ License::License( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const License& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, License_class_data_.base()) { + : ::google::protobuf::Message(arena, License_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5593,8 +9146,8 @@ License::License( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.License) } PROTOBUF_NDEBUG_INLINE License::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, name_(arena), url_(arena) {} @@ -5608,6 +9161,9 @@ License::~License() { } inline void License::SharedDtor(MessageLite& self) { License& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.name_.Destroy(); @@ -5615,41 +9171,10 @@ inline void License::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL License::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) License(arena); -} -constexpr auto License::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(License), - alignof(License)); -} -constexpr auto License::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_License_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &License::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &License::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &License::ByteSizeLong, - &License::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(License, _impl_._cached_size_), - false, - }, - &License::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull License_class_data_ = - License::InternalGenerateClassData_(); + License::InternalGenerateClassData_(License_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL License::GetClassData() const { @@ -5657,50 +9182,21 @@ License::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(License_class_data_.tc_table); return License_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 65, 2> -License::_table_ = { - { - PROTOBUF_FIELD_OFFSET(License, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.url_)}}, - // string name = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(License, _impl_.name_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string name = 1; - {PROTOBUF_FIELD_OFFSET(License, _impl_.name_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(License, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\61\4\3\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.License" - "name" - "url" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +License::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&License_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&License_globals_)); + return License_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const License::ParseTableT_ + License::_table_ = + License::InternalGenerateParseTable_(License_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void License::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.License) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -5709,11 +9205,11 @@ PROTOBUF_NOINLINE void License::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.name_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.url_.ClearNonDefaultToEmpty(); } } @@ -5732,12 +9228,16 @@ ::uint8_t* PROTOBUF_NONNULL License::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const License& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.License) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string name = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -5747,7 +9247,7 @@ ::uint8_t* PROTOBUF_NONNULL License::_InternalSerialize( } // string url = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -5781,16 +9281,16 @@ ::size_t License::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string name = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string url = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); @@ -5801,17 +9301,21 @@ ::size_t License::ByteSizeLong() const { &this_._impl_._cached_size_); } -void License::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -5820,7 +9324,7 @@ void License::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -5831,11 +9335,12 @@ void License::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google: } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void License::CopyFrom(const License& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.License) if (&from == this) return; Clear(); MergeFrom(from); @@ -5857,17 +9362,9 @@ ::google::protobuf::Metadata License::GetMetadata() const { } // =================================================================== -class ExternalDocumentation::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._has_bits_); -}; - ExternalDocumentation::ExternalDocumentation(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ExternalDocumentation_class_data_.base()) { + : ::google::protobuf::Message(arena, ExternalDocumentation_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5875,9 +9372,9 @@ ExternalDocumentation::ExternalDocumentation(::google::protobuf::Arena* PROTOBUF // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::ExternalDocumentation& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_), @@ -5887,7 +9384,8 @@ ExternalDocumentation::ExternalDocumentation( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const ExternalDocumentation& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, ExternalDocumentation_class_data_.base()) { + : ::google::protobuf::Message(arena, ExternalDocumentation_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -5900,8 +9398,8 @@ ExternalDocumentation::ExternalDocumentation( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) } PROTOBUF_NDEBUG_INLINE ExternalDocumentation::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena), url_(arena) {} @@ -5915,6 +9413,9 @@ ExternalDocumentation::~ExternalDocumentation() { } inline void ExternalDocumentation::SharedDtor(MessageLite& self) { ExternalDocumentation& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -5922,41 +9423,10 @@ inline void ExternalDocumentation::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL ExternalDocumentation::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) ExternalDocumentation(arena); -} -constexpr auto ExternalDocumentation::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(ExternalDocumentation), - alignof(ExternalDocumentation)); -} -constexpr auto ExternalDocumentation::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_ExternalDocumentation_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &ExternalDocumentation::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &ExternalDocumentation::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &ExternalDocumentation::ByteSizeLong, - &ExternalDocumentation::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._cached_size_), - false, - }, - &ExternalDocumentation::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull ExternalDocumentation_class_data_ = - ExternalDocumentation::InternalGenerateClassData_(); + ExternalDocumentation::InternalGenerateClassData_(ExternalDocumentation_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL ExternalDocumentation::GetClassData() const { @@ -5964,50 +9434,21 @@ ExternalDocumentation::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(ExternalDocumentation_class_data_.tc_table); return ExternalDocumentation_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 86, 2> -ExternalDocumentation::_table_ = { - { - PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 1, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_)}}, - // string description = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 1; - {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string url = 2; - {PROTOBUF_FIELD_OFFSET(ExternalDocumentation, _impl_.url_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\77\13\3\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation" - "description" - "url" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +ExternalDocumentation::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&ExternalDocumentation_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&ExternalDocumentation_globals_)); + return ExternalDocumentation_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ExternalDocumentation::ParseTableT_ + ExternalDocumentation::_table_ = + ExternalDocumentation::InternalGenerateParseTable_(ExternalDocumentation_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void ExternalDocumentation::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6016,11 +9457,11 @@ PROTOBUF_NOINLINE void ExternalDocumentation::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.url_.ClearNonDefaultToEmpty(); } } @@ -6039,12 +9480,16 @@ ::uint8_t* PROTOBUF_NONNULL ExternalDocumentation::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const ExternalDocumentation& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string description = 1; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6054,7 +9499,7 @@ ::uint8_t* PROTOBUF_NONNULL ExternalDocumentation::_InternalSerialize( } // string url = 2; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { const ::std::string& _s = this_._internal_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6088,16 +9533,16 @@ ::size_t ExternalDocumentation::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string description = 1; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string url = 2; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_url()); @@ -6108,17 +9553,21 @@ ::size_t ExternalDocumentation::ByteSizeLong() const { &this_._impl_._cached_size_); } -void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -6127,7 +9576,7 @@ void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_url().empty()) { _this->_internal_set_url(from._internal_url()); } else { @@ -6138,11 +9587,12 @@ void ExternalDocumentation::MergeImpl(::google::protobuf::MessageLite& to_msg, c } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void ExternalDocumentation::CopyFrom(const ExternalDocumentation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation) if (&from == this) return; Clear(); MergeFrom(from); @@ -6164,17 +9614,9 @@ ::google::protobuf::Metadata ExternalDocumentation::GetMetadata() const { } // =================================================================== -class Schema::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Schema, _impl_._has_bits_); -}; - Schema::Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Schema_class_data_.base()) { + : ::google::protobuf::Message(arena, Schema_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6182,9 +9624,9 @@ Schema::Schema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Schema& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, discriminator_(arena, from.discriminator_), @@ -6194,7 +9636,8 @@ Schema::Schema( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Schema& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Schema_class_data_.base()) { + : ::google::protobuf::Message(arena, Schema_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6204,10 +9647,10 @@ Schema::Schema( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.json_schema_ = ((cached_has_bits & 0x00000004u) != 0) + _impl_.json_schema_ = (CheckHasBit(cached_has_bits, 0x00000004U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.json_schema_) : nullptr; - _impl_.external_docs_ = ((cached_has_bits & 0x00000008u) != 0) + _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000008U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; _impl_.read_only_ = from._impl_.read_only_; @@ -6215,15 +9658,15 @@ Schema::Schema( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Schema) } PROTOBUF_NDEBUG_INLINE Schema::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, discriminator_(arena), example_(arena) {} inline void Schema::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, json_schema_), 0, offsetof(Impl_, read_only_) - @@ -6236,50 +9679,22 @@ Schema::~Schema() { } inline void Schema::SharedDtor(MessageLite& self) { Schema& this_ = static_cast(self); - this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); - ABSL_DCHECK(this_.GetArena() == nullptr); - this_._impl_.discriminator_.Destroy(); - this_._impl_.example_.Destroy(); - delete this_._impl_.json_schema_; - delete this_._impl_.external_docs_; - this_._impl_.~Impl_(); -} - -inline void* PROTOBUF_NONNULL Schema::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Schema(arena); -} -constexpr auto Schema::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Schema), - alignof(Schema)); -} -constexpr auto Schema::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Schema_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Schema::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Schema::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Schema::ByteSizeLong, - &Schema::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Schema, _impl_._cached_size_), - false, - }, - &Schema::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } + this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); + ABSL_DCHECK(this_.GetArena() == nullptr); + this_._impl_.discriminator_.Destroy(); + this_._impl_.example_.Destroy(); + delete this_._impl_.json_schema_; + delete this_._impl_.external_docs_; + this_._impl_.~Impl_(); } +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Schema_class_data_ = - Schema::InternalGenerateClassData_(); + Schema::InternalGenerateClassData_(Schema_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Schema::GetClassData() const { @@ -6287,74 +9702,21 @@ Schema::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Schema_class_data_.tc_table); return Schema_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 2, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.json_schema_)}}, - // string discriminator = 2; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_)}}, - // bool read_only = 3; - {::_pbi::TcParser::SingularVarintNoZag1(), - {24, 4, 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, 3, 1, PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_)}}, - // string example = 6; - {::_pbi::TcParser::FastUS1, - {50, 1, 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 + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string discriminator = 2; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.discriminator_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool read_only = 3; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.read_only_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.external_docs_), _Internal::kHasBitsOffset + 3, 1, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - // string example = 6; - {PROTOBUF_FIELD_OFFSET(Schema, _impl_.example_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Schema::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Schema_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Schema_globals_)); + return Schema_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Schema::ParseTableT_ + Schema::_table_ = + Schema::InternalGenerateParseTable_(Schema_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Schema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6363,18 +9725,18 @@ PROTOBUF_NOINLINE void Schema::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000000fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000000fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.discriminator_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.example_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(_impl_.json_schema_ != nullptr); _impl_.json_schema_->Clear(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } @@ -6395,20 +9757,23 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Schema& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1, *this_._impl_.json_schema_, this_._impl_.json_schema_->GetCachedSize(), target, stream); } // string discriminator = 2; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_discriminator().empty()) { const ::std::string& _s = this_._internal_discriminator(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6418,7 +9783,7 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( } // bool read_only = 3; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_read_only() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -6427,14 +9792,14 @@ ::uint8_t* PROTOBUF_NONNULL Schema::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 5, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); } // string example = 6; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_example().empty()) { const ::std::string& _s = this_._internal_example(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6468,33 +9833,33 @@ ::size_t Schema::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { // string discriminator = 2; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_discriminator().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_discriminator()); } } // string example = 6; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_example().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_example()); } } // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema json_schema = 1; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.json_schema_); } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 5; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } // bool read_only = 3; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (this_._internal_read_only() != 0) { total_size += 2; } @@ -6504,18 +9869,22 @@ ::size_t Schema::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_discriminator().empty()) { _this->_internal_set_discriminator(from._internal_discriminator()); } else { @@ -6524,7 +9893,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_example().empty()) { _this->_internal_set_example(from._internal_example()); } else { @@ -6533,7 +9902,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { ABSL_DCHECK(from._impl_.json_schema_ != nullptr); if (_this->_impl_.json_schema_ == nullptr) { _this->_impl_.json_schema_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.json_schema_); @@ -6541,7 +9910,7 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: _this->_impl_.json_schema_->MergeFrom(*from._impl_.json_schema_); } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -6549,18 +9918,19 @@ void Schema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google:: _this->_impl_.external_docs_->MergeFrom(*from._impl_.external_docs_); } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (from._internal_read_only() != 0) { _this->_impl_.read_only_ = from._impl_.read_only_; } } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Schema::CopyFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Schema) if (&from == this) return; Clear(); MergeFrom(from); @@ -6588,17 +9958,9 @@ ::google::protobuf::Metadata Schema::GetMetadata() const { } // =================================================================== -class JSONSchema_FieldConfiguration::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._has_bits_); -}; - JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_class_data_.base()) { + : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6606,9 +9968,9 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration(::google::protobuf: // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, path_param_name_(arena, from.path_param_name_) {} @@ -6617,7 +9979,8 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema_FieldConfiguration& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_class_data_.base()) { + : ::google::protobuf::Message(arena, JSONSchema_FieldConfiguration_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6630,8 +9993,8 @@ JSONSchema_FieldConfiguration::JSONSchema_FieldConfiguration( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) } PROTOBUF_NDEBUG_INLINE JSONSchema_FieldConfiguration::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, path_param_name_(arena) {} @@ -6644,47 +10007,19 @@ JSONSchema_FieldConfiguration::~JSONSchema_FieldConfiguration() { } inline void JSONSchema_FieldConfiguration::SharedDtor(MessageLite& self) { JSONSchema_FieldConfiguration& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.path_param_name_.Destroy(); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema_FieldConfiguration(arena); -} -constexpr auto JSONSchema_FieldConfiguration::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_FieldConfiguration), - alignof(JSONSchema_FieldConfiguration)); -} -constexpr auto JSONSchema_FieldConfiguration::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_JSONSchema_FieldConfiguration_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &JSONSchema_FieldConfiguration::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema_FieldConfiguration::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &JSONSchema_FieldConfiguration::ByteSizeLong, - &JSONSchema_FieldConfiguration::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._cached_size_), - false, - }, - &JSONSchema_FieldConfiguration::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_FieldConfiguration_class_data_ = - JSONSchema_FieldConfiguration::InternalGenerateClassData_(); + JSONSchema_FieldConfiguration::InternalGenerateClassData_(JSONSchema_FieldConfiguration_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::GetClassData() const { @@ -6692,45 +10027,21 @@ JSONSchema_FieldConfiguration::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_FieldConfiguration_class_data_.tc_table); return JSONSchema_FieldConfiguration_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<0, 1, 0, 95, 7> -JSONSchema_FieldConfiguration::_table_ = { - { - PROTOBUF_FIELD_OFFSET(JSONSchema_FieldConfiguration, _impl_._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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 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_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +JSONSchema_FieldConfiguration::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_FieldConfiguration_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_FieldConfiguration_globals_)); + return JSONSchema_FieldConfiguration_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema_FieldConfiguration::ParseTableT_ + JSONSchema_FieldConfiguration::_table_ = + JSONSchema_FieldConfiguration::InternalGenerateParseTable_(JSONSchema_FieldConfiguration_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void JSONSchema_FieldConfiguration::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -6739,7 +10050,7 @@ PROTOBUF_NOINLINE void JSONSchema_FieldConfiguration::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.path_param_name_.ClearNonDefaultToEmpty(); } _impl_._has_bits_.Clear(); @@ -6757,12 +10068,16 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema_FieldConfiguration::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const JSONSchema_FieldConfiguration& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@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; + cached_has_bits = this_._impl_._has_bits_[0]; // string path_param_name = 47; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_path_param_name().empty()) { const ::std::string& _s = this_._internal_path_param_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -6797,7 +10112,7 @@ ::size_t JSONSchema_FieldConfiguration::ByteSizeLong() const { { // string path_param_name = 47; cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_path_param_name().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_path_param_name()); @@ -6808,16 +10123,20 @@ ::size_t JSONSchema_FieldConfiguration::ByteSizeLong() const { &this_._impl_._cached_size_); } -void JSONSchema_FieldConfiguration::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_path_param_name().empty()) { _this->_internal_set_path_param_name(from._internal_path_param_name()); } else { @@ -6827,11 +10146,12 @@ void JSONSchema_FieldConfiguration::MergeImpl(::google::protobuf::MessageLite& t } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::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) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration) if (&from == this) return; Clear(); MergeFrom(from); @@ -6853,119 +10173,51 @@ ::google::protobuf::Metadata JSONSchema_FieldConfiguration::GetMetadata() const // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() - : SuperType(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) {} +JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() : SuperType(JSONSchema_ExtensionsEntry_DoNotUse_get_class_data()) {} JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, JSONSchema_ExtensionsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse() : SuperType() {} JSONSchema_ExtensionsEntry_DoNotUse::JSONSchema_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(JSONSchema_ExtensionsEntry_DoNotUse), - alignof(JSONSchema_ExtensionsEntry_DoNotUse)); -} -constexpr auto JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_JSONSchema_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &JSONSchema_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&JSONSchema_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &JSONSchema_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_ExtensionsEntry_DoNotUse_class_data_ = - JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(JSONSchema_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.tc_table); return JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 80, 2> -JSONSchema_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_._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), - JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(JSONSchema_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\104\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +JSONSchema_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_ExtensionsEntry_DoNotUse_globals_)); + return JSONSchema_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema_ExtensionsEntry_DoNotUse::ParseTableT_ + JSONSchema_ExtensionsEntry_DoNotUse::_table_ = + JSONSchema_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(JSONSchema_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -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_); -}; - void JSONSchema::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x02000000U); } JSONSchema::JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_class_data_.base()) { + : ::google::protobuf::Message(arena, JSONSchema_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -6973,30 +10225,61 @@ JSONSchema::JSONSchema(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) } PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, - required_{visibility, arena, from.required_}, - array_{visibility, arena, from.array_}, - type_{visibility, arena, from.type_}, + required_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() + , from.required_ + } + , + array_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() + , from.array_ + } + , + type_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() + , from.type_ + } + , _type_cached_byte_size_{0}, - enum__{visibility, arena, from.enum__}, - extensions_{visibility, arena, from.extensions_}, + enum__ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() + , from.enum__ + } + , 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_) {} + format_(arena, from.format_), + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() + , from.extensions_ + } + {} JSONSchema::JSONSchema( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const JSONSchema& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, JSONSchema_class_data_.base()) { + : ::google::protobuf::Message(arena, JSONSchema_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -7006,12 +10289,12 @@ JSONSchema::JSONSchema( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.field_configuration_ = ((cached_has_bits & 0x00000080u) != 0) + _impl_.field_configuration_ = (CheckHasBit(cached_has_bits, 0x00000800U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.field_configuration_) : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, multiple_of_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, multiple_of_), offsetof(Impl_, unique_items_) - offsetof(Impl_, multiple_of_) + @@ -7020,26 +10303,46 @@ JSONSchema::JSONSchema( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) } PROTOBUF_NDEBUG_INLINE JSONSchema::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - required_{visibility, arena}, - array_{visibility, arena}, - type_{visibility, arena}, + required_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.required_)>() + } + , + array_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.array_)>() + } + , + type_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.type_)>() + } + , _type_cached_byte_size_{0}, - enum__{visibility, arena}, - extensions_{visibility, arena}, + enum__ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.enum__)>() + } + , ref_(arena), title_(arena), description_(arena), default__(arena), example_(arena), pattern_(arena), - format_(arena) {} + format_(arena), + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema, _impl_.extensions_)>() + } + {} inline void JSONSchema::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, field_configuration_), 0, offsetof(Impl_, unique_items_) - @@ -7052,6 +10355,9 @@ JSONSchema::~JSONSchema() { } inline void JSONSchema::SharedDtor(MessageLite& self) { JSONSchema& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.ref_.Destroy(); @@ -7065,73 +10371,10 @@ inline void JSONSchema::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL JSONSchema::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) JSONSchema(arena); -} -constexpr auto JSONSchema::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.required_) + - decltype(JSONSchema::_impl_.required_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.array_) + - decltype(JSONSchema::_impl_.array_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.type_) + - decltype(JSONSchema::_impl_.type_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.enum__) + - decltype(JSONSchema::_impl_.enum__):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_) + - decltype(JSONSchema::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.extensions_) + - decltype(JSONSchema::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(JSONSchema), alignof(JSONSchema), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&JSONSchema::PlacementNew_, - sizeof(JSONSchema), - alignof(JSONSchema)); - } -} -constexpr auto JSONSchema::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_JSONSchema_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &JSONSchema::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &JSONSchema::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &JSONSchema::ByteSizeLong, - &JSONSchema::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_._cached_size_), - false, - }, - &JSONSchema::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull JSONSchema_class_data_ = - JSONSchema::InternalGenerateClassData_(); + JSONSchema::InternalGenerateClassData_(JSONSchema_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL JSONSchema::GetClassData() const { @@ -7139,213 +10382,21 @@ JSONSchema::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(JSONSchema_class_data_.tc_table); return JSONSchema_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.ref_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // string title = 5; - {::_pbi::TcParser::FastUS1, - {42, 1, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_)}}, - // string description = 6; - {::_pbi::TcParser::FastUS1, - {50, 2, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_)}}, - // string default = 7; - {::_pbi::TcParser::FastUS1, - {58, 3, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__)}}, - // bool read_only = 8; - {::_pbi::TcParser::SingularVarintNoZag1(), - {64, 17, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_)}}, - // string example = 9; - {::_pbi::TcParser::FastUS1, - {74, 4, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_)}}, - // double multiple_of = 10; - {::_pbi::TcParser::FastF64S1, - {81, 8, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_)}}, - // double maximum = 11; - {::_pbi::TcParser::FastF64S1, - {89, 9, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_)}}, - // bool exclusive_maximum = 12; - {::_pbi::TcParser::SingularVarintNoZag1(), - {96, 18, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_)}}, - // double minimum = 13; - {::_pbi::TcParser::FastF64S1, - {105, 10, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_)}}, - // bool exclusive_minimum = 14; - {::_pbi::TcParser::SingularVarintNoZag1(), - {112, 19, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_)}}, - // uint64 max_length = 15; - {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(JSONSchema, _impl_.max_length_), 11>(), - {120, 11, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_)}}, - // uint64 min_length = 16; - {::_pbi::TcParser::FastV64S2, - {384, 12, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_)}}, - // string pattern = 17; - {::_pbi::TcParser::FastUS2, - {394, 5, 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, 13, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_)}}, - // uint64 min_items = 21; - {::_pbi::TcParser::FastV64S2, - {424, 14, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_)}}, - // bool unique_items = 22; - {::_pbi::TcParser::FastV8S2, - {432, 20, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_)}}, - {::_pbi::TcParser::MiniParse, {}}, - // uint64 max_properties = 24; - {::_pbi::TcParser::FastV64S2, - {448, 15, 0, PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_)}}, - // uint64 min_properties = 25; - {::_pbi::TcParser::FastV64S2, - {456, 16, 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_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string title = 5; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.title_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string description = 6; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.description_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string default = 7; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.default__), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // bool read_only = 8; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.read_only_), _Internal::kHasBitsOffset + 17, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // string example = 9; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.example_), _Internal::kHasBitsOffset + 4, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // double multiple_of = 10; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.multiple_of_), _Internal::kHasBitsOffset + 8, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // double maximum = 11; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.maximum_), _Internal::kHasBitsOffset + 9, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // bool exclusive_maximum = 12; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_maximum_), _Internal::kHasBitsOffset + 18, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // double minimum = 13; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.minimum_), _Internal::kHasBitsOffset + 10, 0, - (0 | ::_fl::kFcOptional | ::_fl::kDouble)}, - // bool exclusive_minimum = 14; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.exclusive_minimum_), _Internal::kHasBitsOffset + 19, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint64 max_length = 15; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_length_), _Internal::kHasBitsOffset + 11, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_length = 16; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_length_), _Internal::kHasBitsOffset + 12, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // string pattern = 17; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.pattern_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // uint64 max_items = 20; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_items_), _Internal::kHasBitsOffset + 13, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_items = 21; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_items_), _Internal::kHasBitsOffset + 14, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // bool unique_items = 22; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.unique_items_), _Internal::kHasBitsOffset + 20, 0, - (0 | ::_fl::kFcOptional | ::_fl::kBool)}, - // uint64 max_properties = 24; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.max_properties_), _Internal::kHasBitsOffset + 15, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUInt64)}, - // uint64 min_properties = 25; - {PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.min_properties_), _Internal::kHasBitsOffset + 16, 0, - (0 | ::_fl::kFcOptional | ::_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_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_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, 1, - (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 + 7, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::JSONSchema_FieldConfiguration>()}, - {::_pbi::TcParser::GetMapAuxInfo(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +JSONSchema::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&JSONSchema_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&JSONSchema_globals_)); + return JSONSchema_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const JSONSchema::ParseTableT_ + JSONSchema::_table_ = + JSONSchema::InternalGenerateParseTable_(JSONSchema_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void JSONSchema::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -7353,48 +10404,63 @@ PROTOBUF_NOINLINE void JSONSchema::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.required_.Clear(); - _impl_.array_.Clear(); - _impl_.type_.Clear(); - _impl_.enum__.Clear(); - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x000000ffu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.required_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _impl_.array_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _impl_.type_.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _impl_.enum__.Clear(); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { _impl_.ref_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { _impl_.title_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { _impl_.default__.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000010u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00000f00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { _impl_.example_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { _impl_.pattern_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { _impl_.format_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { ABSL_DCHECK(_impl_.field_configuration_ != nullptr); _impl_.field_configuration_->Clear(); } } - if ((cached_has_bits & 0x0000ff00u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000f000U)) { ::memset(&_impl_.multiple_of_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.max_properties_) - - reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.max_properties_)); + reinterpret_cast(&_impl_.max_length_) - + reinterpret_cast(&_impl_.multiple_of_)) + sizeof(_impl_.max_length_)); } - if ((cached_has_bits & 0x001f0000u) != 0) { - ::memset(&_impl_.min_properties_, 0, static_cast<::size_t>( - reinterpret_cast(&_impl_.unique_items_) - - reinterpret_cast(&_impl_.min_properties_)) + sizeof(_impl_.unique_items_)); + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + ::memset(&_impl_.min_length_, 0, static_cast<::size_t>( + reinterpret_cast(&_impl_.exclusive_minimum_) - + reinterpret_cast(&_impl_.min_length_)) + sizeof(_impl_.exclusive_minimum_)); + } + if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { + _impl_.unique_items_ = false; + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + _impl_.extensions_.Clear(); + } } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); @@ -7411,12 +10477,16 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const JSONSchema& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string ref = 3; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_ref().empty()) { const ::std::string& _s = this_._internal_ref(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7426,7 +10496,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string title = 5; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_title().empty()) { const ::std::string& _s = this_._internal_title(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7436,7 +10506,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string description = 6; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7446,7 +10516,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string default = 7; - if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!this_._internal_default_().empty()) { const ::std::string& _s = this_._internal_default_(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7456,7 +10526,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool read_only = 8; - if ((this_._impl_._has_bits_[0] & 0x00020000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_read_only() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -7465,7 +10535,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string example = 9; - if ((this_._impl_._has_bits_[0] & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (!this_._internal_example().empty()) { const ::std::string& _s = this_._internal_example(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7475,7 +10545,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double multiple_of = 10; - if ((this_._impl_._has_bits_[0] & 0x00000100u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_multiple_of()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -7484,7 +10554,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double maximum = 11; - if ((this_._impl_._has_bits_[0] & 0x00000200u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_maximum()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -7493,7 +10563,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool exclusive_maximum = 12; - if ((this_._impl_._has_bits_[0] & 0x00040000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_exclusive_maximum() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -7502,7 +10572,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // double minimum = 13; - if ((this_._impl_._has_bits_[0] & 0x00000400u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_minimum()) != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteDoubleToArray( @@ -7511,7 +10581,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool exclusive_minimum = 14; - if ((this_._impl_._has_bits_[0] & 0x00080000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_exclusive_minimum() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -7520,7 +10590,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_length = 15; - if ((this_._impl_._has_bits_[0] & 0x00000800u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_max_length() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7529,7 +10599,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_length = 16; - if ((this_._impl_._has_bits_[0] & 0x00001000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_min_length() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7538,7 +10608,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // string pattern = 17; - if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (!this_._internal_pattern().empty()) { const ::std::string& _s = this_._internal_pattern(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7548,7 +10618,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_items = 20; - if ((this_._impl_._has_bits_[0] & 0x00002000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_max_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7557,7 +10627,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_items = 21; - if ((this_._impl_._has_bits_[0] & 0x00004000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_min_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7566,7 +10636,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // bool unique_items = 22; - if ((this_._impl_._has_bits_[0] & 0x00100000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_unique_items() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteBoolToArray( @@ -7575,7 +10645,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 max_properties = 24; - if ((this_._impl_._has_bits_[0] & 0x00008000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (this_._internal_max_properties() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7584,7 +10654,7 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // uint64 min_properties = 25; - if ((this_._impl_._has_bits_[0] & 0x00010000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (this_._internal_min_properties() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteUInt64ToArray( @@ -7593,32 +10663,38 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // repeated string required = 26; - for (int i = 0, n = this_._internal_required_size(); i < n; ++i) { - 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); + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_required_size(); i < n; ++i) { + 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().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); + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + for (int i = 0, n = this_._internal_array_size(); i < n; ++i) { + 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; - { - ::size_t byte_size = this_._impl_._type_cached_byte_size_.Get(); - if (byte_size > 0) { - target = stream->WriteEnumPacked( - 35, this_._internal_type(), byte_size, target); + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + { + ::size_t byte_size = this_._impl_._type_cached_byte_size_.Get(); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 35, this_._internal_type(), byte_size, target); + } } } // string format = 36; - if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (!this_._internal_format().empty()) { const ::std::string& _s = this_._internal_format(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -7628,43 +10704,46 @@ ::uint8_t* PROTOBUF_NONNULL JSONSchema::_InternalSerialize( } // repeated string enum = 46; - for (int i = 0, n = this_._internal_enum__size(); i < n; ++i) { - 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); + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + for (int i = 0, n = this_._internal_enum__size(); i < n; ++i) { + 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 = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 48, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 1001, *this_._impl_.field_configuration_, this_._impl_.field_configuration_->GetCachedSize(), target, stream); @@ -7694,9 +10773,10 @@ ::size_t JSONSchema::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // repeated string required = 26; - { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_required().size()); for (int i = 0, n = this_._internal_required().size(); i < n; ++i) { @@ -7705,7 +10785,7 @@ ::size_t JSONSchema::ByteSizeLong() const { } } // repeated string array = 34; - { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_array().size()); for (int i = 0, n = this_._internal_array().size(); i < n; ++i) { @@ -7714,12 +10794,12 @@ ::size_t JSONSchema::ByteSizeLong() const { } } // repeated .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.JSONSchemaSimpleTypes type = 35; - { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { total_size += ::_pbi::WireFormatLite::EnumSizeWithPackedTagSize( this_._internal_type(), 2, this_._impl_._type_cached_byte_size_); } // repeated string enum = 46; - { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { total_size += 2 * ::google::protobuf::internal::FromIntSize(this_._internal_enum_().size()); for (int i = 0, n = this_._internal_enum_().size(); i < n; ++i) { @@ -7727,183 +10807,199 @@ ::size_t JSONSchema::ByteSizeLong() const { this_._internal_enum_().Get(i)); } } - // map extensions = 48; - { - total_size += - 2 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } - cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x000000ffu) != 0) { // string ref = 3; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!this_._internal_ref().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_ref()); } } // string title = 5; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!this_._internal_title().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_title()); } } // string description = 6; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string default = 7; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!this_._internal_default_().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_default_()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { // string example = 9; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (!this_._internal_example().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_example()); } } // string pattern = 17; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (!this_._internal_pattern().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_pattern()); } } // string format = 36; - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (!this_._internal_format().empty()) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_format()); } } // .grpc.gateway.protoc_gen_openapiv2.options.JSONSchema.FieldConfiguration field_configuration = 1001; - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { total_size += 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.field_configuration_); } - } - if ((cached_has_bits & 0x0000ff00u) != 0) { // double multiple_of = 10; - if ((cached_has_bits & 0x00000100u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_multiple_of()) != 0) { total_size += 9; } } // double maximum = 11; - if ((cached_has_bits & 0x00000200u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_maximum()) != 0) { total_size += 9; } } // double minimum = 13; - if ((cached_has_bits & 0x00000400u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (::absl::bit_cast<::uint64_t>(this_._internal_minimum()) != 0) { total_size += 9; } } // uint64 max_length = 15; - if ((cached_has_bits & 0x00000800u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (this_._internal_max_length() != 0) { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne( this_._internal_max_length()); } } + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { // uint64 min_length = 16; - if ((cached_has_bits & 0x00001000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (this_._internal_min_length() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_length()); } } // uint64 max_items = 20; - if ((cached_has_bits & 0x00002000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (this_._internal_max_items() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_max_items()); } } // uint64 min_items = 21; - if ((cached_has_bits & 0x00004000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (this_._internal_min_items() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_items()); } } // uint64 max_properties = 24; - if ((cached_has_bits & 0x00008000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (this_._internal_max_properties() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_max_properties()); } } - } - if ((cached_has_bits & 0x001f0000u) != 0) { // uint64 min_properties = 25; - if ((cached_has_bits & 0x00010000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (this_._internal_min_properties() != 0) { total_size += 2 + ::_pbi::WireFormatLite::UInt64Size( this_._internal_min_properties()); } } // bool read_only = 8; - if ((cached_has_bits & 0x00020000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (this_._internal_read_only() != 0) { total_size += 2; } } // bool exclusive_maximum = 12; - if ((cached_has_bits & 0x00040000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (this_._internal_exclusive_maximum() != 0) { total_size += 2; } } // bool exclusive_minimum = 14; - if ((cached_has_bits & 0x00080000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (this_._internal_exclusive_minimum() != 0) { total_size += 2; } } + } + if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { // bool unique_items = 22; - if ((cached_has_bits & 0x00100000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (this_._internal_unique_items() != 0) { total_size += 3; } } + // map extensions = 48; + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + total_size += + 2 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_required()->MergeFrom(from._internal_required()); - _this->_internal_mutable_array()->MergeFrom(from._internal_array()); - _this->_internal_mutable_type()->MergeFrom(from._internal_type()); - _this->_internal_mutable_enum_()->MergeFrom(from._internal_enum_()); - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x000000ffu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_required()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_required()); + } + if (CheckHasBit(cached_has_bits, 0x00000002U)) { + _this->_internal_mutable_array()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_array()); + } + if (CheckHasBit(cached_has_bits, 0x00000004U)) { + _this->_internal_mutable_type()->MergeFrom(from._internal_type()); + } + if (CheckHasBit(cached_has_bits, 0x00000008U)) { + _this->_internal_mutable_enum_()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_enum_()); + } + if (CheckHasBit(cached_has_bits, 0x00000010U)) { if (!from._internal_ref().empty()) { _this->_internal_set_ref(from._internal_ref()); } else { @@ -7912,7 +11008,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (!from._internal_title().empty()) { _this->_internal_set_title(from._internal_title()); } else { @@ -7921,7 +11017,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -7930,7 +11026,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (!from._internal_default_().empty()) { _this->_internal_set_default_(from._internal_default_()); } else { @@ -7939,7 +11035,9 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000010u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x0000ff00U)) { + if (CheckHasBit(cached_has_bits, 0x00000100U)) { if (!from._internal_example().empty()) { _this->_internal_set_example(from._internal_example()); } else { @@ -7948,7 +11046,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000200U)) { if (!from._internal_pattern().empty()) { _this->_internal_set_pattern(from._internal_pattern()); } else { @@ -7957,7 +11055,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000400U)) { if (!from._internal_format().empty()) { _this->_internal_set_format(from._internal_format()); } else { @@ -7966,7 +11064,7 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog } } } - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000800U)) { ABSL_DCHECK(from._impl_.field_configuration_ != nullptr); if (_this->_impl_.field_configuration_ == nullptr) { _this->_impl_.field_configuration_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.field_configuration_); @@ -7974,82 +11072,86 @@ void JSONSchema::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::goog _this->_impl_.field_configuration_->MergeFrom(*from._impl_.field_configuration_); } } - } - if ((cached_has_bits & 0x0000ff00u) != 0) { - if ((cached_has_bits & 0x00000100u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00001000U)) { if (::absl::bit_cast<::uint64_t>(from._internal_multiple_of()) != 0) { _this->_impl_.multiple_of_ = from._impl_.multiple_of_; } } - if ((cached_has_bits & 0x00000200u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00002000U)) { if (::absl::bit_cast<::uint64_t>(from._internal_maximum()) != 0) { _this->_impl_.maximum_ = from._impl_.maximum_; } } - if ((cached_has_bits & 0x00000400u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00004000U)) { if (::absl::bit_cast<::uint64_t>(from._internal_minimum()) != 0) { _this->_impl_.minimum_ = from._impl_.minimum_; } } - if ((cached_has_bits & 0x00000800u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00008000U)) { if (from._internal_max_length() != 0) { _this->_impl_.max_length_ = from._impl_.max_length_; } } - if ((cached_has_bits & 0x00001000u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x00ff0000U)) { + if (CheckHasBit(cached_has_bits, 0x00010000U)) { if (from._internal_min_length() != 0) { _this->_impl_.min_length_ = from._impl_.min_length_; } } - if ((cached_has_bits & 0x00002000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00020000U)) { if (from._internal_max_items() != 0) { _this->_impl_.max_items_ = from._impl_.max_items_; } } - if ((cached_has_bits & 0x00004000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00040000U)) { if (from._internal_min_items() != 0) { _this->_impl_.min_items_ = from._impl_.min_items_; } } - if ((cached_has_bits & 0x00008000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00080000U)) { if (from._internal_max_properties() != 0) { _this->_impl_.max_properties_ = from._impl_.max_properties_; } } - } - if ((cached_has_bits & 0x001f0000u) != 0) { - if ((cached_has_bits & 0x00010000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00100000U)) { if (from._internal_min_properties() != 0) { _this->_impl_.min_properties_ = from._impl_.min_properties_; } } - if ((cached_has_bits & 0x00020000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00200000U)) { if (from._internal_read_only() != 0) { _this->_impl_.read_only_ = from._impl_.read_only_; } } - if ((cached_has_bits & 0x00040000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00400000U)) { if (from._internal_exclusive_maximum() != 0) { _this->_impl_.exclusive_maximum_ = from._impl_.exclusive_maximum_; } } - if ((cached_has_bits & 0x00080000u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00800000U)) { if (from._internal_exclusive_minimum() != 0) { _this->_impl_.exclusive_minimum_ = from._impl_.exclusive_minimum_; } } - if ((cached_has_bits & 0x00100000u) != 0) { + } + if (BatchCheckHasBit(cached_has_bits, 0x03000000U)) { + if (CheckHasBit(cached_has_bits, 0x01000000U)) { if (from._internal_unique_items() != 0) { _this->_impl_.unique_items_ = from._impl_.unique_items_; } } + if (CheckHasBit(cached_has_bits, 0x02000000U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void JSONSchema::CopyFrom(const JSONSchema& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.JSONSchema) if (&from == this) return; Clear(); MergeFrom(from); @@ -8066,7 +11168,6 @@ void JSONSchema::InternalSwap(JSONSchema* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth _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_, &other->_impl_.ref_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, &other->_impl_.title_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.description_, &other->_impl_.description_, arena); @@ -8080,6 +11181,7 @@ void JSONSchema::InternalSwap(JSONSchema* PROTOBUF_RESTRICT PROTOBUF_NONNULL oth - PROTOBUF_FIELD_OFFSET(JSONSchema, _impl_.field_configuration_)>( reinterpret_cast(&_impl_.field_configuration_), reinterpret_cast(&other->_impl_.field_configuration_)); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata JSONSchema::GetMetadata() const { @@ -8087,17 +11189,9 @@ ::google::protobuf::Metadata JSONSchema::GetMetadata() const { } // =================================================================== -class Tag::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(Tag, _impl_._has_bits_); -}; - Tag::Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Tag_class_data_.base()) { + : ::google::protobuf::Message(arena, Tag_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8105,9 +11199,9 @@ Tag::Tag(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Tag& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Tag& from_msg) : _has_bits_{from._has_bits_}, _cached_size_{0}, description_(arena, from.description_) {} @@ -8116,7 +11210,8 @@ Tag::Tag( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Tag& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Tag_class_data_.base()) { + : ::google::protobuf::Message(arena, Tag_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8126,15 +11221,15 @@ Tag::Tag( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.external_docs_ = ((cached_has_bits & 0x00000002u) != 0) + _impl_.external_docs_ = (CheckHasBit(cached_has_bits, 0x00000002U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_) : nullptr; // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Tag) } PROTOBUF_NDEBUG_INLINE Tag::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, description_(arena) {} @@ -8148,6 +11243,9 @@ Tag::~Tag() { } inline void Tag::SharedDtor(MessageLite& self) { Tag& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -8155,41 +11253,10 @@ inline void Tag::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Tag::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Tag(arena); -} -constexpr auto Tag::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Tag), - alignof(Tag)); -} -constexpr auto Tag::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Tag_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Tag::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Tag::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Tag::ByteSizeLong, - &Tag::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Tag, _impl_._cached_size_), - false, - }, - &Tag::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Tag_class_data_ = - Tag::InternalGenerateClassData_(); + Tag::InternalGenerateClassData_(Tag_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Tag::GetClassData() const { @@ -8197,51 +11264,21 @@ Tag::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Tag_class_data_.tc_table); return Tag_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 0, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_)}}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - {::_pbi::TcParser::FastMtS1, - {26, 1, 0, PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string description = 2; - {PROTOBUF_FIELD_OFFSET(Tag, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - {PROTOBUF_FIELD_OFFSET(Tag, _impl_.external_docs_), _Internal::kHasBitsOffset + 1, 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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Tag::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Tag_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Tag_globals_)); + return Tag_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Tag::ParseTableT_ + Tag::_table_ = + Tag::InternalGenerateParseTable_(Tag_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Tag::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8250,11 +11287,11 @@ PROTOBUF_NOINLINE void Tag::Clear() { (void) cached_has_bits; cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(_impl_.external_docs_ != nullptr); _impl_.external_docs_->Clear(); } @@ -8274,12 +11311,16 @@ ::uint8_t* PROTOBUF_NONNULL Tag::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Tag& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // string description = 2; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -8288,9 +11329,8 @@ ::uint8_t* PROTOBUF_NONNULL Tag::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 3, *this_._impl_.external_docs_, this_._impl_.external_docs_->GetCachedSize(), target, stream); @@ -8321,16 +11361,16 @@ ::size_t Tag::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { // string description = 2; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // .grpc.gateway.protoc_gen_openapiv2.options.ExternalDocumentation external_docs = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.external_docs_); } @@ -8339,18 +11379,22 @@ ::size_t Tag::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x00000003u) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x00000003U)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -8359,7 +11403,7 @@ void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pro } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { ABSL_DCHECK(from._impl_.external_docs_ != nullptr); if (_this->_impl_.external_docs_ == nullptr) { _this->_impl_.external_docs_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.external_docs_); @@ -8369,11 +11413,12 @@ void Tag::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::pro } } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Tag::CopyFrom(const Tag& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Tag) if (&from == this) return; Clear(); MergeFrom(from); @@ -8396,111 +11441,46 @@ ::google::protobuf::Metadata Tag::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() - : SuperType(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) {} +SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() : SuperType(SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data()) {} SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, SecurityDefinitions_SecurityEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse() : SuperType() {} SecurityDefinitions_SecurityEntry_DoNotUse::SecurityDefinitions_SecurityEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityDefinitions_SecurityEntry_DoNotUse(arena); -} -constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityDefinitions_SecurityEntry_DoNotUse), - alignof(SecurityDefinitions_SecurityEntry_DoNotUse)); -} -constexpr auto SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityDefinitions_SecurityEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityDefinitions_SecurityEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityDefinitions_SecurityEntry_DoNotUse::SharedDtor, - static_cast(&SecurityDefinitions_SecurityEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &SecurityDefinitions_SecurityEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_SecurityEntry_DoNotUse_class_data_ = - SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_(); + SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateClassData_(SecurityDefinitions_SecurityEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityDefinitions_SecurityEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_SecurityEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.tc_table); return SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 87, 2> -SecurityDefinitions_SecurityEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_._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), - SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions_SecurityEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityDefinitions_SecurityEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, - }}, - {{ - "\113\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions.SecurityEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityDefinitions_SecurityEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_SecurityEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityDefinitions_SecurityEntry_DoNotUse_globals_)); + return SecurityDefinitions_SecurityEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityDefinitions_SecurityEntry_DoNotUse::ParseTableT_ + SecurityDefinitions_SecurityEntry_DoNotUse::_table_ = + SecurityDefinitions_SecurityEntry_DoNotUse::InternalGenerateParseTable_(SecurityDefinitions_SecurityEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class SecurityDefinitions::_Internal { - public: -}; - SecurityDefinitions::SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityDefinitions_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityDefinitions_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8508,17 +11488,25 @@ SecurityDefinitions::SecurityDefinitions(::google::protobuf::Arena* PROTOBUF_NUL // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& from_msg) - : security_{visibility, arena, from.security_}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + security_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() + , from.security_ + } + {} SecurityDefinitions::SecurityDefinitions( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityDefinitions& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityDefinitions_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityDefinitions_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8531,10 +11519,14 @@ SecurityDefinitions::SecurityDefinitions( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) } PROTOBUF_NDEBUG_INLINE SecurityDefinitions::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : security_{visibility, arena}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + security_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityDefinitions, _impl_.security_)>() + } + {} inline void SecurityDefinitions::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -8545,62 +11537,18 @@ SecurityDefinitions::~SecurityDefinitions() { } inline void SecurityDefinitions::SharedDtor(MessageLite& self) { SecurityDefinitions& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL SecurityDefinitions::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityDefinitions(arena); -} -constexpr auto SecurityDefinitions::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_.security_) + - decltype(SecurityDefinitions::_impl_.security_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_.security_) + - decltype(SecurityDefinitions::_impl_.security_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(SecurityDefinitions), alignof(SecurityDefinitions), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&SecurityDefinitions::PlacementNew_, - sizeof(SecurityDefinitions), - alignof(SecurityDefinitions)); - } -} -constexpr auto SecurityDefinitions::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityDefinitions_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityDefinitions::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityDefinitions::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityDefinitions::ByteSizeLong, - &SecurityDefinitions::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityDefinitions, _impl_._cached_size_), - false, - }, - &SecurityDefinitions::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityDefinitions_class_data_ = - SecurityDefinitions::InternalGenerateClassData_(); + SecurityDefinitions::InternalGenerateClassData_(SecurityDefinitions_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityDefinitions::GetClassData() const { @@ -8608,46 +11556,21 @@ SecurityDefinitions::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityDefinitions_class_data_.tc_table); return SecurityDefinitions_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>()}, - }}, - {{ - "\75\10\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions" - "security" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityDefinitions::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityDefinitions_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityDefinitions_globals_)); + return SecurityDefinitions_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityDefinitions::ParseTableT_ + SecurityDefinitions::_table_ = + SecurityDefinitions::InternalGenerateParseTable_(SecurityDefinitions_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void SecurityDefinitions::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -8655,7 +11578,11 @@ PROTOBUF_NOINLINE void SecurityDefinitions::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.security_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.security_.Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -8670,33 +11597,39 @@ ::uint8_t* PROTOBUF_NONNULL SecurityDefinitions::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityDefinitions& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // map security = 1; - if (!this_._internal_security().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_security().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -8727,11 +11660,12 @@ ::size_t SecurityDefinitions::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map security = 1; - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_security_size()); for (const auto& entry : this_._internal_security()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -8741,20 +11675,29 @@ ::size_t SecurityDefinitions::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityDefinitions::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.security_.MergeFrom(from._impl_.security_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.security_.MergeFrom(from._impl_.security_); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityDefinitions) if (&from == this) return; Clear(); MergeFrom(from); @@ -8764,6 +11707,7 @@ void SecurityDefinitions::CopyFrom(const SecurityDefinitions& from) { void SecurityDefinitions::InternalSwap(SecurityDefinitions* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.security_.InternalSwap(&other->_impl_.security_); } @@ -8773,119 +11717,51 @@ ::google::protobuf::Metadata SecurityDefinitions::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() - : SuperType(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) {} +SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() : SuperType(SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data()) {} SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, SecurityScheme_ExtensionsEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse() : SuperType() {} SecurityScheme_ExtensionsEntry_DoNotUse::SecurityScheme_ExtensionsEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityScheme_ExtensionsEntry_DoNotUse(arena); -} -constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityScheme_ExtensionsEntry_DoNotUse), - alignof(SecurityScheme_ExtensionsEntry_DoNotUse)); -} -constexpr auto SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityScheme_ExtensionsEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityScheme_ExtensionsEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityScheme_ExtensionsEntry_DoNotUse::SharedDtor, - static_cast(&SecurityScheme_ExtensionsEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &SecurityScheme_ExtensionsEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityScheme_ExtensionsEntry_DoNotUse_class_data_ = - SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(); + SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateClassData_(SecurityScheme_ExtensionsEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityScheme_ExtensionsEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_ExtensionsEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.tc_table); return SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 84, 2> -SecurityScheme_ExtensionsEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_._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), - SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme_ExtensionsEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .google.protobuf.Value value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .google.protobuf.Value value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityScheme_ExtensionsEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::google::protobuf::Value>()}, - }}, - {{ - "\110\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.ExtensionsEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityScheme_ExtensionsEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_ExtensionsEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityScheme_ExtensionsEntry_DoNotUse_globals_)); + return SecurityScheme_ExtensionsEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityScheme_ExtensionsEntry_DoNotUse::ParseTableT_ + SecurityScheme_ExtensionsEntry_DoNotUse::_table_ = + SecurityScheme_ExtensionsEntry_DoNotUse::InternalGenerateParseTable_(SecurityScheme_ExtensionsEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class SecurityScheme::_Internal { - public: - using HasBits = - decltype(::std::declval()._impl_._has_bits_); - static constexpr ::int32_t kHasBitsOffset = - 8 * PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._has_bits_); -}; - void SecurityScheme::clear_extensions() { ::google::protobuf::internal::TSanWrite(&_impl_); _impl_.extensions_.Clear(); + ClearHasBit(_impl_._has_bits_[0], 0x00000100U); } SecurityScheme::SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityScheme_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityScheme_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8893,22 +11769,29 @@ SecurityScheme::SecurityScheme(::google::protobuf::Arena* PROTOBUF_NULLABLE aren // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme& from_msg) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme& from_msg) : _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_) {} + token_url_(arena, from.token_url_), + extensions_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() + , from.extensions_ + } + {} SecurityScheme::SecurityScheme( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityScheme& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityScheme_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityScheme_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -8918,12 +11801,12 @@ SecurityScheme::SecurityScheme( from._internal_metadata_); new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from); ::uint32_t cached_has_bits = _impl_._has_bits_[0]; - _impl_.scopes_ = ((cached_has_bits & 0x00000010u) != 0) + _impl_.scopes_ = (CheckHasBit(cached_has_bits, 0x00000010U)) ? ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.scopes_) : nullptr; - ::memcpy(reinterpret_cast(&_impl_) + + ::memcpy(reinterpret_cast(&_impl_) + offsetof(Impl_, type_), - reinterpret_cast(&from._impl_) + + reinterpret_cast(&from._impl_) + offsetof(Impl_, type_), offsetof(Impl_, flow_) - offsetof(Impl_, type_) + @@ -8932,18 +11815,22 @@ SecurityScheme::SecurityScheme( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) } PROTOBUF_NDEBUG_INLINE SecurityScheme::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : _cached_size_{0}, - extensions_{visibility, arena}, description_(arena), name_(arena), authorization_url_(arena), - token_url_(arena) {} + token_url_(arena), + extensions_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityScheme, _impl_.extensions_)>() + } + {} inline void SecurityScheme::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); - ::memset(reinterpret_cast(&_impl_) + + ::memset(reinterpret_cast(&_impl_) + offsetof(Impl_, scopes_), 0, offsetof(Impl_, flow_) - @@ -8956,6 +11843,9 @@ SecurityScheme::~SecurityScheme() { } inline void SecurityScheme::SharedDtor(MessageLite& self) { SecurityScheme& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.description_.Destroy(); @@ -8966,57 +11856,10 @@ inline void SecurityScheme::SharedDtor(MessageLite& self) { this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL SecurityScheme::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityScheme(arena); -} -constexpr auto SecurityScheme::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_) + - decltype(SecurityScheme::_impl_.extensions_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.extensions_) + - decltype(SecurityScheme::_impl_.extensions_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(SecurityScheme), alignof(SecurityScheme), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&SecurityScheme::PlacementNew_, - sizeof(SecurityScheme), - alignof(SecurityScheme)); - } -} -constexpr auto SecurityScheme::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityScheme_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityScheme::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityScheme::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityScheme::ByteSizeLong, - &SecurityScheme::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_._cached_size_), - false, - }, - &SecurityScheme::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityScheme_class_data_ = - SecurityScheme::InternalGenerateClassData_(); + SecurityScheme::InternalGenerateClassData_(SecurityScheme_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityScheme::GetClassData() const { @@ -9024,98 +11867,21 @@ SecurityScheme::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityScheme_class_data_.tc_table); return SecurityScheme_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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, 4, 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_), 5>(), - {8, 5, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.type_)}}, - // string description = 2; - {::_pbi::TcParser::FastUS1, - {18, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_)}}, - // string name = 3; - {::_pbi::TcParser::FastUS1, - {26, 1, 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_), 6>(), - {32, 6, 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_), 7>(), - {40, 7, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_)}}, - // string authorization_url = 6; - {::_pbi::TcParser::FastUS1, - {50, 2, 0, PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_)}}, - // string token_url = 7; - {::_pbi::TcParser::FastUS1, - {58, 3, 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_), _Internal::kHasBitsOffset + 5, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // string description = 2; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.description_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string name = 3; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.name_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.in_), _Internal::kHasBitsOffset + 6, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.flow_), _Internal::kHasBitsOffset + 7, 0, - (0 | ::_fl::kFcOptional | ::_fl::kOpenEnum)}, - // string authorization_url = 6; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.authorization_url_), _Internal::kHasBitsOffset + 2, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string token_url = 7; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.token_url_), _Internal::kHasBitsOffset + 3, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - {PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_), _Internal::kHasBitsOffset + 4, 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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityScheme::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityScheme_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityScheme_globals_)); + return SecurityScheme_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityScheme::ParseTableT_ + SecurityScheme::_table_ = + SecurityScheme::InternalGenerateParseTable_(SecurityScheme_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void SecurityScheme::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9123,31 +11889,33 @@ PROTOBUF_NOINLINE void SecurityScheme::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.extensions_.Clear(); cached_has_bits = _impl_._has_bits_[0]; - if ((cached_has_bits & 0x0000001fu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x0000001fU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { _impl_.description_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { _impl_.name_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { _impl_.authorization_url_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { _impl_.token_url_.ClearNonDefaultToEmpty(); } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { ABSL_DCHECK(_impl_.scopes_ != nullptr); _impl_.scopes_->Clear(); } } - if ((cached_has_bits & 0x000000e0u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000e0U)) { ::memset(&_impl_.type_, 0, static_cast<::size_t>( reinterpret_cast(&_impl_.flow_) - reinterpret_cast(&_impl_.type_)) + sizeof(_impl_.flow_)); } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _impl_.extensions_.Clear(); + } _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -9163,12 +11931,16 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityScheme& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - if ((this_._impl_._has_bits_[0] & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_type() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -9177,7 +11949,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string description = 2; - if ((this_._impl_._has_bits_[0] & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { const ::std::string& _s = this_._internal_description(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9187,7 +11959,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string name = 3; - if ((this_._impl_._has_bits_[0] & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_name().empty()) { const ::std::string& _s = this_._internal_name(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9197,7 +11969,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - if ((this_._impl_._has_bits_[0] & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_in() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -9206,7 +11978,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - if ((this_._impl_._has_bits_[0] & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_flow() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( @@ -9215,7 +11987,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string authorization_url = 6; - if ((this_._impl_._has_bits_[0] & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_authorization_url().empty()) { const ::std::string& _s = this_._internal_authorization_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9225,7 +11997,7 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } // string token_url = 7; - if ((this_._impl_._has_bits_[0] & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_token_url().empty()) { const ::std::string& _s = this_._internal_token_url(); ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( @@ -9234,37 +12006,38 @@ ::uint8_t* PROTOBUF_NONNULL SecurityScheme::_InternalSerialize( } } - cached_has_bits = this_._impl_._has_bits_[0]; // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage( 8, *this_._impl_.scopes_, this_._impl_.scopes_->GetCachedSize(), target, stream); } // map extensions = 9; - if (!this_._internal_extensions().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + if (!this_._internal_extensions().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::google::protobuf::Value>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 9, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -9293,92 +12066,95 @@ ::size_t SecurityScheme::ByteSizeLong() const { (void)cached_has_bits; ::_pbi::Prefetch5LinesFrom7Lines(&this_); - { - // map extensions = 9; - { - total_size += - 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); - for (const auto& entry : this_._internal_extensions()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); - } - } - } cached_has_bits = this_._impl_._has_bits_[0]; - if ((cached_has_bits & 0x000000ffu) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { // string description = 2; - if ((cached_has_bits & 0x00000001u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!this_._internal_description().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_description()); } } // string name = 3; - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!this_._internal_name().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_name()); } } // string authorization_url = 6; - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!this_._internal_authorization_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_authorization_url()); } } // string token_url = 7; - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!this_._internal_token_url().empty()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this_._internal_token_url()); } } // .grpc.gateway.protoc_gen_openapiv2.options.Scopes scopes = 8; - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*this_._impl_.scopes_); } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Type type = 1; - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (this_._internal_type() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_type()); } } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.In in = 4; - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (this_._internal_in() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_in()); } } // .grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow flow = 5; - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (this_._internal_flow() != 0) { total_size += 1 + ::_pbi::WireFormatLite::EnumSize(this_._internal_flow()); } } + } + { + // map extensions = 9; + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + total_size += + 1 * ::google::protobuf::internal::FromIntSize(this_._internal_extensions_size()); + for (const auto& entry : this_._internal_extensions()) { + total_size += _pbi::MapEntryFuncs<::std::string, ::google::protobuf::Value, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second); + } + } } return this_.MaybeComputeUnknownFieldsSize(total_size, &this_._impl_._cached_size_); } -void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } ::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; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); cached_has_bits = from._impl_._has_bits_[0]; - if ((cached_has_bits & 0x000000ffu) != 0) { - if ((cached_has_bits & 0x00000001u) != 0) { + if (BatchCheckHasBit(cached_has_bits, 0x000000ffU)) { + if (CheckHasBit(cached_has_bits, 0x00000001U)) { if (!from._internal_description().empty()) { _this->_internal_set_description(from._internal_description()); } else { @@ -9387,7 +12163,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: } } } - if ((cached_has_bits & 0x00000002u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000002U)) { if (!from._internal_name().empty()) { _this->_internal_set_name(from._internal_name()); } else { @@ -9396,7 +12172,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: } } } - if ((cached_has_bits & 0x00000004u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000004U)) { if (!from._internal_authorization_url().empty()) { _this->_internal_set_authorization_url(from._internal_authorization_url()); } else { @@ -9405,7 +12181,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: } } } - if ((cached_has_bits & 0x00000008u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000008U)) { if (!from._internal_token_url().empty()) { _this->_internal_set_token_url(from._internal_token_url()); } else { @@ -9414,7 +12190,7 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: } } } - if ((cached_has_bits & 0x00000010u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000010U)) { ABSL_DCHECK(from._impl_.scopes_ != nullptr); if (_this->_impl_.scopes_ == nullptr) { _this->_impl_.scopes_ = ::google::protobuf::Message::CopyConstruct(arena, *from._impl_.scopes_); @@ -9422,28 +12198,32 @@ void SecurityScheme::MergeImpl(::google::protobuf::MessageLite& to_msg, const :: _this->_impl_.scopes_->MergeFrom(*from._impl_.scopes_); } } - if ((cached_has_bits & 0x00000020u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000020U)) { if (from._internal_type() != 0) { _this->_impl_.type_ = from._impl_.type_; } } - if ((cached_has_bits & 0x00000040u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000040U)) { if (from._internal_in() != 0) { _this->_impl_.in_ = from._impl_.in_; } } - if ((cached_has_bits & 0x00000080u) != 0) { + if (CheckHasBit(cached_has_bits, 0x00000080U)) { if (from._internal_flow() != 0) { _this->_impl_.flow_ = from._impl_.flow_; } } } + if (CheckHasBit(cached_has_bits, 0x00000100U)) { + _this->_impl_.extensions_.MergeFrom(from._impl_.extensions_); + } _this->_impl_._has_bits_[0] |= cached_has_bits; - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void SecurityScheme::CopyFrom(const SecurityScheme& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme) if (&from == this) return; Clear(); MergeFrom(from); @@ -9456,7 +12236,6 @@ void SecurityScheme::InternalSwap(SecurityScheme* PROTOBUF_RESTRICT PROTOBUF_NON 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_, &other->_impl_.description_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena); ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.authorization_url_, &other->_impl_.authorization_url_, arena); @@ -9467,6 +12246,7 @@ void SecurityScheme::InternalSwap(SecurityScheme* PROTOBUF_RESTRICT PROTOBUF_NON - PROTOBUF_FIELD_OFFSET(SecurityScheme, _impl_.scopes_)>( reinterpret_cast(&_impl_.scopes_), reinterpret_cast(&other->_impl_.scopes_)); + _impl_.extensions_.InternalSwap(&other->_impl_.extensions_); } ::google::protobuf::Metadata SecurityScheme::GetMetadata() const { @@ -9474,13 +12254,9 @@ ::google::protobuf::Metadata SecurityScheme::GetMetadata() const { } // =================================================================== -class SecurityRequirement_SecurityRequirementValue::_Internal { - public: -}; - SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9488,17 +12264,25 @@ SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequir // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue& from_msg) - : scope_{visibility, arena, from.scope_}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + scope_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() + , from.scope_ + } + {} SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequirementValue( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement_SecurityRequirementValue& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityRequirement_SecurityRequirementValue_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9511,10 +12295,14 @@ SecurityRequirement_SecurityRequirementValue::SecurityRequirement_SecurityRequir // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) } PROTOBUF_NDEBUG_INLINE SecurityRequirement_SecurityRequirementValue::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : scope_{visibility, arena}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, _impl_.scope_)>() + } + {} inline void SecurityRequirement_SecurityRequirementValue::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -9525,58 +12313,18 @@ SecurityRequirement_SecurityRequirementValue::~SecurityRequirement_SecurityRequi } inline void SecurityRequirement_SecurityRequirementValue::SharedDtor(MessageLite& self) { SecurityRequirement_SecurityRequirementValue& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement_SecurityRequirementValue(arena); -} -constexpr auto SecurityRequirement_SecurityRequirementValue::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_.scope_) + - decltype(SecurityRequirement_SecurityRequirementValue::_impl_.scope_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::ZeroInit( - sizeof(SecurityRequirement_SecurityRequirementValue), alignof(SecurityRequirement_SecurityRequirementValue), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&SecurityRequirement_SecurityRequirementValue::PlacementNew_, - sizeof(SecurityRequirement_SecurityRequirementValue), - alignof(SecurityRequirement_SecurityRequirementValue)); - } -} -constexpr auto SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityRequirement_SecurityRequirementValue_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityRequirement_SecurityRequirementValue::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement_SecurityRequirementValue::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement_SecurityRequirementValue::ByteSizeLong, - &SecurityRequirement_SecurityRequirementValue::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementValue, _impl_._cached_size_), - false, - }, - &SecurityRequirement_SecurityRequirementValue::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementValue_class_data_ = - SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_(); + SecurityRequirement_SecurityRequirementValue::InternalGenerateClassData_(SecurityRequirement_SecurityRequirementValue_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::GetClassData() const { @@ -9584,43 +12332,21 @@ SecurityRequirement_SecurityRequirementValue::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_SecurityRequirementValue_class_data_.tc_table); return SecurityRequirement_SecurityRequirementValue_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityRequirement_SecurityRequirementValue::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementValue_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_SecurityRequirementValue_globals_)); + return SecurityRequirement_SecurityRequirementValue_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement_SecurityRequirementValue::ParseTableT_ + SecurityRequirement_SecurityRequirementValue::_table_ = + SecurityRequirement_SecurityRequirementValue::InternalGenerateParseTable_(SecurityRequirement_SecurityRequirementValue_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void SecurityRequirement_SecurityRequirementValue::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9628,7 +12354,11 @@ PROTOBUF_NOINLINE void SecurityRequirement_SecurityRequirementValue::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.scope_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.scope_.Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -9643,16 +12373,22 @@ ::uint8_t* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementValue::_Inter ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityRequirement_SecurityRequirementValue& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@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; + cached_has_bits = this_._impl_._has_bits_[0]; // repeated string scope = 1; - for (int i = 0, n = this_._internal_scope_size(); i < n; ++i) { - 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 (CheckHasBit(cached_has_bits, 0x00000001U)) { + for (int i = 0, n = this_._internal_scope_size(); i < n; ++i) { + 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 (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) { @@ -9681,7 +12417,8 @@ ::size_t SecurityRequirement_SecurityRequirementValue::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // repeated string scope = 1; - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_scope().size()); for (int i = 0, n = this_._internal_scope().size(); i < n; ++i) { @@ -9694,20 +12431,32 @@ ::size_t SecurityRequirement_SecurityRequirementValue::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityRequirement_SecurityRequirementValue::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } + ::google::protobuf::Arena* arena = _this->GetArena(); // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_internal_mutable_scope()->MergeFrom(from._internal_scope()); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_internal_mutable_scope()->InternalMergeFromWithArena( + ::google::protobuf::MessageLite::internal_visibility(), arena, + from._internal_scope()); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequirement_SecurityRequirementValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue) if (&from == this) return; Clear(); MergeFrom(from); @@ -9717,6 +12466,7 @@ void SecurityRequirement_SecurityRequirementValue::CopyFrom(const SecurityRequir void SecurityRequirement_SecurityRequirementValue::InternalSwap(SecurityRequirement_SecurityRequirementValue* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.scope_.InternalSwap(&other->_impl_.scope_); } @@ -9726,111 +12476,46 @@ ::google::protobuf::Metadata SecurityRequirement_SecurityRequirementValue::GetMe // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() - : SuperType(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) {} +SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() : SuperType(SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data()) {} SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, SecurityRequirement_SecurityRequirementEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse() : SuperType() {} SecurityRequirement_SecurityRequirementEntry_DoNotUse::SecurityRequirement_SecurityRequirementEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement_SecurityRequirementEntry_DoNotUse(arena); -} -constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(SecurityRequirement_SecurityRequirementEntry_DoNotUse), - alignof(SecurityRequirement_SecurityRequirementEntry_DoNotUse)); -} -constexpr auto SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityRequirement_SecurityRequirementEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityRequirement_SecurityRequirementEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement_SecurityRequirementEntry_DoNotUse::SharedDtor, - static_cast(&SecurityRequirement_SecurityRequirementEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &SecurityRequirement_SecurityRequirementEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_ = - SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_(); + SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateClassData_(SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.tc_table); return SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 1, 98, 2> -SecurityRequirement_SecurityRequirementEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_._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), - SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; - {::_pbi::TcParser::FastMtS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // .grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementValue value = 2; - {PROTOBUF_FIELD_OFFSET(SecurityRequirement_SecurityRequirementEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)}, - }}, - {{ - {::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>()}, - }}, - {{ - "\126\3\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement.SecurityRequirementEntry" - "key" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityRequirement_SecurityRequirementEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_)); + return SecurityRequirement_SecurityRequirementEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement_SecurityRequirementEntry_DoNotUse::ParseTableT_ + SecurityRequirement_SecurityRequirementEntry_DoNotUse::_table_ = + SecurityRequirement_SecurityRequirementEntry_DoNotUse::InternalGenerateParseTable_(SecurityRequirement_SecurityRequirementEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class SecurityRequirement::_Internal { - public: -}; - SecurityRequirement::SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityRequirement_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9838,17 +12523,25 @@ SecurityRequirement::SecurityRequirement(::google::protobuf::Arena* PROTOBUF_NUL // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& from_msg) - : security_requirement_{visibility, arena, from.security_requirement_}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + security_requirement_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() + , from.security_requirement_ + } + {} SecurityRequirement::SecurityRequirement( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const SecurityRequirement& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, SecurityRequirement_class_data_.base()) { + : ::google::protobuf::Message(arena, SecurityRequirement_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -9861,10 +12554,14 @@ SecurityRequirement::SecurityRequirement( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) } PROTOBUF_NDEBUG_INLINE SecurityRequirement::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : security_requirement_{visibility, arena}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + security_requirement_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement, _impl_.security_requirement_)>() + } + {} inline void SecurityRequirement::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -9875,62 +12572,18 @@ SecurityRequirement::~SecurityRequirement() { } inline void SecurityRequirement::SharedDtor(MessageLite& self) { SecurityRequirement& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL SecurityRequirement::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) SecurityRequirement(arena); -} -constexpr auto SecurityRequirement::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_.security_requirement_) + - decltype(SecurityRequirement::_impl_.security_requirement_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_.security_requirement_) + - decltype(SecurityRequirement::_impl_.security_requirement_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(SecurityRequirement), alignof(SecurityRequirement), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&SecurityRequirement::PlacementNew_, - sizeof(SecurityRequirement), - alignof(SecurityRequirement)); - } -} -constexpr auto SecurityRequirement::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_SecurityRequirement_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &SecurityRequirement::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &SecurityRequirement::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &SecurityRequirement::ByteSizeLong, - &SecurityRequirement::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(SecurityRequirement, _impl_._cached_size_), - false, - }, - &SecurityRequirement::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull SecurityRequirement_class_data_ = - SecurityRequirement::InternalGenerateClassData_(); + SecurityRequirement::InternalGenerateClassData_(SecurityRequirement_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL SecurityRequirement::GetClassData() const { @@ -9938,46 +12591,21 @@ SecurityRequirement::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(SecurityRequirement_class_data_.tc_table); return SecurityRequirement_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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(1, 0, 0, - 9, 11, - 0)}, - {::_pbi::TcParser::GetTable<::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" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +SecurityRequirement::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&SecurityRequirement_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&SecurityRequirement_globals_)); + return SecurityRequirement_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const SecurityRequirement::ParseTableT_ + SecurityRequirement::_table_ = + SecurityRequirement::InternalGenerateParseTable_(SecurityRequirement_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void SecurityRequirement::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -9985,7 +12613,11 @@ PROTOBUF_NOINLINE void SecurityRequirement::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.security_requirement_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.security_requirement_.Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -10000,33 +12632,39 @@ ::uint8_t* PROTOBUF_NONNULL SecurityRequirement::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const SecurityRequirement& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // map security_requirement = 1; - if (!this_._internal_security_requirement().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_security_requirement().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::grpc::gateway::protoc_gen_openapiv2::options::SecurityRequirement_SecurityRequirementValue, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_MESSAGE>; + const auto& field = this_._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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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"); + } } } } @@ -10057,11 +12695,12 @@ ::size_t SecurityRequirement::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map security_requirement = 1; - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_security_requirement_size()); for (const auto& entry : this_._internal_security_requirement()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -10071,20 +12710,29 @@ ::size_t SecurityRequirement::ByteSizeLong() const { &this_._impl_._cached_size_); } -void SecurityRequirement::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.security_requirement_.MergeFrom(from._impl_.security_requirement_); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.SecurityRequirement) if (&from == this) return; Clear(); MergeFrom(from); @@ -10094,6 +12742,7 @@ void SecurityRequirement::CopyFrom(const SecurityRequirement& from) { void SecurityRequirement::InternalSwap(SecurityRequirement* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.security_requirement_.InternalSwap(&other->_impl_.security_requirement_); } @@ -10103,110 +12752,46 @@ ::google::protobuf::Metadata SecurityRequirement::GetMetadata() const { // =================================================================== #if defined(PROTOBUF_CUSTOM_VTABLE) -Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() - : SuperType(Scopes_ScopeEntry_DoNotUse_class_data_.base()) {} +Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() : SuperType(Scopes_ScopeEntry_DoNotUse_get_class_data()) {} Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : SuperType(arena, Scopes_ScopeEntry_DoNotUse_class_data_.base()) {} + : SuperType(arena, Scopes_ScopeEntry_DoNotUse_get_class_data()) {} #else // PROTOBUF_CUSTOM_VTABLE Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse() : SuperType() {} Scopes_ScopeEntry_DoNotUse::Scopes_ScopeEntry_DoNotUse(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) : SuperType(arena) {} #endif // PROTOBUF_CUSTOM_VTABLE -inline void* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Scopes_ScopeEntry_DoNotUse(arena); -} -constexpr auto Scopes_ScopeEntry_DoNotUse::InternalNewImpl_() { - return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Scopes_ScopeEntry_DoNotUse), - alignof(Scopes_ScopeEntry_DoNotUse)); -} -constexpr auto Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Scopes_ScopeEntry_DoNotUse_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Scopes_ScopeEntry_DoNotUse::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Scopes_ScopeEntry_DoNotUse::SharedDtor, - static_cast(&Scopes_ScopeEntry_DoNotUse::ClearImpl), - ::google::protobuf::Message::ByteSizeLongImpl, ::google::protobuf::Message::_InternalSerializeImpl - , -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._cached_size_), - false, - }, - &Scopes_ScopeEntry_DoNotUse::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Scopes_ScopeEntry_DoNotUse_class_data_ = - Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_(); + Scopes_ScopeEntry_DoNotUse::InternalGenerateClassData_(Scopes_ScopeEntry_DoNotUse_globals_._default); +// including ~ all the vtables and everything they use become part +// of the same ~ SCC. PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Scopes_ScopeEntry_DoNotUse::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_ScopeEntry_DoNotUse_class_data_); ::google::protobuf::internal::PrefetchToLocalCache(Scopes_ScopeEntry_DoNotUse_class_data_.tc_table); return Scopes_ScopeEntry_DoNotUse_class_data_.base(); } -PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 -const ::_pbi::TcParseTable<1, 2, 0, 76, 2> -Scopes_ScopeEntry_DoNotUse::_table_ = { - { - PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_._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 - Scopes_ScopeEntry_DoNotUse_class_data_.base(), - nullptr, // post_loop_handler - ::_pbi::TcParser::DiscardEverythingFallback, // fallback - #ifdef PROTOBUF_PREFETCH_PARSE_TABLE - ::_pbi::TcParser::GetTable<::grpc::gateway::protoc_gen_openapiv2::options::Scopes_ScopeEntry_DoNotUse>(), // to_prefetch - #endif // PROTOBUF_PREFETCH_PARSE_TABLE - }, {{ - // string value = 2; - {::_pbi::TcParser::FastUS1, - {18, 1, 0, PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_)}}, - // string key = 1; - {::_pbi::TcParser::FastUS1, - {10, 0, 0, PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_)}}, - }}, {{ - 65535, 65535 - }}, {{ - // string key = 1; - {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.key_), _Internal::kHasBitsOffset + 0, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - // string value = 2; - {PROTOBUF_FIELD_OFFSET(Scopes_ScopeEntry_DoNotUse, _impl_.value_), _Internal::kHasBitsOffset + 1, 0, - (0 | ::_fl::kFcOptional | ::_fl::kUtf8String | ::_fl::kRepAString)}, - }}, - // no aux_entries - {{ - "\73\3\5\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Scopes.ScopeEntry" - "key" - "value" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Scopes_ScopeEntry_DoNotUse::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_ScopeEntry_DoNotUse_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Scopes_ScopeEntry_DoNotUse_globals_)); + return Scopes_ScopeEntry_DoNotUse_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Scopes_ScopeEntry_DoNotUse::ParseTableT_ + Scopes_ScopeEntry_DoNotUse::_table_ = + Scopes_ScopeEntry_DoNotUse::InternalGenerateParseTable_(Scopes_ScopeEntry_DoNotUse_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS // =================================================================== -class Scopes::_Internal { - public: -}; - Scopes::Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Scopes_class_data_.base()) { + : ::google::protobuf::Message(arena, Scopes_get_class_data()) { #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10214,17 +12799,25 @@ Scopes::Scopes(::google::protobuf::Arena* PROTOBUF_NULLABLE arena) // @@protoc_insertion_point(arena_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, - const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& from_msg) - : scope_{visibility, arena, from.scope_}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from, + [[maybe_unused]] const ::grpc::gateway::protoc_gen_openapiv2::options::Scopes& from_msg) + : _has_bits_{from._has_bits_}, + _cached_size_{0}, + scope_ { + visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() + , from.scope_ + } + {} Scopes::Scopes( ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Scopes& from) #if defined(PROTOBUF_CUSTOM_VTABLE) - : ::google::protobuf::Message(arena, Scopes_class_data_.base()) { + : ::google::protobuf::Message(arena, Scopes_get_class_data()) { + #else // PROTOBUF_CUSTOM_VTABLE : ::google::protobuf::Message(arena) { #endif // PROTOBUF_CUSTOM_VTABLE @@ -10237,10 +12830,14 @@ Scopes::Scopes( // @@protoc_insertion_point(copy_constructor:grpc.gateway.protoc_gen_openapiv2.options.Scopes) } PROTOBUF_NDEBUG_INLINE Scopes::Impl_::Impl_( - ::google::protobuf::internal::InternalVisibility visibility, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) - : scope_{visibility, arena}, - _cached_size_{0} {} + [[maybe_unused]] ::google::protobuf::internal::InternalVisibility visibility, + [[maybe_unused]] ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) + : _cached_size_{0}, + scope_ { visibility, ::_pbi::InternalMetadataOffset::Build< + ::grpc::gateway::protoc_gen_openapiv2::options::Scopes, + PROTOBUF_FIELD_OFFSET(::grpc::gateway::protoc_gen_openapiv2::options::Scopes, _impl_.scope_)>() + } + {} inline void Scopes::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) { new (&_impl_) Impl_(internal_visibility(), arena); @@ -10251,62 +12848,18 @@ Scopes::~Scopes() { } inline void Scopes::SharedDtor(MessageLite& self) { Scopes& this_ = static_cast(self); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>(); ABSL_DCHECK(this_.GetArena() == nullptr); this_._impl_.~Impl_(); } -inline void* PROTOBUF_NONNULL Scopes::PlacementNew_( - const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem, - ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) { - return ::new (mem) Scopes(arena); -} -constexpr auto Scopes::InternalNewImpl_() { - constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({ - PROTOBUF_FIELD_OFFSET(Scopes, _impl_.scope_) + - decltype(Scopes::_impl_.scope_):: - InternalGetArenaOffset( - ::google::protobuf::Message::internal_visibility()), - PROTOBUF_FIELD_OFFSET(Scopes, _impl_.scope_) + - decltype(Scopes::_impl_.scope_):: - InternalGetArenaOffsetAlt( - ::google::protobuf::Message::internal_visibility()), - }); - if (arena_bits.has_value()) { - return ::google::protobuf::internal::MessageCreator::CopyInit( - sizeof(Scopes), alignof(Scopes), *arena_bits); - } else { - return ::google::protobuf::internal::MessageCreator(&Scopes::PlacementNew_, - sizeof(Scopes), - alignof(Scopes)); - } -} -constexpr auto Scopes::InternalGenerateClassData_() { - return ::google::protobuf::internal::ClassDataFull{ - ::google::protobuf::internal::ClassData{ - &_Scopes_default_instance_._instance, - &_table_.header, - nullptr, // OnDemandRegisterArenaDtor - nullptr, // IsInitialized - &Scopes::MergeImpl, - ::google::protobuf::Message::GetNewImpl(), -#if defined(PROTOBUF_CUSTOM_VTABLE) - &Scopes::SharedDtor, - ::google::protobuf::Message::GetClearImpl(), &Scopes::ByteSizeLong, - &Scopes::_InternalSerialize, -#endif // PROTOBUF_CUSTOM_VTABLE - PROTOBUF_FIELD_OFFSET(Scopes, _impl_._cached_size_), - false, - }, - &Scopes::kDescriptorMethods, - &descriptor_table_protoc_2dgen_2dopenapiv2_2foptions_2fopenapiv2_2eproto, - nullptr, // tracker - }; -} - +#ifndef PROTOBUF_MESSAGE_GLOBALS PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const ::google::protobuf::internal::ClassDataFull Scopes_class_data_ = - Scopes::InternalGenerateClassData_(); + Scopes::InternalGenerateClassData_(Scopes_globals_._default); PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL Scopes::GetClassData() const { @@ -10314,45 +12867,21 @@ Scopes::GetClassData() const { ::google::protobuf::internal::PrefetchToLocalCache(Scopes_class_data_.tc_table); return Scopes_class_data_.base(); } -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_class_data_.base(), - nullptr, // post_loop_handler - ::_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(1, 0, 0, - 9, 9, - 0)}, - }}, - {{ - "\60\5\0\0\0\0\0\0" - "grpc.gateway.protoc_gen_openapiv2.options.Scopes" - "scope" - }}, -}; +#else +PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL +Scopes::GetClassData() const { + ::google::protobuf::internal::PrefetchToLocalCache(&Scopes_globals_); + ::google::protobuf::internal::PrefetchToLocalCache( + ::google::protobuf::internal::MessageGlobalsBase::ToParseTableBase(&Scopes_globals_)); + return Scopes_globals_.GetClassData(); +} +#endif // !PROTOBUF_MESSAGE_GLOBALS +#ifndef PROTOBUF_MESSAGE_GLOBALS +PROTOBUF_CONSTINIT +PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const Scopes::ParseTableT_ + Scopes::_table_ = + Scopes::InternalGenerateParseTable_(Scopes_class_data_.base()); +#endif // !PROTOBUF_MESSAGE_GLOBALS PROTOBUF_NOINLINE void Scopes::Clear() { // @@protoc_insertion_point(message_clear_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ::google::protobuf::internal::TSanWrite(&_impl_); @@ -10360,7 +12889,11 @@ PROTOBUF_NOINLINE void Scopes::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.scope_.Clear(); + cached_has_bits = _impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _impl_.scope_.Clear(); + } + _impl_._has_bits_.Clear(); _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>(); } @@ -10375,39 +12908,45 @@ ::uint8_t* PROTOBUF_NONNULL Scopes::_InternalSerialize( ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const { const Scopes& this_ = *this; #endif // PROTOBUF_CUSTOM_VTABLE + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + this_.CheckHasBitConsistency(); + } // @@protoc_insertion_point(serialize_to_array_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ::uint32_t cached_has_bits = 0; (void)cached_has_bits; + cached_has_bits = this_._impl_._has_bits_[0]; // map scope = 1; - if (!this_._internal_scope().empty()) { - using MapType = ::google::protobuf::Map; - using WireHelper = _pbi::MapEntryFuncs; - const auto& field = this_._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()), + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + if (!this_._internal_scope().empty()) { + using MapType = ::google::protobuf::Map<::std::string, ::std::string>; + using WireHelper = _pbi::MapEntryFuncs<::std::string, ::std::string, + _pbi::WireFormatLite::TYPE_STRING, + _pbi::WireFormatLite::TYPE_STRING>; + const auto& field = this_._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::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 : field) { - target = WireHelper::InternalSerialize( - 1, entry.first, entry.second, target, stream); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), + } + } else { + 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::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "grpc.gateway.protoc_gen_openapiv2.options.Scopes.scope"); + } } } } @@ -10438,11 +12977,12 @@ ::size_t Scopes::ByteSizeLong() const { ::_pbi::Prefetch5LinesFrom7Lines(&this_); { // map scope = 1; - { + cached_has_bits = this_._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { total_size += 1 * ::google::protobuf::internal::FromIntSize(this_._internal_scope_size()); for (const auto& entry : this_._internal_scope()) { - total_size += _pbi::MapEntryFuncs::ByteSizeLong(entry.first, entry.second); } @@ -10452,20 +12992,29 @@ ::size_t Scopes::ByteSizeLong() const { &this_._impl_._cached_size_); } -void Scopes::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) { - auto* const _this = static_cast(&to_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); + if constexpr (::_pbi::DebugHardenCheckHasBitConsistency()) { + from.CheckHasBitConsistency(); + } // @@protoc_insertion_point(class_specific_merge_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) ABSL_DCHECK_NE(&from, _this); ::uint32_t cached_has_bits = 0; - (void) cached_has_bits; + (void)cached_has_bits; - _this->_impl_.scope_.MergeFrom(from._impl_.scope_); - _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_); + cached_has_bits = from._impl_._has_bits_[0]; + if (CheckHasBit(cached_has_bits, 0x00000001U)) { + _this->_impl_.scope_.MergeFrom(from._impl_.scope_); + } + _this->_impl_._has_bits_[0] |= cached_has_bits; + _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>( + from._internal_metadata_); } void Scopes::CopyFrom(const Scopes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) + // @@protoc_insertion_point(class_specific_copy_from_start:grpc.gateway.protoc_gen_openapiv2.options.Scopes) if (&from == this) return; Clear(); MergeFrom(from); @@ -10475,6 +13024,7 @@ void Scopes::CopyFrom(const Scopes& from) { void Scopes::InternalSwap(Scopes* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) { using ::std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]); _impl_.scope_.InternalSwap(&other->_impl_.scope_); }