From b56470ec3499bc38f118b038418058861868a4ef Mon Sep 17 00:00:00 2001 From: igooch Date: Tue, 11 Jul 2023 08:46:13 -0700 Subject: [PATCH] chore(gaming): Removes all Gaming API files as part of Google Cloud Game Servers Deprecation (#8238) BREAKING CHANGE: Removes api: gameservices the Game Servers API. --- .github/.OwlBot.yaml | 10 +- .release-please-manifest-submodules.json | 1 - gaming/CHANGES.md | 108 - gaming/README.md | 40 - gaming/aliasshim/aliasshim.go | 24 - gaming/apiv1/doc.go | 143 -- gaming/apiv1/game_server_clusters_client.go | 1544 ------------- ...ame_server_clusters_client_example_test.go | 278 --- gaming/apiv1/game_server_configs_client.go | 983 --------- ...game_server_configs_client_example_test.go | 173 -- .../apiv1/game_server_deployments_client.go | 1730 --------------- ..._server_deployments_client_example_test.go | 308 --- gaming/apiv1/gamingpb/common.pb.go | 1587 -------------- .../apiv1/gamingpb/game_server_clusters.pb.go | 1948 ----------------- .../game_server_clusters_service.pb.go | 618 ------ .../apiv1/gamingpb/game_server_configs.pb.go | 918 -------- .../game_server_configs_service.pb.go | 386 ---- .../gamingpb/game_server_deployments.pb.go | 1682 -------------- .../game_server_deployments_service.pb.go | 687 ------ gaming/apiv1/gamingpb/realms.pb.go | 976 --------- gaming/apiv1/gamingpb/realms_service.pb.go | 469 ---- gaming/apiv1/realms_client.go | 1301 ----------- gaming/apiv1/realms_client_example_test.go | 228 -- gaming/apiv1/version.go | 23 - gaming/apiv1beta/doc.go | 145 -- .../apiv1beta/game_server_clusters_client.go | 1535 ------------- ...ame_server_clusters_client_example_test.go | 278 --- .../apiv1beta/game_server_configs_client.go | 983 --------- ...game_server_configs_client_example_test.go | 173 -- .../game_server_deployments_client.go | 1730 --------------- ..._server_deployments_client_example_test.go | 308 --- gaming/apiv1beta/gamingpb/common.pb.go | 1595 -------------- .../gamingpb/game_server_clusters.pb.go | 1566 ------------- .../game_server_clusters_service.pb.go | 627 ------ .../gamingpb/game_server_configs.pb.go | 929 -------- .../game_server_configs_service.pb.go | 392 ---- .../gamingpb/game_server_deployments.pb.go | 1706 --------------- .../game_server_deployments_service.pb.go | 696 ------ gaming/apiv1beta/gamingpb/realms.pb.go | 987 --------- .../apiv1beta/gamingpb/realms_service.pb.go | 476 ---- gaming/apiv1beta/realms_client.go | 1301 ----------- .../apiv1beta/realms_client_example_test.go | 228 -- gaming/apiv1beta/version.go | 23 - gaming/go.mod | 32 - gaming/go.sum | 197 -- gaming/internal/version.go | 18 - go.work | 1 - .../CreateGameServerCluster/main.go | 58 - .../DeleteGameServerCluster/main.go | 56 - .../GetGameServerCluster/main.go | 53 - .../ListGameServerClusters/main.go | 60 - .../PreviewCreateGameServerCluster/main.go | 53 - .../PreviewDeleteGameServerCluster/main.go | 53 - .../PreviewUpdateGameServerCluster/main.go | 53 - .../UpdateGameServerCluster/main.go | 58 - .../CreateGameServerConfig/main.go | 58 - .../DeleteGameServerConfig/main.go | 56 - .../GetGameServerConfig/main.go | 53 - .../ListGameServerConfigs/main.go | 60 - .../CreateGameServerDeployment/main.go | 58 - .../DeleteGameServerDeployment/main.go | 56 - .../FetchDeploymentState/main.go | 53 - .../GetGameServerDeployment/main.go | 53 - .../GetGameServerDeploymentRollout/main.go | 53 - .../ListGameServerDeployments/main.go | 60 - .../main.go | 53 - .../UpdateGameServerDeployment/main.go | 58 - .../UpdateGameServerDeploymentRollout/main.go | 58 - .../apiv1/RealmsClient/CreateRealm/main.go | 58 - .../apiv1/RealmsClient/DeleteRealm/main.go | 56 - .../apiv1/RealmsClient/GetRealm/main.go | 53 - .../apiv1/RealmsClient/ListRealms/main.go | 60 - .../RealmsClient/PreviewRealmUpdate/main.go | 53 - .../apiv1/RealmsClient/UpdateRealm/main.go | 58 - ...ippet_metadata.google.cloud.gaming.v1.json | 1257 ----------- .../CreateGameServerCluster/main.go | 58 - .../DeleteGameServerCluster/main.go | 56 - .../GetGameServerCluster/main.go | 53 - .../ListGameServerClusters/main.go | 60 - .../PreviewCreateGameServerCluster/main.go | 53 - .../PreviewDeleteGameServerCluster/main.go | 53 - .../PreviewUpdateGameServerCluster/main.go | 53 - .../UpdateGameServerCluster/main.go | 58 - .../CreateGameServerConfig/main.go | 58 - .../DeleteGameServerConfig/main.go | 56 - .../GetGameServerConfig/main.go | 53 - .../ListGameServerConfigs/main.go | 60 - .../CreateGameServerDeployment/main.go | 58 - .../DeleteGameServerDeployment/main.go | 56 - .../FetchDeploymentState/main.go | 53 - .../GetGameServerDeployment/main.go | 53 - .../GetGameServerDeploymentRollout/main.go | 53 - .../ListGameServerDeployments/main.go | 60 - .../main.go | 53 - .../UpdateGameServerDeployment/main.go | 58 - .../UpdateGameServerDeploymentRollout/main.go | 58 - .../RealmsClient/CreateRealm/main.go | 58 - .../RealmsClient/DeleteRealm/main.go | 56 - .../apiv1beta/RealmsClient/GetRealm/main.go | 53 - .../apiv1beta/RealmsClient/ListRealms/main.go | 60 - .../RealmsClient/PreviewRealmUpdate/main.go | 53 - .../RealmsClient/UpdateRealm/main.go | 58 - ...t_metadata.google.cloud.gaming.v1beta.json | 1257 ----------- internal/generated/snippets/go.mod | 29 +- internal/generated/snippets/go.sum | 53 +- internal/postprocessor/config.yaml | 7 - release-please-config-yoshi-submodules.json | 3 - 107 files changed, 53 insertions(+), 37666 deletions(-) delete mode 100644 gaming/CHANGES.md delete mode 100644 gaming/README.md delete mode 100644 gaming/aliasshim/aliasshim.go delete mode 100755 gaming/apiv1/doc.go delete mode 100755 gaming/apiv1/game_server_clusters_client.go delete mode 100644 gaming/apiv1/game_server_clusters_client_example_test.go delete mode 100755 gaming/apiv1/game_server_configs_client.go delete mode 100644 gaming/apiv1/game_server_configs_client_example_test.go delete mode 100755 gaming/apiv1/game_server_deployments_client.go delete mode 100644 gaming/apiv1/game_server_deployments_client_example_test.go delete mode 100755 gaming/apiv1/gamingpb/common.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_clusters.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_clusters_service.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_configs.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_configs_service.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_deployments.pb.go delete mode 100755 gaming/apiv1/gamingpb/game_server_deployments_service.pb.go delete mode 100755 gaming/apiv1/gamingpb/realms.pb.go delete mode 100755 gaming/apiv1/gamingpb/realms_service.pb.go delete mode 100755 gaming/apiv1/realms_client.go delete mode 100644 gaming/apiv1/realms_client_example_test.go delete mode 100644 gaming/apiv1/version.go delete mode 100755 gaming/apiv1beta/doc.go delete mode 100755 gaming/apiv1beta/game_server_clusters_client.go delete mode 100644 gaming/apiv1beta/game_server_clusters_client_example_test.go delete mode 100755 gaming/apiv1beta/game_server_configs_client.go delete mode 100644 gaming/apiv1beta/game_server_configs_client_example_test.go delete mode 100755 gaming/apiv1beta/game_server_deployments_client.go delete mode 100644 gaming/apiv1beta/game_server_deployments_client_example_test.go delete mode 100755 gaming/apiv1beta/gamingpb/common.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_clusters.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_clusters_service.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_configs.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_configs_service.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_deployments.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/game_server_deployments_service.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/realms.pb.go delete mode 100755 gaming/apiv1beta/gamingpb/realms_service.pb.go delete mode 100755 gaming/apiv1beta/realms_client.go delete mode 100644 gaming/apiv1beta/realms_client_example_test.go delete mode 100644 gaming/apiv1beta/version.go delete mode 100644 gaming/go.mod delete mode 100644 gaming/go.sum delete mode 100644 gaming/internal/version.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go delete mode 100644 internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index 356f7434fcfb..68058d1f59e0 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -103,8 +103,6 @@ deep-remove-regex: - /functions/apiv1/ - /functions/apiv2/ - /functions/apiv2beta/ - - /gaming/apiv1/ - - /gaming/apiv1beta/ - /gkebackup/apiv1/ - /gkeconnect/gateway/apiv1beta1/ - /gkehub/apiv1beta1/ @@ -217,8 +215,6 @@ deep-remove-regex: - /internal/generated/snippets/functions/apiv1/ - /internal/generated/snippets/functions/apiv2/ - /internal/generated/snippets/functions/apiv2beta/ - - /internal/generated/snippets/gaming/apiv1/ - - /internal/generated/snippets/gaming/apiv1beta/ - /internal/generated/snippets/gkebackup/apiv1/ - /internal/generated/snippets/gkeconnect/gateway/apiv1beta1/ - /internal/generated/snippets/gkehub/apiv1beta1/ @@ -700,10 +696,6 @@ deep-copy-regex: dest: / - source: /google/cloud/functions/v2beta/cloud.google.com/go dest: / - - source: /google/cloud/gaming/v1/cloud.google.com/go - dest: / - - source: /google/cloud/gaming/v1beta/cloud.google.com/go - dest: / - source: /google/cloud/gkebackup/v1/cloud.google.com/go dest: / - source: /google/cloud/gkeconnect/gateway/v1beta1/cloud.google.com/go @@ -787,7 +779,7 @@ deep-copy-regex: - source: /google/cloud/orchestration/airflow/service/v1/cloud.google.com/go dest: / - source: /google/cloud/orgpolicy/v1/cloud.google.com/go - dest: / + dest: / - source: /google/cloud/orgpolicy/v2/cloud.google.com/go dest: / - source: /google/cloud/osconfig/agentendpoint/v1/cloud.google.com/go diff --git a/.release-please-manifest-submodules.json b/.release-please-manifest-submodules.json index 12750bc1f577..423148c7bcf4 100644 --- a/.release-please-manifest-submodules.json +++ b/.release-please-manifest-submodules.json @@ -52,7 +52,6 @@ "eventarc": "1.12.1", "filestore": "1.7.1", "functions": "1.15.1", - "gaming": "1.10.1", "gkebackup": "1.3.0", "gkeconnect": "0.8.1", "gkehub": "0.14.1", diff --git a/gaming/CHANGES.md b/gaming/CHANGES.md deleted file mode 100644 index d402111f590f..000000000000 --- a/gaming/CHANGES.md +++ /dev/null @@ -1,108 +0,0 @@ -# Changes - -## [1.10.1](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.10.0...gaming/v1.10.1) (2023-06-20) - - -### Bug Fixes - -* **gaming:** REST query UpdateMask bug ([df52820](https://github.com/googleapis/google-cloud-go/commit/df52820b0e7721954809a8aa8700b93c5662dc9b)) - -## [1.10.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.9.1...gaming/v1.10.0) (2023-05-30) - - -### Features - -* **gaming:** Update all direct dependencies ([b340d03](https://github.com/googleapis/google-cloud-go/commit/b340d030f2b52a4ce48846ce63984b28583abde6)) - -## [1.9.1](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.9.0...gaming/v1.9.1) (2023-05-08) - - -### Bug Fixes - -* **gaming:** Update grpc to v1.55.0 ([1147ce0](https://github.com/googleapis/google-cloud-go/commit/1147ce02a990276ca4f8ab7a1ab65c14da4450ef)) - -## [1.9.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.8.0...gaming/v1.9.0) (2023-01-04) - - -### Features - -* **gaming:** Add REST client ([06a54a1](https://github.com/googleapis/google-cloud-go/commit/06a54a16a5866cce966547c51e203b9e09a25bc0)) - -## [1.8.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.7.0...gaming/v1.8.0) (2022-11-03) - - -### Features - -* **gaming:** rewrite signatures in terms of new location ([3c4b2b3](https://github.com/googleapis/google-cloud-go/commit/3c4b2b34565795537aac1661e6af2442437e34ad)) - -## [1.7.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.6.0...gaming/v1.7.0) (2022-10-25) - - -### Features - -* **gaming:** start generating stubs dir ([de2d180](https://github.com/googleapis/google-cloud-go/commit/de2d18066dc613b72f6f8db93ca60146dabcfdcc)) - -## [1.6.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.5.0...gaming/v1.6.0) (2022-09-21) - - -### Features - -* **gaming:** rewrite signatures in terms of new types for betas ([9f303f9](https://github.com/googleapis/google-cloud-go/commit/9f303f9efc2e919a9a6bd828f3cdb1fcb3b8b390)) - -## [1.5.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.4.0...gaming/v1.5.0) (2022-09-19) - - -### Features - -* **gaming:** start generating proto message types ([563f546](https://github.com/googleapis/google-cloud-go/commit/563f546262e68102644db64134d1071fc8caa383)) - -## [1.4.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.3.1...gaming/v1.4.0) (2022-09-15) - - -### Features - -* **gaming/apiv1beta:** add REST transport ([f7b0822](https://github.com/googleapis/google-cloud-go/commit/f7b082212b1e46ff2f4126b52d49618785c2e8ca)) - -## [1.3.1](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.3.0...gaming/v1.3.1) (2022-07-12) - - -### Bug Fixes - -* **gaming:** publish v1beta LRO HTTP rules ([963efe2](https://github.com/googleapis/google-cloud-go/commit/963efe22cf67bc04fed09b5fa8f9cb20b9edf1a3)) - -## [1.3.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.2.0...gaming/v1.3.0) (2022-06-29) - - -### Features - -* **gaming:** temporarily remove REGAPIC support ([199b725](https://github.com/googleapis/google-cloud-go/commit/199b7250f474b1a6f53dcf0aac0c2966f4987b68)) - -## [1.2.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.1.0...gaming/v1.2.0) (2022-02-23) - - -### Features - -* **gaming:** set versionClient to module version ([55f0d92](https://github.com/googleapis/google-cloud-go/commit/55f0d92bf112f14b024b4ab0076c9875a17423c9)) - -## [1.1.0](https://github.com/googleapis/google-cloud-go/compare/gaming/v1.0.0...gaming/v1.1.0) (2022-02-14) - - -### Features - -* **gaming:** add file for tracking version ([17b36ea](https://github.com/googleapis/google-cloud-go/commit/17b36ead42a96b1a01105122074e65164357519e)) - -## 1.0.0 - -Stabilize GA surface. - -## [0.2.0](https://www.github.com/googleapis/google-cloud-go/compare/gaming/v0.1.0...gaming/v0.2.0) (2021-08-30) - - -### Features - -* **gaming:** support version reporting API ([cd65cec](https://www.github.com/googleapis/google-cloud-go/commit/cd65cecf15c4a01648da7f8f4f4d497772961510)) - -## v0.1.0 - -This is the first tag to carve out gaming as its own module. See -[Add a module to a multi-module repository](https://github.com/golang/go/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository). diff --git a/gaming/README.md b/gaming/README.md deleted file mode 100644 index 981a52ee2dfc..000000000000 --- a/gaming/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Game Services API - -[![Go Reference](https://pkg.go.dev/badge/cloud.google.com/go/gaming.svg)](https://pkg.go.dev/cloud.google.com/go/gaming) - -Go Client Library for Game Services API. - -## Install - -```bash -go get cloud.google.com/go/gaming -``` - -## Stability - -The stability of this module is indicated by SemVer. - -However, a `v1+` module may have breaking changes in two scenarios: - -* Packages with `alpha` or `beta` in the import path -* The GoDoc has an explicit stability disclaimer (for example, for an experimental feature). - -## Go Version Support - -See the [Go Versions Supported](https://github.com/googleapis/google-cloud-go#go-versions-supported) -section in the root directory's README. - -## Authorization - -See the [Authorization](https://github.com/googleapis/google-cloud-go#authorization) -section in the root directory's README. - -## Contributing - -Contributions are welcome. Please, see the [CONTRIBUTING](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md) -document for details. - -Please note that this project is released with a Contributor Code of Conduct. -By participating in this project you agree to abide by its terms. See -[Contributor Code of Conduct](https://github.com/GoogleCloudPlatform/google-cloud-go/blob/main/CONTRIBUTING.md#contributor-code-of-conduct) -for more information. diff --git a/gaming/aliasshim/aliasshim.go b/gaming/aliasshim/aliasshim.go deleted file mode 100644 index 0a02061ceeb4..000000000000 --- a/gaming/aliasshim/aliasshim.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2022 Google 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. - -// Code generated by gapicgen. DO NOT EDIT. - -//go:build aliasshim -// +build aliasshim - -// Package aliasshim is used to keep the dependency on go-genproto during our -// go-genproto to google-cloud-go stubs migration window. -package aliasshim - -import _ "google.golang.org/genproto/protobuf/api" diff --git a/gaming/apiv1/doc.go b/gaming/apiv1/doc.go deleted file mode 100755 index d29a4f517c44..000000000000 --- a/gaming/apiv1/doc.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// Package gaming is an auto-generated package for the -// Game Services API. -// -// Deploy and manage infrastructure for global multiplayer gaming -// experiences. -// -// # General documentation -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. -// -// # Example usage -// -// To get started with this package, create a client. -// -// ctx := context.Background() -// // This snippet has been automatically generated and should be regarded as a code template only. -// // It will require modifications to work: -// // - It may require correct/in-range values for request initialization. -// // - It may require specifying regional endpoints when creating the service client as shown in: -// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options -// c, err := gaming.NewGameServerClustersClient(ctx) -// if err != nil { -// // TODO: Handle error. -// } -// defer c.Close() -// -// The client will use your default application credentials. Clients should be reused instead of created as needed. -// The methods of Client are safe for concurrent use by multiple goroutines. -// The returned client must be Closed when it is done being used. -// -// # Using the Client -// -// The following is an example of making an API call with the newly created client. -// -// ctx := context.Background() -// // This snippet has been automatically generated and should be regarded as a code template only. -// // It will require modifications to work: -// // - It may require correct/in-range values for request initialization. -// // - It may require specifying regional endpoints when creating the service client as shown in: -// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options -// c, err := gaming.NewGameServerClustersClient(ctx) -// if err != nil { -// // TODO: Handle error. -// } -// defer c.Close() -// -// req := &gamingpb.ListGameServerClustersRequest{ -// // TODO: Fill request struct fields. -// // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerClustersRequest. -// } -// it := c.ListGameServerClusters(ctx, req) -// for { -// resp, err := it.Next() -// if err == iterator.Done { -// break -// } -// if err != nil { -// // TODO: Handle error. -// } -// // TODO: Use resp. -// _ = resp -// } -// -// # Inspecting errors -// -// To see examples of how to inspect errors returned by this package please reference -// [Inspecting errors](https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors). -// -// # Use of Context -// -// The ctx passed to NewGameServerClustersClient is used for authentication requests and -// for creating the underlying connection, but is not used for subsequent calls. -// Individual methods on the client use the ctx given to them. -// -// To close the open connection, use the Close() method. -package gaming // import "cloud.google.com/go/gaming/apiv1" - -import ( - "context" - "net/http" - - "google.golang.org/api/option" - "google.golang.org/grpc/metadata" -) - -// For more information on implementing a client constructor hook, see -// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors. -type clientHookParams struct{} -type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) - -var versionClient string - -func getVersionClient() string { - if versionClient == "" { - return "UNKNOWN" - } - return versionClient -} - -func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { - out, _ := metadata.FromOutgoingContext(ctx) - out = out.Copy() - for _, md := range mds { - for k, v := range md { - out[k] = append(out[k], v...) - } - } - return metadata.NewOutgoingContext(ctx, out) -} - -// DefaultAuthScopes reports the default set of authentication scopes to use with this package. -func DefaultAuthScopes() []string { - return []string{ - "https://www.googleapis.com/auth/cloud-platform", - } -} - -// buildHeaders extracts metadata from the outgoing context, joins it with any other -// given metadata, and converts them into a http.Header. -func buildHeaders(ctx context.Context, mds ...metadata.MD) http.Header { - if cmd, ok := metadata.FromOutgoingContext(ctx); ok { - mds = append(mds, cmd) - } - md := metadata.Join(mds...) - return http.Header(md) -} diff --git a/gaming/apiv1/game_server_clusters_client.go b/gaming/apiv1/game_server_clusters_client.go deleted file mode 100755 index d16adb258f9b..000000000000 --- a/gaming/apiv1/game_server_clusters_client.go +++ /dev/null @@ -1,1544 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerClustersClientHook clientHook - -// GameServerClustersCallOptions contains the retry settings for each method of GameServerClustersClient. -type GameServerClustersCallOptions struct { - ListGameServerClusters []gax.CallOption - GetGameServerCluster []gax.CallOption - CreateGameServerCluster []gax.CallOption - PreviewCreateGameServerCluster []gax.CallOption - DeleteGameServerCluster []gax.CallOption - PreviewDeleteGameServerCluster []gax.CallOption - UpdateGameServerCluster []gax.CallOption - PreviewUpdateGameServerCluster []gax.CallOption -} - -func defaultGameServerClustersGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerClustersCallOptions() *GameServerClustersCallOptions { - return &GameServerClustersCallOptions{ - ListGameServerClusters: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(120000 * time.Millisecond), - }, - PreviewCreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - DeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewDeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - UpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewUpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultGameServerClustersRESTCallOptions() *GameServerClustersCallOptions { - return &GameServerClustersCallOptions{ - ListGameServerClusters: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(120000 * time.Millisecond), - }, - PreviewCreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - DeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewDeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - UpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewUpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalGameServerClustersClient is an interface that defines the methods available from Game Services API. -type internalGameServerClustersClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerClusters(context.Context, *gamingpb.ListGameServerClustersRequest, ...gax.CallOption) *GameServerClusterIterator - GetGameServerCluster(context.Context, *gamingpb.GetGameServerClusterRequest, ...gax.CallOption) (*gamingpb.GameServerCluster, error) - CreateGameServerCluster(context.Context, *gamingpb.CreateGameServerClusterRequest, ...gax.CallOption) (*CreateGameServerClusterOperation, error) - CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation - PreviewCreateGameServerCluster(context.Context, *gamingpb.PreviewCreateGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) - DeleteGameServerCluster(context.Context, *gamingpb.DeleteGameServerClusterRequest, ...gax.CallOption) (*DeleteGameServerClusterOperation, error) - DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation - PreviewDeleteGameServerCluster(context.Context, *gamingpb.PreviewDeleteGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) - UpdateGameServerCluster(context.Context, *gamingpb.UpdateGameServerClusterRequest, ...gax.CallOption) (*UpdateGameServerClusterOperation, error) - UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation - PreviewUpdateGameServerCluster(context.Context, *gamingpb.PreviewUpdateGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) -} - -// GameServerClustersClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -type GameServerClustersClient struct { - // The internal transport-dependent client. - internalClient internalGameServerClustersClient - - // The call options for this service. - CallOptions *GameServerClustersCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerClustersClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerClustersClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerClustersClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerClusters lists game server clusters in a given project and location. -func (c *GameServerClustersClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - return c.internalClient.ListGameServerClusters(ctx, req, opts...) -} - -// GetGameServerCluster gets details of a single game server cluster. -func (c *GameServerClustersClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - return c.internalClient.GetGameServerCluster(ctx, req, opts...) -} - -// CreateGameServerCluster creates a new game server cluster in a given project and location. -func (c *GameServerClustersClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - return c.internalClient.CreateGameServerCluster(ctx, req, opts...) -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - return c.internalClient.CreateGameServerClusterOperation(name) -} - -// PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and -// location. -func (c *GameServerClustersClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - return c.internalClient.PreviewCreateGameServerCluster(ctx, req, opts...) -} - -// DeleteGameServerCluster deletes a single game server cluster. -func (c *GameServerClustersClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - return c.internalClient.DeleteGameServerCluster(ctx, req, opts...) -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - return c.internalClient.DeleteGameServerClusterOperation(name) -} - -// PreviewDeleteGameServerCluster previews deletion of a single game server cluster. -func (c *GameServerClustersClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - return c.internalClient.PreviewDeleteGameServerCluster(ctx, req, opts...) -} - -// UpdateGameServerCluster patches a single game server cluster. -func (c *GameServerClustersClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - return c.internalClient.UpdateGameServerCluster(ctx, req, opts...) -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - return c.internalClient.UpdateGameServerClusterOperation(name) -} - -// PreviewUpdateGameServerCluster previews updating a GameServerCluster. -func (c *GameServerClustersClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - return c.internalClient.PreviewUpdateGameServerCluster(ctx, req, opts...) -} - -// gameServerClustersGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerClustersGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerClustersClient - CallOptions **GameServerClustersCallOptions - - // The gRPC API client. - gameServerClustersClient gamingpb.GameServerClustersServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerClustersClient creates a new game server clusters service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -func NewGameServerClustersClient(ctx context.Context, opts ...option.ClientOption) (*GameServerClustersClient, error) { - clientOpts := defaultGameServerClustersGRPCClientOptions() - if newGameServerClustersClientHook != nil { - hookOpts, err := newGameServerClustersClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerClustersClient{CallOptions: defaultGameServerClustersCallOptions()} - - c := &gameServerClustersGRPCClient{ - connPool: connPool, - gameServerClustersClient: gamingpb.NewGameServerClustersServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerClustersGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerClustersGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerClustersGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerClustersRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerClustersClient - CallOptions **GameServerClustersCallOptions -} - -// NewGameServerClustersRESTClient creates a new game server clusters service rest client. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -func NewGameServerClustersRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerClustersClient, error) { - clientOpts := append(defaultGameServerClustersRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerClustersRESTCallOptions() - c := &gameServerClustersRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerClustersClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerClustersRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerClustersRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerClustersRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerClustersRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerClustersGRPCClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerClusters[0:len((*c.CallOptions).ListGameServerClusters):len((*c.CallOptions).ListGameServerClusters)], opts...) - it := &GameServerClusterIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerClustersRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerCluster, string, error) { - resp := &gamingpb.ListGameServerClustersResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.ListGameServerClusters(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerClusters(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerClustersGRPCClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerCluster[0:len((*c.CallOptions).GetGameServerCluster):len((*c.CallOptions).GetGameServerCluster)], opts...) - var resp *gamingpb.GameServerCluster - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.GetGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerCluster[0:len((*c.CallOptions).CreateGameServerCluster):len((*c.CallOptions).CreateGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.CreateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewCreateGameServerCluster[0:len((*c.CallOptions).PreviewCreateGameServerCluster):len((*c.CallOptions).PreviewCreateGameServerCluster)], opts...) - var resp *gamingpb.PreviewCreateGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewCreateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerCluster[0:len((*c.CallOptions).DeleteGameServerCluster):len((*c.CallOptions).DeleteGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.DeleteGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewDeleteGameServerCluster[0:len((*c.CallOptions).PreviewDeleteGameServerCluster):len((*c.CallOptions).PreviewDeleteGameServerCluster)], opts...) - var resp *gamingpb.PreviewDeleteGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewDeleteGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerCluster[0:len((*c.CallOptions).UpdateGameServerCluster):len((*c.CallOptions).UpdateGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.UpdateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewUpdateGameServerCluster[0:len((*c.CallOptions).PreviewUpdateGameServerCluster):len((*c.CallOptions).PreviewUpdateGameServerCluster)], opts...) - var resp *gamingpb.PreviewUpdateGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewUpdateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListGameServerClusters lists game server clusters in a given project and location. -func (c *gameServerClustersRESTClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - it := &GameServerClusterIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerClustersRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerCluster, string, error) { - resp := &gamingpb.ListGameServerClustersResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/gameServerClusters", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - if req.GetView() != 0 { - params.Add("view", fmt.Sprintf("%v", req.GetView())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerClusters(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerCluster gets details of a single game server cluster. -func (c *gameServerClustersRESTClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetView() != 0 { - params.Add("view", fmt.Sprintf("%v", req.GetView())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerCluster[0:len((*c.CallOptions).GetGameServerCluster):len((*c.CallOptions).GetGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerCluster{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerCluster creates a new game server cluster in a given project and location. -func (c *gameServerClustersRESTClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/gameServerClusters", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("gameServerClusterId", fmt.Sprintf("%v", req.GetGameServerClusterId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and -// location. -func (c *gameServerClustersRESTClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/gameServerClusters:previewCreate", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("gameServerClusterId", fmt.Sprintf("%v", req.GetGameServerClusterId())) - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetView() != 0 { - params.Add("view", fmt.Sprintf("%v", req.GetView())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewCreateGameServerCluster[0:len((*c.CallOptions).PreviewCreateGameServerCluster):len((*c.CallOptions).PreviewCreateGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewCreateGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// DeleteGameServerCluster deletes a single game server cluster. -func (c *gameServerClustersRESTClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewDeleteGameServerCluster previews deletion of a single game server cluster. -func (c *gameServerClustersRESTClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v:previewDelete", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewDeleteGameServerCluster[0:len((*c.CallOptions).PreviewDeleteGameServerCluster):len((*c.CallOptions).PreviewDeleteGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewDeleteGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// UpdateGameServerCluster patches a single game server cluster. -func (c *gameServerClustersRESTClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetGameServerCluster().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewUpdateGameServerCluster previews updating a GameServerCluster. -func (c *gameServerClustersRESTClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v:previewUpdate", req.GetGameServerCluster().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewUpdateGameServerCluster[0:len((*c.CallOptions).PreviewUpdateGameServerCluster):len((*c.CallOptions).PreviewUpdateGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewUpdateGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerClusterOperation manages a long-running operation from CreateGameServerCluster. -type CreateGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - override := fmt.Sprintf("/v1/%s", name) - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerClusterOperation manages a long-running operation from DeleteGameServerCluster. -type DeleteGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - override := fmt.Sprintf("/v1/%s", name) - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerClusterOperation manages a long-running operation from UpdateGameServerCluster. -type UpdateGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - override := fmt.Sprintf("/v1/%s", name) - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// GameServerClusterIterator manages a stream of *gamingpb.GameServerCluster. -type GameServerClusterIterator struct { - items []*gamingpb.GameServerCluster - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerCluster, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerClusterIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerClusterIterator) Next() (*gamingpb.GameServerCluster, error) { - var item *gamingpb.GameServerCluster - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerClusterIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerClusterIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1/game_server_clusters_client_example_test.go b/gaming/apiv1/game_server_clusters_client_example_test.go deleted file mode 100644 index 2bd08083155a..000000000000 --- a/gaming/apiv1/game_server_clusters_client_example_test.go +++ /dev/null @@ -1,278 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerClustersClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerClustersRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerClustersClient_ListGameServerClusters() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerClustersRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerClustersRequest. - } - it := c.ListGameServerClusters(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerClustersClient_GetGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerClusterRequest. - } - resp, err := c.GetGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_CreateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerClusterRequest. - } - op, err := c.CreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewCreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewCreateGameServerClusterRequest. - } - resp, err := c.PreviewCreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_DeleteGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerClusterRequest. - } - op, err := c.DeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewDeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewDeleteGameServerClusterRequest. - } - resp, err := c.PreviewDeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_UpdateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerClusterRequest. - } - op, err := c.UpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_PreviewUpdateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewUpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewUpdateGameServerClusterRequest. - } - resp, err := c.PreviewUpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1/game_server_configs_client.go b/gaming/apiv1/game_server_configs_client.go deleted file mode 100755 index ede67ab2cd3e..000000000000 --- a/gaming/apiv1/game_server_configs_client.go +++ /dev/null @@ -1,983 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerConfigsClientHook clientHook - -// GameServerConfigsCallOptions contains the retry settings for each method of GameServerConfigsClient. -type GameServerConfigsCallOptions struct { - ListGameServerConfigs []gax.CallOption - GetGameServerConfig []gax.CallOption - CreateGameServerConfig []gax.CallOption - DeleteGameServerConfig []gax.CallOption -} - -func defaultGameServerConfigsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerConfigsCallOptions() *GameServerConfigsCallOptions { - return &GameServerConfigsCallOptions{ - ListGameServerConfigs: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - } -} - -func defaultGameServerConfigsRESTCallOptions() *GameServerConfigsCallOptions { - return &GameServerConfigsCallOptions{ - ListGameServerConfigs: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - } -} - -// internalGameServerConfigsClient is an interface that defines the methods available from Game Services API. -type internalGameServerConfigsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerConfigs(context.Context, *gamingpb.ListGameServerConfigsRequest, ...gax.CallOption) *GameServerConfigIterator - GetGameServerConfig(context.Context, *gamingpb.GetGameServerConfigRequest, ...gax.CallOption) (*gamingpb.GameServerConfig, error) - CreateGameServerConfig(context.Context, *gamingpb.CreateGameServerConfigRequest, ...gax.CallOption) (*CreateGameServerConfigOperation, error) - CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation - DeleteGameServerConfig(context.Context, *gamingpb.DeleteGameServerConfigRequest, ...gax.CallOption) (*DeleteGameServerConfigOperation, error) - DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation -} - -// GameServerConfigsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server config configures the game servers in an Agones fleet. -type GameServerConfigsClient struct { - // The internal transport-dependent client. - internalClient internalGameServerConfigsClient - - // The call options for this service. - CallOptions *GameServerConfigsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerConfigsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerConfigsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerConfigsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerConfigs lists game server configs in a given project, location, and game server -// deployment. -func (c *GameServerConfigsClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - return c.internalClient.ListGameServerConfigs(ctx, req, opts...) -} - -// GetGameServerConfig gets details of a single game server config. -func (c *GameServerConfigsClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - return c.internalClient.GetGameServerConfig(ctx, req, opts...) -} - -// CreateGameServerConfig creates a new game server config in a given project, location, and game -// server deployment. Game server configs are immutable, and are not applied -// until referenced in the game server deployment rollout resource. -func (c *GameServerConfigsClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - return c.internalClient.CreateGameServerConfig(ctx, req, opts...) -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *GameServerConfigsClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - return c.internalClient.CreateGameServerConfigOperation(name) -} - -// DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game -// server config is referenced in a game server deployment rollout. -func (c *GameServerConfigsClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - return c.internalClient.DeleteGameServerConfig(ctx, req, opts...) -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *GameServerConfigsClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - return c.internalClient.DeleteGameServerConfigOperation(name) -} - -// gameServerConfigsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerConfigsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerConfigsClient - CallOptions **GameServerConfigsCallOptions - - // The gRPC API client. - gameServerConfigsClient gamingpb.GameServerConfigsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerConfigsClient creates a new game server configs service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server config configures the game servers in an Agones fleet. -func NewGameServerConfigsClient(ctx context.Context, opts ...option.ClientOption) (*GameServerConfigsClient, error) { - clientOpts := defaultGameServerConfigsGRPCClientOptions() - if newGameServerConfigsClientHook != nil { - hookOpts, err := newGameServerConfigsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerConfigsClient{CallOptions: defaultGameServerConfigsCallOptions()} - - c := &gameServerConfigsGRPCClient{ - connPool: connPool, - gameServerConfigsClient: gamingpb.NewGameServerConfigsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerConfigsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerConfigsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerConfigsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerConfigsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerConfigsClient - CallOptions **GameServerConfigsCallOptions -} - -// NewGameServerConfigsRESTClient creates a new game server configs service rest client. -// -// The game server config configures the game servers in an Agones fleet. -func NewGameServerConfigsRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerConfigsClient, error) { - clientOpts := append(defaultGameServerConfigsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerConfigsRESTCallOptions() - c := &gameServerConfigsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerConfigsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerConfigsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerConfigsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerConfigsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerConfigsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerConfigsGRPCClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerConfigs[0:len((*c.CallOptions).ListGameServerConfigs):len((*c.CallOptions).ListGameServerConfigs)], opts...) - it := &GameServerConfigIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerConfigsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerConfig, string, error) { - resp := &gamingpb.ListGameServerConfigsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.ListGameServerConfigs(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerConfigs(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerConfigsGRPCClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerConfig[0:len((*c.CallOptions).GetGameServerConfig):len((*c.CallOptions).GetGameServerConfig)], opts...) - var resp *gamingpb.GameServerConfig - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.GetGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerConfigsGRPCClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerConfig[0:len((*c.CallOptions).CreateGameServerConfig):len((*c.CallOptions).CreateGameServerConfig)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.CreateGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerConfigsGRPCClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerConfig[0:len((*c.CallOptions).DeleteGameServerConfig):len((*c.CallOptions).DeleteGameServerConfig)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.DeleteGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -// ListGameServerConfigs lists game server configs in a given project, location, and game server -// deployment. -func (c *gameServerConfigsRESTClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - it := &GameServerConfigIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerConfigsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerConfig, string, error) { - resp := &gamingpb.ListGameServerConfigsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/configs", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerConfigs(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerConfig gets details of a single game server config. -func (c *gameServerConfigsRESTClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerConfig[0:len((*c.CallOptions).GetGameServerConfig):len((*c.CallOptions).GetGameServerConfig)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerConfig{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerConfig creates a new game server config in a given project, location, and game -// server deployment. Game server configs are immutable, and are not applied -// until referenced in the game server deployment rollout resource. -func (c *gameServerConfigsRESTClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerConfig() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/configs", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("configId", fmt.Sprintf("%v", req.GetConfigId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game -// server config is referenced in a game server deployment rollout. -func (c *gameServerConfigsRESTClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// CreateGameServerConfigOperation manages a long-running operation from CreateGameServerConfig. -type CreateGameServerConfigOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsGRPCClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsRESTClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - override := fmt.Sprintf("/v1/%s", name) - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerConfig - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerConfig - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerConfigOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerConfigOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerConfigOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerConfigOperation manages a long-running operation from DeleteGameServerConfig. -type DeleteGameServerConfigOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsGRPCClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsRESTClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - override := fmt.Sprintf("/v1/%s", name) - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerConfigOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerConfigOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerConfigOperation) Name() string { - return op.lro.Name() -} - -// GameServerConfigIterator manages a stream of *gamingpb.GameServerConfig. -type GameServerConfigIterator struct { - items []*gamingpb.GameServerConfig - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerConfig, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerConfigIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerConfigIterator) Next() (*gamingpb.GameServerConfig, error) { - var item *gamingpb.GameServerConfig - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerConfigIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerConfigIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1/game_server_configs_client_example_test.go b/gaming/apiv1/game_server_configs_client_example_test.go deleted file mode 100644 index 746ebd4030a3..000000000000 --- a/gaming/apiv1/game_server_configs_client_example_test.go +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerConfigsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerConfigsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerConfigsClient_ListGameServerConfigs() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerConfigsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerConfigsRequest. - } - it := c.ListGameServerConfigs(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerConfigsClient_GetGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerConfigRequest. - } - resp, err := c.GetGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerConfigsClient_CreateGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerConfigRequest. - } - op, err := c.CreateGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerConfigsClient_DeleteGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerConfigRequest. - } - op, err := c.DeleteGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} diff --git a/gaming/apiv1/game_server_deployments_client.go b/gaming/apiv1/game_server_deployments_client.go deleted file mode 100755 index 22f158876cbb..000000000000 --- a/gaming/apiv1/game_server_deployments_client.go +++ /dev/null @@ -1,1730 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerDeploymentsClientHook clientHook - -// GameServerDeploymentsCallOptions contains the retry settings for each method of GameServerDeploymentsClient. -type GameServerDeploymentsCallOptions struct { - ListGameServerDeployments []gax.CallOption - GetGameServerDeployment []gax.CallOption - CreateGameServerDeployment []gax.CallOption - DeleteGameServerDeployment []gax.CallOption - UpdateGameServerDeployment []gax.CallOption - GetGameServerDeploymentRollout []gax.CallOption - UpdateGameServerDeploymentRollout []gax.CallOption - PreviewGameServerDeploymentRollout []gax.CallOption - FetchDeploymentState []gax.CallOption -} - -func defaultGameServerDeploymentsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerDeploymentsCallOptions() *GameServerDeploymentsCallOptions { - return &GameServerDeploymentsCallOptions{ - ListGameServerDeployments: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - GetGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - UpdateGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - FetchDeploymentState: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultGameServerDeploymentsRESTCallOptions() *GameServerDeploymentsCallOptions { - return &GameServerDeploymentsCallOptions{ - ListGameServerDeployments: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - GetGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - UpdateGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - FetchDeploymentState: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalGameServerDeploymentsClient is an interface that defines the methods available from Game Services API. -type internalGameServerDeploymentsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerDeployments(context.Context, *gamingpb.ListGameServerDeploymentsRequest, ...gax.CallOption) *GameServerDeploymentIterator - GetGameServerDeployment(context.Context, *gamingpb.GetGameServerDeploymentRequest, ...gax.CallOption) (*gamingpb.GameServerDeployment, error) - CreateGameServerDeployment(context.Context, *gamingpb.CreateGameServerDeploymentRequest, ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) - CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation - DeleteGameServerDeployment(context.Context, *gamingpb.DeleteGameServerDeploymentRequest, ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) - DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation - UpdateGameServerDeployment(context.Context, *gamingpb.UpdateGameServerDeploymentRequest, ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) - UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation - GetGameServerDeploymentRollout(context.Context, *gamingpb.GetGameServerDeploymentRolloutRequest, ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) - UpdateGameServerDeploymentRollout(context.Context, *gamingpb.UpdateGameServerDeploymentRolloutRequest, ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) - UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation - PreviewGameServerDeploymentRollout(context.Context, *gamingpb.PreviewGameServerDeploymentRolloutRequest, ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) - FetchDeploymentState(context.Context, *gamingpb.FetchDeploymentStateRequest, ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) -} - -// GameServerDeploymentsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -type GameServerDeploymentsClient struct { - // The internal transport-dependent client. - internalClient internalGameServerDeploymentsClient - - // The call options for this service. - CallOptions *GameServerDeploymentsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerDeploymentsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerDeploymentsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerDeploymentsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerDeployments lists game server deployments in a given project and location. -func (c *GameServerDeploymentsClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - return c.internalClient.ListGameServerDeployments(ctx, req, opts...) -} - -// GetGameServerDeployment gets details of a single game server deployment. -func (c *GameServerDeploymentsClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - return c.internalClient.GetGameServerDeployment(ctx, req, opts...) -} - -// CreateGameServerDeployment creates a new game server deployment in a given project and location. -func (c *GameServerDeploymentsClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - return c.internalClient.CreateGameServerDeployment(ctx, req, opts...) -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - return c.internalClient.CreateGameServerDeploymentOperation(name) -} - -// DeleteGameServerDeployment deletes a single game server deployment. -func (c *GameServerDeploymentsClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - return c.internalClient.DeleteGameServerDeployment(ctx, req, opts...) -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - return c.internalClient.DeleteGameServerDeploymentOperation(name) -} - -// UpdateGameServerDeployment patches a game server deployment. -func (c *GameServerDeploymentsClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - return c.internalClient.UpdateGameServerDeployment(ctx, req, opts...) -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - return c.internalClient.UpdateGameServerDeploymentOperation(name) -} - -// GetGameServerDeploymentRollout gets details a single game server deployment rollout. -func (c *GameServerDeploymentsClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - return c.internalClient.GetGameServerDeploymentRollout(ctx, req, opts...) -} - -// UpdateGameServerDeploymentRollout patches a single game server deployment rollout. -// The method will not return an error if the update does not affect any -// existing realms. For example - if the default_game_server_config is changed -// but all existing realms use the override, that is valid. Similarly, if a -// non existing realm is explicitly called out in game_server_config_overrides -// field, that will also not result in an error. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - return c.internalClient.UpdateGameServerDeploymentRollout(ctx, req, opts...) -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - return c.internalClient.UpdateGameServerDeploymentRolloutOperation(name) -} - -// PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the -// rollout resource. -func (c *GameServerDeploymentsClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - return c.internalClient.PreviewGameServerDeploymentRollout(ctx, req, opts...) -} - -// FetchDeploymentState retrieves information about the current state of the game server -// deployment. Gathers all the Agones fleets and Agones autoscalers, -// including fleets running an older version of the game server deployment. -func (c *GameServerDeploymentsClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - return c.internalClient.FetchDeploymentState(ctx, req, opts...) -} - -// gameServerDeploymentsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerDeploymentsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerDeploymentsClient - CallOptions **GameServerDeploymentsCallOptions - - // The gRPC API client. - gameServerDeploymentsClient gamingpb.GameServerDeploymentsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerDeploymentsClient creates a new game server deployments service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -func NewGameServerDeploymentsClient(ctx context.Context, opts ...option.ClientOption) (*GameServerDeploymentsClient, error) { - clientOpts := defaultGameServerDeploymentsGRPCClientOptions() - if newGameServerDeploymentsClientHook != nil { - hookOpts, err := newGameServerDeploymentsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerDeploymentsClient{CallOptions: defaultGameServerDeploymentsCallOptions()} - - c := &gameServerDeploymentsGRPCClient{ - connPool: connPool, - gameServerDeploymentsClient: gamingpb.NewGameServerDeploymentsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerDeploymentsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerDeploymentsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerDeploymentsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerDeploymentsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerDeploymentsClient - CallOptions **GameServerDeploymentsCallOptions -} - -// NewGameServerDeploymentsRESTClient creates a new game server deployments service rest client. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -func NewGameServerDeploymentsRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerDeploymentsClient, error) { - clientOpts := append(defaultGameServerDeploymentsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerDeploymentsRESTCallOptions() - c := &gameServerDeploymentsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerDeploymentsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerDeploymentsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerDeploymentsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerDeploymentsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerDeploymentsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerDeploymentsGRPCClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerDeployments[0:len((*c.CallOptions).ListGameServerDeployments):len((*c.CallOptions).ListGameServerDeployments)], opts...) - it := &GameServerDeploymentIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerDeploymentsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerDeployment, string, error) { - resp := &gamingpb.ListGameServerDeploymentsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.ListGameServerDeployments(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerDeployments(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerDeploymentsGRPCClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerDeployment[0:len((*c.CallOptions).GetGameServerDeployment):len((*c.CallOptions).GetGameServerDeployment)], opts...) - var resp *gamingpb.GameServerDeployment - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.GetGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerDeployment[0:len((*c.CallOptions).CreateGameServerDeployment):len((*c.CallOptions).CreateGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.CreateGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerDeployment[0:len((*c.CallOptions).DeleteGameServerDeployment):len((*c.CallOptions).DeleteGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.DeleteGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_deployment.name", url.QueryEscape(req.GetGameServerDeployment().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerDeployment[0:len((*c.CallOptions).UpdateGameServerDeployment):len((*c.CallOptions).UpdateGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.UpdateGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerDeploymentRollout[0:len((*c.CallOptions).GetGameServerDeploymentRollout):len((*c.CallOptions).GetGameServerDeploymentRollout)], opts...) - var resp *gamingpb.GameServerDeploymentRollout - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.GetGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerDeploymentRollout[0:len((*c.CallOptions).UpdateGameServerDeploymentRollout):len((*c.CallOptions).UpdateGameServerDeploymentRollout)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.UpdateGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewGameServerDeploymentRollout[0:len((*c.CallOptions).PreviewGameServerDeploymentRollout):len((*c.CallOptions).PreviewGameServerDeploymentRollout)], opts...) - var resp *gamingpb.PreviewGameServerDeploymentRolloutResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.PreviewGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).FetchDeploymentState[0:len((*c.CallOptions).FetchDeploymentState):len((*c.CallOptions).FetchDeploymentState)], opts...) - var resp *gamingpb.FetchDeploymentStateResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.FetchDeploymentState(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListGameServerDeployments lists game server deployments in a given project and location. -func (c *gameServerDeploymentsRESTClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - it := &GameServerDeploymentIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerDeploymentsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerDeployment, string, error) { - resp := &gamingpb.ListGameServerDeploymentsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/gameServerDeployments", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerDeployments(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerDeployment gets details of a single game server deployment. -func (c *gameServerDeploymentsRESTClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerDeployment[0:len((*c.CallOptions).GetGameServerDeployment):len((*c.CallOptions).GetGameServerDeployment)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerDeployment{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerDeployment creates a new game server deployment in a given project and location. -func (c *gameServerDeploymentsRESTClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerDeployment() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/gameServerDeployments", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("deploymentId", fmt.Sprintf("%v", req.GetDeploymentId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteGameServerDeployment deletes a single game server deployment. -func (c *gameServerDeploymentsRESTClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// UpdateGameServerDeployment patches a game server deployment. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerDeployment() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetGameServerDeployment().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_deployment.name", url.QueryEscape(req.GetGameServerDeployment().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// GetGameServerDeploymentRollout gets details a single game server deployment rollout. -func (c *gameServerDeploymentsRESTClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/rollout", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerDeploymentRollout[0:len((*c.CallOptions).GetGameServerDeploymentRollout):len((*c.CallOptions).GetGameServerDeploymentRollout)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerDeploymentRollout{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// UpdateGameServerDeploymentRollout patches a single game server deployment rollout. -// The method will not return an error if the update does not affect any -// existing realms. For example - if the default_game_server_config is changed -// but all existing realms use the override, that is valid. Similarly, if a -// non existing realm is explicitly called out in game_server_config_overrides -// field, that will also not result in an error. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRollout() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/rollout", req.GetRollout().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the -// rollout resource. -func (c *gameServerDeploymentsRESTClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRollout() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/rollout:preview", req.GetRollout().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewGameServerDeploymentRollout[0:len((*c.CallOptions).PreviewGameServerDeploymentRollout):len((*c.CallOptions).PreviewGameServerDeploymentRollout)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewGameServerDeploymentRolloutResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// FetchDeploymentState retrieves information about the current state of the game server -// deployment. Gathers all the Agones fleets and Agones autoscalers, -// including fleets running an older version of the game server deployment. -func (c *gameServerDeploymentsRESTClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - jsonReq, err := m.Marshal(req) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v:fetchDeploymentState", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).FetchDeploymentState[0:len((*c.CallOptions).FetchDeploymentState):len((*c.CallOptions).FetchDeploymentState)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.FetchDeploymentStateResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerDeploymentOperation manages a long-running operation from CreateGameServerDeployment. -type CreateGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - override := fmt.Sprintf("/v1/%s", name) - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerDeploymentOperation manages a long-running operation from DeleteGameServerDeployment. -type DeleteGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - override := fmt.Sprintf("/v1/%s", name) - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerDeploymentOperation manages a long-running operation from UpdateGameServerDeployment. -type UpdateGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - override := fmt.Sprintf("/v1/%s", name) - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerDeploymentRolloutOperation manages a long-running operation from UpdateGameServerDeploymentRollout. -type UpdateGameServerDeploymentRolloutOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - override := fmt.Sprintf("/v1/%s", name) - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerDeploymentRolloutOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerDeploymentRolloutOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerDeploymentRolloutOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerDeploymentRolloutOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerDeploymentRolloutOperation) Name() string { - return op.lro.Name() -} - -// GameServerDeploymentIterator manages a stream of *gamingpb.GameServerDeployment. -type GameServerDeploymentIterator struct { - items []*gamingpb.GameServerDeployment - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerDeployment, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerDeploymentIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerDeploymentIterator) Next() (*gamingpb.GameServerDeployment, error) { - var item *gamingpb.GameServerDeployment - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerDeploymentIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerDeploymentIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1/game_server_deployments_client_example_test.go b/gaming/apiv1/game_server_deployments_client_example_test.go deleted file mode 100644 index 23dc1e4fac01..000000000000 --- a/gaming/apiv1/game_server_deployments_client_example_test.go +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerDeploymentsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerDeploymentsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerDeploymentsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerDeploymentsRequest. - } - it := c.ListGameServerDeployments(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerDeploymentRequest. - } - resp, err := c.GetGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerDeploymentRequest. - } - op, err := c.CreateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerDeploymentRequest. - } - op, err := c.DeleteGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerDeploymentRequest. - } - op, err := c.UpdateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerDeploymentRolloutRequest. - } - resp, err := c.GetGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerDeploymentRolloutRequest. - } - op, err := c.UpdateGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewGameServerDeploymentRolloutRequest. - } - resp, err := c.PreviewGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_FetchDeploymentState() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.FetchDeploymentStateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#FetchDeploymentStateRequest. - } - resp, err := c.FetchDeploymentState(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1/gamingpb/common.pb.go b/gaming/apiv1/gamingpb/common.pb.go deleted file mode 100755 index eb67c327d319..000000000000 --- a/gaming/apiv1/gamingpb/common.pb.go +++ /dev/null @@ -1,1587 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/common.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type OperationStatus_ErrorCode int32 - -const ( - OperationStatus_ERROR_CODE_UNSPECIFIED OperationStatus_ErrorCode = 0 - OperationStatus_INTERNAL_ERROR OperationStatus_ErrorCode = 1 - OperationStatus_PERMISSION_DENIED OperationStatus_ErrorCode = 2 - OperationStatus_CLUSTER_CONNECTION OperationStatus_ErrorCode = 3 -) - -// Enum value maps for OperationStatus_ErrorCode. -var ( - OperationStatus_ErrorCode_name = map[int32]string{ - 0: "ERROR_CODE_UNSPECIFIED", - 1: "INTERNAL_ERROR", - 2: "PERMISSION_DENIED", - 3: "CLUSTER_CONNECTION", - } - OperationStatus_ErrorCode_value = map[string]int32{ - "ERROR_CODE_UNSPECIFIED": 0, - "INTERNAL_ERROR": 1, - "PERMISSION_DENIED": 2, - "CLUSTER_CONNECTION": 3, - } -) - -func (x OperationStatus_ErrorCode) Enum() *OperationStatus_ErrorCode { - p := new(OperationStatus_ErrorCode) - *p = x - return p -} - -func (x OperationStatus_ErrorCode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OperationStatus_ErrorCode) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_gaming_v1_common_proto_enumTypes[0].Descriptor() -} - -func (OperationStatus_ErrorCode) Type() protoreflect.EnumType { - return &file_google_cloud_gaming_v1_common_proto_enumTypes[0] -} - -func (x OperationStatus_ErrorCode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OperationStatus_ErrorCode.Descriptor instead. -func (OperationStatus_ErrorCode) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{1, 0} -} - -// Represents the metadata of the long-running operation. -type OperationMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. Server-defined resource path for the target of the operation. - Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` - // Output only. Name of the verb executed by the operation. - Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` - // Output only. Human-readable status of the operation, if any. - StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` - // Output only. Identifies whether the user has requested cancellation - // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. - RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"` - // Output only. API version used to start the operation. - ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` - // Output only. List of Locations that could not be reached. - Unreachable []string `protobuf:"bytes,8,rep,name=unreachable,proto3" json:"unreachable,omitempty"` - // Output only. Operation status for Game Services API operations. Operation status is in - // the form of key-value pairs where keys are resource IDs and the values show - // the status of the operation. In case of failures, the value includes an - // error code and error message. - OperationStatus map[string]*OperationStatus `protobuf:"bytes,9,rep,name=operation_status,json=operationStatus,proto3" json:"operation_status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *OperationMetadata) Reset() { - *x = OperationMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OperationMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OperationMetadata) ProtoMessage() {} - -func (x *OperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 OperationMetadata.ProtoReflect.Descriptor instead. -func (*OperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{0} -} - -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *OperationMetadata) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *OperationMetadata) GetVerb() string { - if x != nil { - return x.Verb - } - return "" -} - -func (x *OperationMetadata) GetStatusMessage() string { - if x != nil { - return x.StatusMessage - } - return "" -} - -func (x *OperationMetadata) GetRequestedCancellation() bool { - if x != nil { - return x.RequestedCancellation - } - return false -} - -func (x *OperationMetadata) GetApiVersion() string { - if x != nil { - return x.ApiVersion - } - return "" -} - -func (x *OperationMetadata) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -func (x *OperationMetadata) GetOperationStatus() map[string]*OperationStatus { - if x != nil { - return x.OperationStatus - } - return nil -} - -type OperationStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. Whether the operation is done or still in progress. - Done bool `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"` - // The error code in case of failures. - ErrorCode OperationStatus_ErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=google.cloud.gaming.v1.OperationStatus_ErrorCode" json:"error_code,omitempty"` - // The human-readable error message. - ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *OperationStatus) Reset() { - *x = OperationStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OperationStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OperationStatus) ProtoMessage() {} - -func (x *OperationStatus) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 OperationStatus.ProtoReflect.Descriptor instead. -func (*OperationStatus) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{1} -} - -func (x *OperationStatus) GetDone() bool { - if x != nil { - return x.Done - } - return false -} - -func (x *OperationStatus) GetErrorCode() OperationStatus_ErrorCode { - if x != nil { - return x.ErrorCode - } - return OperationStatus_ERROR_CODE_UNSPECIFIED -} - -func (x *OperationStatus) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -// The label selector, used to group labels on the resources. -type LabelSelector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource labels for this selector. - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *LabelSelector) Reset() { - *x = LabelSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelSelector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelSelector) ProtoMessage() {} - -func (x *LabelSelector) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 LabelSelector.ProtoReflect.Descriptor instead. -func (*LabelSelector) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{2} -} - -func (x *LabelSelector) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -// The realm selector, used to match realm resources. -type RealmSelector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of realms to match. - Realms []string `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"` -} - -func (x *RealmSelector) Reset() { - *x = RealmSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RealmSelector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RealmSelector) ProtoMessage() {} - -func (x *RealmSelector) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 RealmSelector.ProtoReflect.Descriptor instead. -func (*RealmSelector) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{3} -} - -func (x *RealmSelector) GetRealms() []string { - if x != nil { - return x.Realms - } - return nil -} - -// The schedule of a recurring or one time event. The event's time span is -// specified by start_time and end_time. If the scheduled event's timespan is -// larger than the cron_spec + cron_job_duration, the event will be recurring. -// If only cron_spec + cron_job_duration are specified, the event is effective -// starting at the local time specified by cron_spec, and is recurring. -// -// ``` -// start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time -// cron job: cron spec start time + duration -// ``` -type Schedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The start time of the event. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // The end time of the event. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // The duration for the cron job event. The duration of the event is effective - // after the cron job's start time. - CronJobDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=cron_job_duration,json=cronJobDuration,proto3" json:"cron_job_duration,omitempty"` - // The cron definition of the scheduled event. See - // https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as - // defined by the realm. - CronSpec string `protobuf:"bytes,4,opt,name=cron_spec,json=cronSpec,proto3" json:"cron_spec,omitempty"` -} - -func (x *Schedule) Reset() { - *x = Schedule{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schedule) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schedule) ProtoMessage() {} - -func (x *Schedule) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 Schedule.ProtoReflect.Descriptor instead. -func (*Schedule) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{4} -} - -func (x *Schedule) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *Schedule) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *Schedule) GetCronJobDuration() *durationpb.Duration { - if x != nil { - return x.CronJobDuration - } - return nil -} - -func (x *Schedule) GetCronSpec() string { - if x != nil { - return x.CronSpec - } - return "" -} - -// Encapsulates Agones fleet spec and Agones autoscaler spec sources. -type SpecSource struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The game server config resource. Uses the form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`. - GameServerConfigName string `protobuf:"bytes,1,opt,name=game_server_config_name,json=gameServerConfigName,proto3" json:"game_server_config_name,omitempty"` - // The name of the Agones leet config or Agones scaling config used to derive - // the Agones fleet or Agones autoscaler spec. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *SpecSource) Reset() { - *x = SpecSource{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SpecSource) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpecSource) ProtoMessage() {} - -func (x *SpecSource) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpecSource.ProtoReflect.Descriptor instead. -func (*SpecSource) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{5} -} - -func (x *SpecSource) GetGameServerConfigName() string { - if x != nil { - return x.GameServerConfigName - } - return "" -} - -func (x *SpecSource) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Details about the Agones resources. -type TargetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The game server cluster name. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. - GameServerClusterName string `protobuf:"bytes,1,opt,name=game_server_cluster_name,json=gameServerClusterName,proto3" json:"game_server_cluster_name,omitempty"` - // The game server deployment name. Uses the form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`. - GameServerDeploymentName string `protobuf:"bytes,2,opt,name=game_server_deployment_name,json=gameServerDeploymentName,proto3" json:"game_server_deployment_name,omitempty"` - // Agones fleet details for game server clusters and game server deployments. - FleetDetails []*TargetDetails_TargetFleetDetails `protobuf:"bytes,3,rep,name=fleet_details,json=fleetDetails,proto3" json:"fleet_details,omitempty"` -} - -func (x *TargetDetails) Reset() { - *x = TargetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails) ProtoMessage() {} - -func (x *TargetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails.ProtoReflect.Descriptor instead. -func (*TargetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{6} -} - -func (x *TargetDetails) GetGameServerClusterName() string { - if x != nil { - return x.GameServerClusterName - } - return "" -} - -func (x *TargetDetails) GetGameServerDeploymentName() string { - if x != nil { - return x.GameServerDeploymentName - } - return "" -} - -func (x *TargetDetails) GetFleetDetails() []*TargetDetails_TargetFleetDetails { - if x != nil { - return x.FleetDetails - } - return nil -} - -// Encapsulates the Target state. -type TargetState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Details about Agones fleets. - Details []*TargetDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` -} - -func (x *TargetState) Reset() { - *x = TargetState{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetState) ProtoMessage() {} - -func (x *TargetState) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetState.ProtoReflect.Descriptor instead. -func (*TargetState) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{7} -} - -func (x *TargetState) GetDetails() []*TargetDetails { - if x != nil { - return x.Details - } - return nil -} - -// Details of the deployed Agones fleet. -type DeployedFleetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Information about the Agones fleet. - DeployedFleet *DeployedFleetDetails_DeployedFleet `protobuf:"bytes,1,opt,name=deployed_fleet,json=deployedFleet,proto3" json:"deployed_fleet,omitempty"` - // Information about the Agones autoscaler for that fleet. - DeployedAutoscaler *DeployedFleetDetails_DeployedFleetAutoscaler `protobuf:"bytes,2,opt,name=deployed_autoscaler,json=deployedAutoscaler,proto3" json:"deployed_autoscaler,omitempty"` -} - -func (x *DeployedFleetDetails) Reset() { - *x = DeployedFleetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails) ProtoMessage() {} - -func (x *DeployedFleetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{8} -} - -func (x *DeployedFleetDetails) GetDeployedFleet() *DeployedFleetDetails_DeployedFleet { - if x != nil { - return x.DeployedFleet - } - return nil -} - -func (x *DeployedFleetDetails) GetDeployedAutoscaler() *DeployedFleetDetails_DeployedFleetAutoscaler { - if x != nil { - return x.DeployedAutoscaler - } - return nil -} - -// Details of the target Agones fleet. -type TargetDetails_TargetFleetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Reference to target Agones fleet. - Fleet *TargetDetails_TargetFleetDetails_TargetFleet `protobuf:"bytes,1,opt,name=fleet,proto3" json:"fleet,omitempty"` - // Reference to target Agones fleet autoscaling policy. - Autoscaler *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler `protobuf:"bytes,2,opt,name=autoscaler,proto3" json:"autoscaler,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails) Reset() { - *x = TargetDetails_TargetFleetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails_TargetFleetDetails.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{6, 0} -} - -func (x *TargetDetails_TargetFleetDetails) GetFleet() *TargetDetails_TargetFleetDetails_TargetFleet { - if x != nil { - return x.Fleet - } - return nil -} - -func (x *TargetDetails_TargetFleetDetails) GetAutoscaler() *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler { - if x != nil { - return x.Autoscaler - } - return nil -} - -// Target Agones fleet specification. -type TargetDetails_TargetFleetDetails_TargetFleet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones fleet. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Encapsulates the source of the Agones fleet spec. - // The Agones fleet spec source. - SpecSource *SpecSource `protobuf:"bytes,2,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) Reset() { - *x = TargetDetails_TargetFleetDetails_TargetFleet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails_TargetFleet) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_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 TargetDetails_TargetFleetDetails_TargetFleet.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails_TargetFleet) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{6, 0, 0} -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -// Target Agones autoscaler policy reference. -type TargetDetails_TargetFleetDetails_TargetFleetAutoscaler struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones autoscaler. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Encapsulates the source of the Agones fleet spec. - // Details about the Agones autoscaler spec. - SpecSource *SpecSource `protobuf:"bytes,2,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) Reset() { - *x = TargetDetails_TargetFleetDetails_TargetFleetAutoscaler{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails_TargetFleetDetails_TargetFleetAutoscaler.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{6, 0, 1} -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -// Agones fleet specification and details. -type DeployedFleetDetails_DeployedFleet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones fleet. - Fleet string `protobuf:"bytes,1,opt,name=fleet,proto3" json:"fleet,omitempty"` - // The fleet spec retrieved from the Agones fleet. - FleetSpec string `protobuf:"bytes,2,opt,name=fleet_spec,json=fleetSpec,proto3" json:"fleet_spec,omitempty"` - // The source spec that is used to create the Agones fleet. - // The GameServerConfig resource may no longer exist in the system. - SpecSource *SpecSource `protobuf:"bytes,3,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` - // The current status of the Agones fleet. - // Includes count of game servers in various states. - Status *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleet) Reset() { - *x = DeployedFleetDetails_DeployedFleet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleet) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleet) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleet.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleet) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{8, 0} -} - -func (x *DeployedFleetDetails_DeployedFleet) GetFleet() string { - if x != nil { - return x.Fleet - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleet) GetFleetSpec() string { - if x != nil { - return x.FleetSpec - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleet) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -func (x *DeployedFleetDetails_DeployedFleet) GetStatus() *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus { - if x != nil { - return x.Status - } - return nil -} - -// Details about the Agones autoscaler. -type DeployedFleetDetails_DeployedFleetAutoscaler struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones autoscaler. - Autoscaler string `protobuf:"bytes,1,opt,name=autoscaler,proto3" json:"autoscaler,omitempty"` - // The source spec that is used to create the autoscaler. - // The GameServerConfig resource may no longer exist in the system. - SpecSource *SpecSource `protobuf:"bytes,4,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` - // The autoscaler spec retrieved from Agones. - FleetAutoscalerSpec string `protobuf:"bytes,3,opt,name=fleet_autoscaler_spec,json=fleetAutoscalerSpec,proto3" json:"fleet_autoscaler_spec,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) Reset() { - *x = DeployedFleetDetails_DeployedFleetAutoscaler{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleetAutoscaler) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleetAutoscaler.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleetAutoscaler) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{8, 1} -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetAutoscaler() string { - if x != nil { - return x.Autoscaler - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetFleetAutoscalerSpec() string { - if x != nil { - return x.FleetAutoscalerSpec - } - return "" -} - -// DeployedFleetStatus has details about the Agones fleets such as how many -// are running, how many allocated, and so on. -type DeployedFleetDetails_DeployedFleet_DeployedFleetStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The number of GameServer replicas in the READY state in this fleet. - ReadyReplicas int64 `protobuf:"varint,1,opt,name=ready_replicas,json=readyReplicas,proto3" json:"ready_replicas,omitempty"` - // The number of GameServer replicas in the ALLOCATED state in this fleet. - AllocatedReplicas int64 `protobuf:"varint,2,opt,name=allocated_replicas,json=allocatedReplicas,proto3" json:"allocated_replicas,omitempty"` - // The number of GameServer replicas in the RESERVED state in this fleet. - // Reserved instances won't be deleted on scale down, but won't cause - // an autoscaler to scale up. - ReservedReplicas int64 `protobuf:"varint,3,opt,name=reserved_replicas,json=reservedReplicas,proto3" json:"reserved_replicas,omitempty"` - // The total number of current GameServer replicas in this fleet. - Replicas int64 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) Reset() { - *x = DeployedFleetDetails_DeployedFleet_DeployedFleetStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_common_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleet_DeployedFleetStatus.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_common_proto_rawDescGZIP(), []int{8, 0, 0} -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReadyReplicas() int64 { - if x != nil { - return x.ReadyReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetAllocatedReplicas() int64 { - if x != nil { - return x.AllocatedReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReservedReplicas() int64 { - if x != nil { - return x.ReservedReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReplicas() int64 { - if x != nil { - return x.Replicas - } - return 0 -} - -var File_google_cloud_gaming_v1_common_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_common_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xd9, 0x04, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, 0x62, 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, - 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x6e, - 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x6f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0x6b, - 0x0a, 0x14, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, - 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, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x8d, 0x02, 0x0a, 0x0f, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x17, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x50, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, - 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, - 0x6a, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x16, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x49, 0x4e, 0x54, 0x45, - 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, - 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, - 0x44, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x43, - 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x22, 0x95, 0x01, 0x0a, 0x0d, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x49, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x53, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x22, 0xe0, 0x01, 0x0a, - 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x11, 0x63, - 0x72, 0x6f, 0x6e, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x0f, 0x63, 0x72, 0x6f, 0x6e, 0x4a, 0x6f, 0x62, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x22, - 0x57, 0x0a, 0x0a, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x35, 0x0a, - 0x17, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa3, 0x05, 0x0a, 0x0d, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x67, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x0d, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x52, 0x0c, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x1a, 0xba, 0x03, 0x0a, 0x12, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, - 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x5a, 0x0a, 0x05, 0x66, 0x6c, 0x65, 0x65, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x52, 0x05, 0x66, - 0x6c, 0x65, 0x65, 0x74, 0x12, 0x6e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x52, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, - 0x61, 0x6c, 0x65, 0x72, 0x1a, 0x66, 0x0a, 0x0b, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, - 0x65, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, 0x5f, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x70, 0x0a, 0x15, - 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x70, 0x65, - 0x63, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x4e, - 0x0a, 0x0b, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, - 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xd0, - 0x06, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x61, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, - 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x52, 0x0d, 0x64, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x75, 0x0a, 0x13, 0x64, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, - 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x52, 0x12, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x72, 0x1a, 0xa8, 0x03, 0x0a, 0x0d, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, - 0x65, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, 0x65, - 0x65, 0x74, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, - 0x6c, 0x65, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x66, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x4e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, - 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xb4, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, - 0x0e, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, - 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x1a, 0xb2, 0x01, 0x0a, - 0x17, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x32, 0x0a, - 0x15, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x66, 0x6c, - 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, - 0x63, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x50, - 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, - 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1_common_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1_common_proto_rawDescData = file_google_cloud_gaming_v1_common_proto_rawDesc -) - -func file_google_cloud_gaming_v1_common_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1_common_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1_common_proto_rawDescData) - }) - return file_google_cloud_gaming_v1_common_proto_rawDescData -} - -var file_google_cloud_gaming_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_google_cloud_gaming_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_google_cloud_gaming_v1_common_proto_goTypes = []interface{}{ - (OperationStatus_ErrorCode)(0), // 0: google.cloud.gaming.v1.OperationStatus.ErrorCode - (*OperationMetadata)(nil), // 1: google.cloud.gaming.v1.OperationMetadata - (*OperationStatus)(nil), // 2: google.cloud.gaming.v1.OperationStatus - (*LabelSelector)(nil), // 3: google.cloud.gaming.v1.LabelSelector - (*RealmSelector)(nil), // 4: google.cloud.gaming.v1.RealmSelector - (*Schedule)(nil), // 5: google.cloud.gaming.v1.Schedule - (*SpecSource)(nil), // 6: google.cloud.gaming.v1.SpecSource - (*TargetDetails)(nil), // 7: google.cloud.gaming.v1.TargetDetails - (*TargetState)(nil), // 8: google.cloud.gaming.v1.TargetState - (*DeployedFleetDetails)(nil), // 9: google.cloud.gaming.v1.DeployedFleetDetails - nil, // 10: google.cloud.gaming.v1.OperationMetadata.OperationStatusEntry - nil, // 11: google.cloud.gaming.v1.LabelSelector.LabelsEntry - (*TargetDetails_TargetFleetDetails)(nil), // 12: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails - (*TargetDetails_TargetFleetDetails_TargetFleet)(nil), // 13: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet - (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler)(nil), // 14: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - (*DeployedFleetDetails_DeployedFleet)(nil), // 15: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet - (*DeployedFleetDetails_DeployedFleetAutoscaler)(nil), // 16: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler - (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus)(nil), // 17: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration -} -var file_google_cloud_gaming_v1_common_proto_depIdxs = []int32{ - 18, // 0: google.cloud.gaming.v1.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp - 18, // 1: google.cloud.gaming.v1.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp - 10, // 2: google.cloud.gaming.v1.OperationMetadata.operation_status:type_name -> google.cloud.gaming.v1.OperationMetadata.OperationStatusEntry - 0, // 3: google.cloud.gaming.v1.OperationStatus.error_code:type_name -> google.cloud.gaming.v1.OperationStatus.ErrorCode - 11, // 4: google.cloud.gaming.v1.LabelSelector.labels:type_name -> google.cloud.gaming.v1.LabelSelector.LabelsEntry - 18, // 5: google.cloud.gaming.v1.Schedule.start_time:type_name -> google.protobuf.Timestamp - 18, // 6: google.cloud.gaming.v1.Schedule.end_time:type_name -> google.protobuf.Timestamp - 19, // 7: google.cloud.gaming.v1.Schedule.cron_job_duration:type_name -> google.protobuf.Duration - 12, // 8: google.cloud.gaming.v1.TargetDetails.fleet_details:type_name -> google.cloud.gaming.v1.TargetDetails.TargetFleetDetails - 7, // 9: google.cloud.gaming.v1.TargetState.details:type_name -> google.cloud.gaming.v1.TargetDetails - 15, // 10: google.cloud.gaming.v1.DeployedFleetDetails.deployed_fleet:type_name -> google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet - 16, // 11: google.cloud.gaming.v1.DeployedFleetDetails.deployed_autoscaler:type_name -> google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler - 2, // 12: google.cloud.gaming.v1.OperationMetadata.OperationStatusEntry.value:type_name -> google.cloud.gaming.v1.OperationStatus - 13, // 13: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.fleet:type_name -> google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet - 14, // 14: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.autoscaler:type_name -> google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - 6, // 15: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleet.spec_source:type_name -> google.cloud.gaming.v1.SpecSource - 6, // 16: google.cloud.gaming.v1.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler.spec_source:type_name -> google.cloud.gaming.v1.SpecSource - 6, // 17: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.spec_source:type_name -> google.cloud.gaming.v1.SpecSource - 17, // 18: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.status:type_name -> google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus - 6, // 19: google.cloud.gaming.v1.DeployedFleetDetails.DeployedFleetAutoscaler.spec_source:type_name -> google.cloud.gaming.v1.SpecSource - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_common_proto_init() } -func file_google_cloud_gaming_v1_common_proto_init() { - if File_google_cloud_gaming_v1_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LabelSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RealmSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schedule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpecSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails_TargetFleet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleetAutoscaler); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus); 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_google_cloud_gaming_v1_common_proto_rawDesc, - NumEnums: 1, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1_common_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_common_proto_depIdxs, - EnumInfos: file_google_cloud_gaming_v1_common_proto_enumTypes, - MessageInfos: file_google_cloud_gaming_v1_common_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1_common_proto = out.File - file_google_cloud_gaming_v1_common_proto_rawDesc = nil - file_google_cloud_gaming_v1_common_proto_goTypes = nil - file_google_cloud_gaming_v1_common_proto_depIdxs = nil -} diff --git a/gaming/apiv1/gamingpb/game_server_clusters.pb.go b/gaming/apiv1/gamingpb/game_server_clusters.pb.go deleted file mode 100755 index b27e16417d8d..000000000000 --- a/gaming/apiv1/gamingpb/game_server_clusters.pb.go +++ /dev/null @@ -1,1948 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_clusters.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// A view for GameServerCluster objects. -type GameServerClusterView int32 - -const ( - // The default / unset value. - // The API will default to the BASIC view. - GameServerClusterView_GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED GameServerClusterView = 0 - // Include basic information of a GameServerCluster resource and omit - // `cluster_state`. This is the default value (for ListGameServerClusters, - // GetGameServerCluster and PreviewCreateGameServerCluster). - GameServerClusterView_BASIC GameServerClusterView = 1 - // Include everything. - GameServerClusterView_FULL GameServerClusterView = 2 -) - -// Enum value maps for GameServerClusterView. -var ( - GameServerClusterView_name = map[int32]string{ - 0: "GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED", - 1: "BASIC", - 2: "FULL", - } - GameServerClusterView_value = map[string]int32{ - "GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED": 0, - "BASIC": 1, - "FULL": 2, - } -) - -func (x GameServerClusterView) Enum() *GameServerClusterView { - p := new(GameServerClusterView) - *p = x - return p -} - -func (x GameServerClusterView) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (GameServerClusterView) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes[0].Descriptor() -} - -func (GameServerClusterView) Type() protoreflect.EnumType { - return &file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes[0] -} - -func (x GameServerClusterView) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use GameServerClusterView.Descriptor instead. -func (GameServerClusterView) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{0} -} - -// The state of the installed versions of Agones/Kubernetes. See also -// https://cloud.google.com/game-servers/docs/versions-and-upgrades. -type KubernetesClusterState_InstallationState int32 - -const ( - // The default value. This value is used if the state is omitted. - KubernetesClusterState_INSTALLATION_STATE_UNSPECIFIED KubernetesClusterState_InstallationState = 0 - // The combination of Agones and Kubernetes versions is supported by Google - // Cloud Game Servers. - KubernetesClusterState_AGONES_KUBERNETES_VERSION_SUPPORTED KubernetesClusterState_InstallationState = 1 - // The installed version of Agones is not supported by Google Cloud Game - // Servers. - KubernetesClusterState_AGONES_VERSION_UNSUPPORTED KubernetesClusterState_InstallationState = 2 - // The installed version of Agones is supported by Google Cloud Game - // Servers, but the installed version of Kubernetes is not recommended or - // supported by the version of Agones. - KubernetesClusterState_AGONES_KUBERNETES_VERSION_UNSUPPORTED KubernetesClusterState_InstallationState = 3 - // The installed version of Agones is not recognized because the Agones - // controller's image name does not have a version string reported as - // {major}.{minor}(.{patch}). - KubernetesClusterState_AGONES_VERSION_UNRECOGNIZED KubernetesClusterState_InstallationState = 4 - // The server version of Kubernetes cluster is not recognized because the - // API server didn't return parsable version info on path/version. - KubernetesClusterState_KUBERNETES_VERSION_UNRECOGNIZED KubernetesClusterState_InstallationState = 5 - // Failed to read or verify the version of Agones or Kubernetes. See - // version_installed_error_message for details. - KubernetesClusterState_VERSION_VERIFICATION_FAILED KubernetesClusterState_InstallationState = 6 - // Agones is not installed. - KubernetesClusterState_AGONES_NOT_INSTALLED KubernetesClusterState_InstallationState = 7 -) - -// Enum value maps for KubernetesClusterState_InstallationState. -var ( - KubernetesClusterState_InstallationState_name = map[int32]string{ - 0: "INSTALLATION_STATE_UNSPECIFIED", - 1: "AGONES_KUBERNETES_VERSION_SUPPORTED", - 2: "AGONES_VERSION_UNSUPPORTED", - 3: "AGONES_KUBERNETES_VERSION_UNSUPPORTED", - 4: "AGONES_VERSION_UNRECOGNIZED", - 5: "KUBERNETES_VERSION_UNRECOGNIZED", - 6: "VERSION_VERIFICATION_FAILED", - 7: "AGONES_NOT_INSTALLED", - } - KubernetesClusterState_InstallationState_value = map[string]int32{ - "INSTALLATION_STATE_UNSPECIFIED": 0, - "AGONES_KUBERNETES_VERSION_SUPPORTED": 1, - "AGONES_VERSION_UNSUPPORTED": 2, - "AGONES_KUBERNETES_VERSION_UNSUPPORTED": 3, - "AGONES_VERSION_UNRECOGNIZED": 4, - "KUBERNETES_VERSION_UNRECOGNIZED": 5, - "VERSION_VERIFICATION_FAILED": 6, - "AGONES_NOT_INSTALLED": 7, - } -) - -func (x KubernetesClusterState_InstallationState) Enum() *KubernetesClusterState_InstallationState { - p := new(KubernetesClusterState_InstallationState) - *p = x - return p -} - -func (x KubernetesClusterState_InstallationState) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KubernetesClusterState_InstallationState) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes[1].Descriptor() -} - -func (KubernetesClusterState_InstallationState) Type() protoreflect.EnumType { - return &file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes[1] -} - -func (x KubernetesClusterState_InstallationState) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KubernetesClusterState_InstallationState.Descriptor instead. -func (KubernetesClusterState_InstallationState) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{15, 0} -} - -// Request message for GameServerClustersService.ListGameServerClusters. -type ListGameServerClustersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // "projects/{project}/locations/{location}/realms/{realm}". - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, the server - // will pick an appropriate default. The server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1.ListGameServerClustersResponse.next_page_token] to - // determine if there are more GameServerClusters left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` - // Optional. View for the returned GameServerCluster objects. When `FULL` is - // specified, the `cluster_state` field is also returned in the - // GameServerCluster object, which includes the state of the referenced - // Kubernetes cluster such as versions and provider info. The default/unset - // value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does - // not return the `cluster_state` field. - View GameServerClusterView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.gaming.v1.GameServerClusterView" json:"view,omitempty"` -} - -func (x *ListGameServerClustersRequest) Reset() { - *x = ListGameServerClustersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerClustersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerClustersRequest) ProtoMessage() {} - -func (x *ListGameServerClustersRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 ListGameServerClustersRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerClustersRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerClustersRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerClustersRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerClustersRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerClustersRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerClustersRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -func (x *ListGameServerClustersRequest) GetView() GameServerClusterView { - if x != nil { - return x.View - } - return GameServerClusterView_GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED -} - -// Response message for GameServerClustersService.ListGameServerClusters. -type ListGameServerClustersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server clusters. - GameServerClusters []*GameServerCluster `protobuf:"bytes,1,rep,name=game_server_clusters,json=gameServerClusters,proto3" json:"game_server_clusters,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerClustersResponse) Reset() { - *x = ListGameServerClustersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerClustersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerClustersResponse) ProtoMessage() {} - -func (x *ListGameServerClustersResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 ListGameServerClustersResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerClustersResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerClustersResponse) GetGameServerClusters() []*GameServerCluster { - if x != nil { - return x.GameServerClusters - } - return nil -} - -func (x *ListGameServerClustersResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerClustersResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerClustersService.GetGameServerCluster. -type GetGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to retrieve, in the following form: - // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. View for the returned GameServerCluster objects. When `FULL` is - // specified, the `cluster_state` field is also returned in the - // GameServerCluster object, which includes the state of the referenced - // Kubernetes cluster such as versions and provider info. The default/unset - // value is GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED, same as BASIC, which does - // not return the `cluster_state` field. - View GameServerClusterView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.gaming.v1.GameServerClusterView" json:"view,omitempty"` -} - -func (x *GetGameServerClusterRequest) Reset() { - *x = GetGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerClusterRequest) ProtoMessage() {} - -func (x *GetGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 GetGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GetGameServerClusterRequest) GetView() GameServerClusterView { - if x != nil { - return x.View - } - return GameServerClusterView_GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED -} - -// Request message for GameServerClustersService.CreateGameServerCluster. -type CreateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}/realms/{realm-id}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server cluster resource to be created. - GameServerClusterId string `protobuf:"bytes,2,opt,name=game_server_cluster_id,json=gameServerClusterId,proto3" json:"game_server_cluster_id,omitempty"` - // Required. The game server cluster resource to be created. - GameServerCluster *GameServerCluster `protobuf:"bytes,3,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` -} - -func (x *CreateGameServerClusterRequest) Reset() { - *x = CreateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerClusterRequest) ProtoMessage() {} - -func (x *CreateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 CreateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateGameServerClusterRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerClusterRequest) GetGameServerClusterId() string { - if x != nil { - return x.GameServerClusterId - } - return "" -} - -func (x *CreateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -// Request message for GameServerClustersService.PreviewCreateGameServerCluster. -type PreviewCreateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server cluster resource to be created. - GameServerClusterId string `protobuf:"bytes,2,opt,name=game_server_cluster_id,json=gameServerClusterId,proto3" json:"game_server_cluster_id,omitempty"` - // Required. The game server cluster resource to be created. - GameServerCluster *GameServerCluster `protobuf:"bytes,3,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` - // Optional. This field is deprecated, preview will always return - // KubernetesClusterState. - // - // Deprecated: Marked as deprecated in google/cloud/gaming/v1/game_server_clusters.proto. - View GameServerClusterView `protobuf:"varint,6,opt,name=view,proto3,enum=google.cloud.gaming.v1.GameServerClusterView" json:"view,omitempty"` -} - -func (x *PreviewCreateGameServerClusterRequest) Reset() { - *x = PreviewCreateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewCreateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewCreateGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewCreateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 PreviewCreateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewCreateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{4} -} - -func (x *PreviewCreateGameServerClusterRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *PreviewCreateGameServerClusterRequest) GetGameServerClusterId() string { - if x != nil { - return x.GameServerClusterId - } - return "" -} - -func (x *PreviewCreateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *PreviewCreateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Deprecated: Marked as deprecated in google/cloud/gaming/v1/game_server_clusters.proto. -func (x *PreviewCreateGameServerClusterRequest) GetView() GameServerClusterView { - if x != nil { - return x.View - } - return GameServerClusterView_GAME_SERVER_CLUSTER_VIEW_UNSPECIFIED -} - -// Response message for -// GameServerClustersService.PreviewCreateGameServerCluster. -type PreviewCreateGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` - // Output only. The state of the Kubernetes cluster in preview, this will be available if - // 'view' is set to `FULL` in the relevant List/Get/Preview request. - ClusterState *KubernetesClusterState `protobuf:"bytes,4,opt,name=cluster_state,json=clusterState,proto3" json:"cluster_state,omitempty"` -} - -func (x *PreviewCreateGameServerClusterResponse) Reset() { - *x = PreviewCreateGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewCreateGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewCreateGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewCreateGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewCreateGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewCreateGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{5} -} - -func (x *PreviewCreateGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewCreateGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -func (x *PreviewCreateGameServerClusterResponse) GetClusterState() *KubernetesClusterState { - if x != nil { - return x.ClusterState - } - return nil -} - -// Request message for GameServerClustersService.DeleteGameServerCluster. -type DeleteGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to delete, in the following form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerClusterRequest) Reset() { - *x = DeleteGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerClusterRequest) ProtoMessage() {} - -func (x *DeleteGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{6} -} - -func (x *DeleteGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerClustersService.PreviewDeleteGameServerCluster. -type PreviewDeleteGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to delete, in the following form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewDeleteGameServerClusterRequest) Reset() { - *x = PreviewDeleteGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewDeleteGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewDeleteGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewDeleteGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewDeleteGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewDeleteGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{7} -} - -func (x *PreviewDeleteGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *PreviewDeleteGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for -// GameServerClustersService.PreviewDeleteGameServerCluster. -type PreviewDeleteGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewDeleteGameServerClusterResponse) Reset() { - *x = PreviewDeleteGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewDeleteGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewDeleteGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewDeleteGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewDeleteGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewDeleteGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{8} -} - -func (x *PreviewDeleteGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewDeleteGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -type UpdateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster *GameServerCluster `protobuf:"bytes,1,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerClusterRequest) Reset() { - *x = UpdateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerClusterRequest) ProtoMessage() {} - -func (x *UpdateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{9} -} - -func (x *UpdateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *UpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -type PreviewUpdateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster *GameServerCluster `protobuf:"bytes,1,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewUpdateGameServerClusterRequest) Reset() { - *x = PreviewUpdateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewUpdateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewUpdateGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewUpdateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewUpdateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewUpdateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{10} -} - -func (x *PreviewUpdateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *PreviewUpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewUpdateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for GameServerClustersService.PreviewUpdateGameServerCluster -type PreviewUpdateGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewUpdateGameServerClusterResponse) Reset() { - *x = PreviewUpdateGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewUpdateGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewUpdateGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewUpdateGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewUpdateGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewUpdateGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{11} -} - -func (x *PreviewUpdateGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewUpdateGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// The game server cluster connection information. -type GameServerClusterConnectionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The location of the Kubernetes cluster. - // - // Types that are assignable to ClusterReference: - // *GameServerClusterConnectionInfo_GkeClusterReference - ClusterReference isGameServerClusterConnectionInfo_ClusterReference `protobuf_oneof:"cluster_reference"` - // Namespace designated on the game server cluster where the Agones game - // server instances will be created. Existence of the namespace will be - // validated during creation. - Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` -} - -func (x *GameServerClusterConnectionInfo) Reset() { - *x = GameServerClusterConnectionInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerClusterConnectionInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerClusterConnectionInfo) ProtoMessage() {} - -func (x *GameServerClusterConnectionInfo) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_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 GameServerClusterConnectionInfo.ProtoReflect.Descriptor instead. -func (*GameServerClusterConnectionInfo) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{12} -} - -func (m *GameServerClusterConnectionInfo) GetClusterReference() isGameServerClusterConnectionInfo_ClusterReference { - if m != nil { - return m.ClusterReference - } - return nil -} - -func (x *GameServerClusterConnectionInfo) GetGkeClusterReference() *GkeClusterReference { - if x, ok := x.GetClusterReference().(*GameServerClusterConnectionInfo_GkeClusterReference); ok { - return x.GkeClusterReference - } - return nil -} - -func (x *GameServerClusterConnectionInfo) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -type isGameServerClusterConnectionInfo_ClusterReference interface { - isGameServerClusterConnectionInfo_ClusterReference() -} - -type GameServerClusterConnectionInfo_GkeClusterReference struct { - // Reference to the GKE cluster where the game servers are installed. - GkeClusterReference *GkeClusterReference `protobuf:"bytes,7,opt,name=gke_cluster_reference,json=gkeClusterReference,proto3,oneof"` -} - -func (*GameServerClusterConnectionInfo_GkeClusterReference) isGameServerClusterConnectionInfo_ClusterReference() { -} - -// A reference to a GKE cluster. -type GkeClusterReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The full or partial name of a GKE cluster, using one of the following - // forms: - // * `projects/{project}/locations/{location}/clusters/{cluster}` - // * `locations/{location}/clusters/{cluster}` - // * `{cluster}` - // If project and location are not specified, the project and location of the - // GameServerCluster resource are used to generate the full name of the - // GKE cluster. - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` -} - -func (x *GkeClusterReference) Reset() { - *x = GkeClusterReference{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GkeClusterReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GkeClusterReference) ProtoMessage() {} - -func (x *GkeClusterReference) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GkeClusterReference.ProtoReflect.Descriptor instead. -func (*GkeClusterReference) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{13} -} - -func (x *GkeClusterReference) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -// A game server cluster resource. -type GameServerCluster struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The resource name of the game server cluster, in the following form: - // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. - // For example, - // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server cluster. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The game server cluster connection information. This information is used to - // manage game server clusters. - ConnectionInfo *GameServerClusterConnectionInfo `protobuf:"bytes,5,opt,name=connection_info,json=connectionInfo,proto3" json:"connection_info,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the cluster. - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` - // Output only. The state of the Kubernetes cluster, this will be available if - // 'view' is set to `FULL` in the relevant List/Get/Preview request. - ClusterState *KubernetesClusterState `protobuf:"bytes,11,opt,name=cluster_state,json=clusterState,proto3" json:"cluster_state,omitempty"` -} - -func (x *GameServerCluster) Reset() { - *x = GameServerCluster{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerCluster) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerCluster) ProtoMessage() {} - -func (x *GameServerCluster) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerCluster.ProtoReflect.Descriptor instead. -func (*GameServerCluster) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{14} -} - -func (x *GameServerCluster) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerCluster) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerCluster) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerCluster) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerCluster) GetConnectionInfo() *GameServerClusterConnectionInfo { - if x != nil { - return x.ConnectionInfo - } - return nil -} - -func (x *GameServerCluster) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *GameServerCluster) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *GameServerCluster) GetClusterState() *KubernetesClusterState { - if x != nil { - return x.ClusterState - } - return nil -} - -// The state of the Kubernetes cluster. -type KubernetesClusterState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. The version of Agones currently installed in the registered Kubernetes - // cluster. - AgonesVersionInstalled string `protobuf:"bytes,1,opt,name=agones_version_installed,json=agonesVersionInstalled,proto3" json:"agones_version_installed,omitempty"` - // Output only. The version of Kubernetes that is currently used in the registered - // Kubernetes cluster (as detected by the Cloud Game Servers service). - KubernetesVersionInstalled string `protobuf:"bytes,2,opt,name=kubernetes_version_installed,json=kubernetesVersionInstalled,proto3" json:"kubernetes_version_installed,omitempty"` - // Output only. The state for the installed versions of Agones/Kubernetes. - InstallationState KubernetesClusterState_InstallationState `protobuf:"varint,3,opt,name=installation_state,json=installationState,proto3,enum=google.cloud.gaming.v1.KubernetesClusterState_InstallationState" json:"installation_state,omitempty"` - // Output only. The detailed error message for the installed versions of Agones/Kubernetes. - VersionInstalledErrorMessage string `protobuf:"bytes,4,opt,name=version_installed_error_message,json=versionInstalledErrorMessage,proto3" json:"version_installed_error_message,omitempty"` - // Output only. The cloud provider type reported by the first node's providerID in the list - // of nodes on the Kubernetes endpoint. On Kubernetes platforms that support - // zero-node clusters (like GKE-on-GCP), the provider type will be empty. - Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"` - // Output only. The version of Agones that is targeted to be installed in the cluster. - AgonesVersionTargeted string `protobuf:"bytes,6,opt,name=agones_version_targeted,json=agonesVersionTargeted,proto3" json:"agones_version_targeted,omitempty"` -} - -func (x *KubernetesClusterState) Reset() { - *x = KubernetesClusterState{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *KubernetesClusterState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KubernetesClusterState) ProtoMessage() {} - -func (x *KubernetesClusterState) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KubernetesClusterState.ProtoReflect.Descriptor instead. -func (*KubernetesClusterState) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP(), []int{15} -} - -func (x *KubernetesClusterState) GetAgonesVersionInstalled() string { - if x != nil { - return x.AgonesVersionInstalled - } - return "" -} - -func (x *KubernetesClusterState) GetKubernetesVersionInstalled() string { - if x != nil { - return x.KubernetesVersionInstalled - } - return "" -} - -func (x *KubernetesClusterState) GetInstallationState() KubernetesClusterState_InstallationState { - if x != nil { - return x.InstallationState - } - return KubernetesClusterState_INSTALLATION_STATE_UNSPECIFIED -} - -func (x *KubernetesClusterState) GetVersionInstalledErrorMessage() string { - if x != nil { - return x.VersionInstalledErrorMessage - } - return "" -} - -func (x *KubernetesClusterState) GetProvider() string { - if x != nil { - return x.Provider - } - return "" -} - -func (x *KubernetesClusterState) GetAgonesVersionTargeted() string { - if x != nil { - return x.AgonesVersionTargeted - } - return "" -} - -var File_google_cloud_gaming_v1_game_server_clusters_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_clusters_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, - 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, - 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0xb9, 0x02, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, - 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, - 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x42, 0x79, 0x12, 0x46, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xc7, 0x01, 0x0a, 0x1e, - 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5b, - 0x0a, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x12, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, - 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, - 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0xb0, 0x01, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x0a, 0x2d, 0x67, 0x61, 0x6d, - 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x46, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0x89, 0x02, 0x0a, 0x1e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x16, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x13, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x49, 0x64, 0x12, 0x5e, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x22, 0x9e, 0x03, 0x0a, 0x25, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, - 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x5e, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, - 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, - 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x48, 0x0a, 0x04, 0x76, - 0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x42, 0x05, 0xe0, 0x41, 0x01, 0x18, 0x01, 0x52, - 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0xde, 0x01, 0x0a, 0x26, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, - 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x65, 0x74, 0x61, 0x67, 0x12, 0x46, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x58, 0x0a, 0x0d, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, - 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x6b, 0x0a, 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x0a, 0x2d, - 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x25, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x2f, 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, - 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, - 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x84, 0x01, 0x0a, - 0x26, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x46, 0x0a, 0x0c, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x8d, 0x02, 0x0a, 0x25, 0x50, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x5e, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, - 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x84, 0x01, 0x0a, 0x26, 0x50, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x46, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, - 0xb7, 0x01, 0x0a, 0x1f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x61, 0x0a, 0x15, 0x67, 0x6b, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x6b, 0x65, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, - 0x00, 0x52, 0x13, 0x67, 0x6b, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x66, - 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x42, 0x13, 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x22, 0x2f, 0x0a, 0x13, 0x47, 0x6b, 0x65, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xb7, 0x05, 0x0a, 0x11, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4d, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x60, 0x0a, 0x0f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x12, - 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, - 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x58, 0x0a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x39, - 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x88, 0x01, 0xea, 0x41, 0x84, 0x01, - 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, - 0x53, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, - 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x7d, 0x22, 0xed, 0x05, 0x0a, 0x16, 0x4b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, - 0x74, 0x65, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x3d, 0x0a, 0x18, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x16, 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x45, - 0x0a, 0x1c, 0x6b, 0x75, 0x62, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1a, 0x6b, 0x75, 0x62, 0x65, 0x72, - 0x6e, 0x65, 0x74, 0x65, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, - 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x12, 0x74, 0x0a, 0x12, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x72, - 0x6e, 0x65, 0x74, 0x65, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x2e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x4a, 0x0a, 0x1f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, - 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1c, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x65, 0x64, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, - 0x64, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x3b, 0x0a, 0x17, 0x61, 0x67, 0x6f, 0x6e, - 0x65, 0x73, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x15, - 0x61, 0x67, 0x6f, 0x6e, 0x65, 0x73, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x65, 0x64, 0x22, 0xac, 0x02, 0x0a, 0x11, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6c, - 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x49, - 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, - 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, - 0x27, 0x0a, 0x23, 0x41, 0x47, 0x4f, 0x4e, 0x45, 0x53, 0x5f, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, - 0x45, 0x54, 0x45, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x55, 0x50, - 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x41, 0x47, 0x4f, 0x4e, - 0x45, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, - 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x29, 0x0a, 0x25, 0x41, 0x47, 0x4f, 0x4e, - 0x45, 0x53, 0x5f, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, 0x45, 0x53, 0x5f, 0x56, 0x45, - 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, - 0x44, 0x10, 0x03, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x47, 0x4f, 0x4e, 0x45, 0x53, 0x5f, 0x56, 0x45, - 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x43, 0x4f, 0x47, 0x4e, 0x49, 0x5a, - 0x45, 0x44, 0x10, 0x04, 0x12, 0x23, 0x0a, 0x1f, 0x4b, 0x55, 0x42, 0x45, 0x52, 0x4e, 0x45, 0x54, - 0x45, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x43, - 0x4f, 0x47, 0x4e, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x56, 0x45, 0x52, - 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x06, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x47, - 0x4f, 0x4e, 0x45, 0x53, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x49, 0x4e, 0x53, 0x54, 0x41, 0x4c, 0x4c, - 0x45, 0x44, 0x10, 0x07, 0x2a, 0x56, 0x0a, 0x15, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x56, 0x69, 0x65, 0x77, 0x12, 0x28, 0x0a, - 0x24, 0x47, 0x41, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x43, 0x4c, 0x55, - 0x53, 0x54, 0x45, 0x52, 0x5f, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, - 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, 0x43, - 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10, 0x02, 0x42, 0x52, 0x0a, 0x1a, - 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, - 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescData = file_google_cloud_gaming_v1_game_server_clusters_proto_rawDesc -) - -func file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescData) - }) - return file_google_cloud_gaming_v1_game_server_clusters_proto_rawDescData -} - -var file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_google_cloud_gaming_v1_game_server_clusters_proto_goTypes = []interface{}{ - (GameServerClusterView)(0), // 0: google.cloud.gaming.v1.GameServerClusterView - (KubernetesClusterState_InstallationState)(0), // 1: google.cloud.gaming.v1.KubernetesClusterState.InstallationState - (*ListGameServerClustersRequest)(nil), // 2: google.cloud.gaming.v1.ListGameServerClustersRequest - (*ListGameServerClustersResponse)(nil), // 3: google.cloud.gaming.v1.ListGameServerClustersResponse - (*GetGameServerClusterRequest)(nil), // 4: google.cloud.gaming.v1.GetGameServerClusterRequest - (*CreateGameServerClusterRequest)(nil), // 5: google.cloud.gaming.v1.CreateGameServerClusterRequest - (*PreviewCreateGameServerClusterRequest)(nil), // 6: google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest - (*PreviewCreateGameServerClusterResponse)(nil), // 7: google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse - (*DeleteGameServerClusterRequest)(nil), // 8: google.cloud.gaming.v1.DeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterRequest)(nil), // 9: google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterResponse)(nil), // 10: google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse - (*UpdateGameServerClusterRequest)(nil), // 11: google.cloud.gaming.v1.UpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterRequest)(nil), // 12: google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterResponse)(nil), // 13: google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse - (*GameServerClusterConnectionInfo)(nil), // 14: google.cloud.gaming.v1.GameServerClusterConnectionInfo - (*GkeClusterReference)(nil), // 15: google.cloud.gaming.v1.GkeClusterReference - (*GameServerCluster)(nil), // 16: google.cloud.gaming.v1.GameServerCluster - (*KubernetesClusterState)(nil), // 17: google.cloud.gaming.v1.KubernetesClusterState - nil, // 18: google.cloud.gaming.v1.GameServerCluster.LabelsEntry - (*timestamppb.Timestamp)(nil), // 19: google.protobuf.Timestamp - (*TargetState)(nil), // 20: google.cloud.gaming.v1.TargetState - (*fieldmaskpb.FieldMask)(nil), // 21: google.protobuf.FieldMask -} -var file_google_cloud_gaming_v1_game_server_clusters_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1.ListGameServerClustersRequest.view:type_name -> google.cloud.gaming.v1.GameServerClusterView - 16, // 1: google.cloud.gaming.v1.ListGameServerClustersResponse.game_server_clusters:type_name -> google.cloud.gaming.v1.GameServerCluster - 0, // 2: google.cloud.gaming.v1.GetGameServerClusterRequest.view:type_name -> google.cloud.gaming.v1.GameServerClusterView - 16, // 3: google.cloud.gaming.v1.CreateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1.GameServerCluster - 16, // 4: google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1.GameServerCluster - 19, // 5: google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 0, // 6: google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest.view:type_name -> google.cloud.gaming.v1.GameServerClusterView - 20, // 7: google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1.TargetState - 17, // 8: google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse.cluster_state:type_name -> google.cloud.gaming.v1.KubernetesClusterState - 19, // 9: google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 20, // 10: google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1.TargetState - 16, // 11: google.cloud.gaming.v1.UpdateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1.GameServerCluster - 21, // 12: google.cloud.gaming.v1.UpdateGameServerClusterRequest.update_mask:type_name -> google.protobuf.FieldMask - 16, // 13: google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1.GameServerCluster - 21, // 14: google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest.update_mask:type_name -> google.protobuf.FieldMask - 19, // 15: google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 20, // 16: google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1.TargetState - 15, // 17: google.cloud.gaming.v1.GameServerClusterConnectionInfo.gke_cluster_reference:type_name -> google.cloud.gaming.v1.GkeClusterReference - 19, // 18: google.cloud.gaming.v1.GameServerCluster.create_time:type_name -> google.protobuf.Timestamp - 19, // 19: google.cloud.gaming.v1.GameServerCluster.update_time:type_name -> google.protobuf.Timestamp - 18, // 20: google.cloud.gaming.v1.GameServerCluster.labels:type_name -> google.cloud.gaming.v1.GameServerCluster.LabelsEntry - 14, // 21: google.cloud.gaming.v1.GameServerCluster.connection_info:type_name -> google.cloud.gaming.v1.GameServerClusterConnectionInfo - 17, // 22: google.cloud.gaming.v1.GameServerCluster.cluster_state:type_name -> google.cloud.gaming.v1.KubernetesClusterState - 1, // 23: google.cloud.gaming.v1.KubernetesClusterState.installation_state:type_name -> google.cloud.gaming.v1.KubernetesClusterState.InstallationState - 24, // [24:24] is the sub-list for method output_type - 24, // [24:24] is the sub-list for method input_type - 24, // [24:24] is the sub-list for extension type_name - 24, // [24:24] is the sub-list for extension extendee - 0, // [0:24] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_clusters_proto_init() } -func file_google_cloud_gaming_v1_game_server_clusters_proto_init() { - if File_google_cloud_gaming_v1_game_server_clusters_proto != nil { - return - } - file_google_cloud_gaming_v1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerClustersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerClustersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewCreateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewCreateGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewDeleteGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewDeleteGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewUpdateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewUpdateGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerClusterConnectionInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GkeClusterReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerCluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*KubernetesClusterState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes[12].OneofWrappers = []interface{}{ - (*GameServerClusterConnectionInfo_GkeClusterReference)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_game_server_clusters_proto_rawDesc, - NumEnums: 2, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_clusters_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_clusters_proto_depIdxs, - EnumInfos: file_google_cloud_gaming_v1_game_server_clusters_proto_enumTypes, - MessageInfos: file_google_cloud_gaming_v1_game_server_clusters_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1_game_server_clusters_proto = out.File - file_google_cloud_gaming_v1_game_server_clusters_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_clusters_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_clusters_proto_depIdxs = nil -} diff --git a/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go b/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go deleted file mode 100755 index 2b3f06cc5a39..000000000000 --- a/gaming/apiv1/gamingpb/game_server_clusters_service.pb.go +++ /dev/null @@ -1,618 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_clusters_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1_game_server_clusters_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_clusters_service_proto_rawDesc = []byte{ - 0x0a, 0x39, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, - 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, - 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x32, 0x8a, 0x11, 0x0a, 0x19, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0xd9, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x35, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x50, 0xda, 0x41, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0xc6, 0x01, 0x0a, - 0x14, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x4e, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x41, 0x12, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xac, 0x02, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb9, 0x01, 0xca, 0x41, 0x26, 0x0a, 0x11, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x31, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x3a, 0x13, - 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x22, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x12, 0x8b, 0x02, 0x0a, 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x64, 0x3a, 0x13, - 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x22, 0x4d, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x12, 0xed, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x36, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7b, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x41, 0x2a, 0x3f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, - 0x2a, 0x7d, 0x12, 0xf6, 0x01, 0x0a, 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, - 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4f, 0x2a, 0x4d, 0x2f, 0x76, - 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, - 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xae, 0x02, 0x0a, 0x17, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbb, - 0x01, 0xca, 0x41, 0x26, 0x0a, 0x11, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x1f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x6a, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x32, 0x53, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, - 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, - 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9f, 0x02, 0x0a, - 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, - 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7e, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x78, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x32, 0x61, 0x2f, 0x76, 0x31, - 0x2f, 0x7b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, - 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x4f, - 0xca, 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, - 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, - 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, - 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, - 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, - 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1_game_server_clusters_service_proto_goTypes = []interface{}{ - (*ListGameServerClustersRequest)(nil), // 0: google.cloud.gaming.v1.ListGameServerClustersRequest - (*GetGameServerClusterRequest)(nil), // 1: google.cloud.gaming.v1.GetGameServerClusterRequest - (*CreateGameServerClusterRequest)(nil), // 2: google.cloud.gaming.v1.CreateGameServerClusterRequest - (*PreviewCreateGameServerClusterRequest)(nil), // 3: google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest - (*DeleteGameServerClusterRequest)(nil), // 4: google.cloud.gaming.v1.DeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterRequest)(nil), // 5: google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest - (*UpdateGameServerClusterRequest)(nil), // 6: google.cloud.gaming.v1.UpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterRequest)(nil), // 7: google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest - (*ListGameServerClustersResponse)(nil), // 8: google.cloud.gaming.v1.ListGameServerClustersResponse - (*GameServerCluster)(nil), // 9: google.cloud.gaming.v1.GameServerCluster - (*longrunningpb.Operation)(nil), // 10: google.longrunning.Operation - (*PreviewCreateGameServerClusterResponse)(nil), // 11: google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse - (*PreviewDeleteGameServerClusterResponse)(nil), // 12: google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse - (*PreviewUpdateGameServerClusterResponse)(nil), // 13: google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse -} -var file_google_cloud_gaming_v1_game_server_clusters_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters:input_type -> google.cloud.gaming.v1.ListGameServerClustersRequest - 1, // 1: google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster:input_type -> google.cloud.gaming.v1.GetGameServerClusterRequest - 2, // 2: google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster:input_type -> google.cloud.gaming.v1.CreateGameServerClusterRequest - 3, // 3: google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster:input_type -> google.cloud.gaming.v1.PreviewCreateGameServerClusterRequest - 4, // 4: google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster:input_type -> google.cloud.gaming.v1.DeleteGameServerClusterRequest - 5, // 5: google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster:input_type -> google.cloud.gaming.v1.PreviewDeleteGameServerClusterRequest - 6, // 6: google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster:input_type -> google.cloud.gaming.v1.UpdateGameServerClusterRequest - 7, // 7: google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster:input_type -> google.cloud.gaming.v1.PreviewUpdateGameServerClusterRequest - 8, // 8: google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters:output_type -> google.cloud.gaming.v1.ListGameServerClustersResponse - 9, // 9: google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster:output_type -> google.cloud.gaming.v1.GameServerCluster - 10, // 10: google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster:output_type -> google.longrunning.Operation - 11, // 11: google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster:output_type -> google.cloud.gaming.v1.PreviewCreateGameServerClusterResponse - 10, // 12: google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster:output_type -> google.longrunning.Operation - 12, // 13: google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster:output_type -> google.cloud.gaming.v1.PreviewDeleteGameServerClusterResponse - 10, // 14: google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster:output_type -> google.longrunning.Operation - 13, // 15: google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster:output_type -> google.cloud.gaming.v1.PreviewUpdateGameServerClusterResponse - 8, // [8:16] is the sub-list for method output_type - 0, // [0:8] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_clusters_service_proto_init() } -func file_google_cloud_gaming_v1_game_server_clusters_service_proto_init() { - if File_google_cloud_gaming_v1_game_server_clusters_service_proto != nil { - return - } - file_google_cloud_gaming_v1_game_server_clusters_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_game_server_clusters_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_clusters_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_clusters_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1_game_server_clusters_service_proto = out.File - file_google_cloud_gaming_v1_game_server_clusters_service_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_clusters_service_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_clusters_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerClustersServiceClient is the client API for GameServerClustersService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerClustersServiceClient interface { - // Lists game server clusters in a given project and location. - ListGameServerClusters(ctx context.Context, in *ListGameServerClustersRequest, opts ...grpc.CallOption) (*ListGameServerClustersResponse, error) - // Gets details of a single game server cluster. - GetGameServerCluster(ctx context.Context, in *GetGameServerClusterRequest, opts ...grpc.CallOption) (*GameServerCluster, error) - // Creates a new game server cluster in a given project and location. - CreateGameServerCluster(ctx context.Context, in *CreateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews creation of a new game server cluster in a given project and - // location. - PreviewCreateGameServerCluster(ctx context.Context, in *PreviewCreateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewCreateGameServerClusterResponse, error) - // Deletes a single game server cluster. - DeleteGameServerCluster(ctx context.Context, in *DeleteGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews deletion of a single game server cluster. - PreviewDeleteGameServerCluster(ctx context.Context, in *PreviewDeleteGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewDeleteGameServerClusterResponse, error) - // Patches a single game server cluster. - UpdateGameServerCluster(ctx context.Context, in *UpdateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews updating a GameServerCluster. - PreviewUpdateGameServerCluster(ctx context.Context, in *PreviewUpdateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewUpdateGameServerClusterResponse, error) -} - -type gameServerClustersServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerClustersServiceClient(cc grpc.ClientConnInterface) GameServerClustersServiceClient { - return &gameServerClustersServiceClient{cc} -} - -func (c *gameServerClustersServiceClient) ListGameServerClusters(ctx context.Context, in *ListGameServerClustersRequest, opts ...grpc.CallOption) (*ListGameServerClustersResponse, error) { - out := new(ListGameServerClustersResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/ListGameServerClusters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) GetGameServerCluster(ctx context.Context, in *GetGameServerClusterRequest, opts ...grpc.CallOption) (*GameServerCluster, error) { - out := new(GameServerCluster) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/GetGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) CreateGameServerCluster(ctx context.Context, in *CreateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/CreateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewCreateGameServerCluster(ctx context.Context, in *PreviewCreateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewCreateGameServerClusterResponse, error) { - out := new(PreviewCreateGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/PreviewCreateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) DeleteGameServerCluster(ctx context.Context, in *DeleteGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/DeleteGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewDeleteGameServerCluster(ctx context.Context, in *PreviewDeleteGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewDeleteGameServerClusterResponse, error) { - out := new(PreviewDeleteGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/PreviewDeleteGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) UpdateGameServerCluster(ctx context.Context, in *UpdateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/UpdateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewUpdateGameServerCluster(ctx context.Context, in *PreviewUpdateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewUpdateGameServerClusterResponse, error) { - out := new(PreviewUpdateGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerClustersService/PreviewUpdateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerClustersServiceServer is the server API for GameServerClustersService service. -type GameServerClustersServiceServer interface { - // Lists game server clusters in a given project and location. - ListGameServerClusters(context.Context, *ListGameServerClustersRequest) (*ListGameServerClustersResponse, error) - // Gets details of a single game server cluster. - GetGameServerCluster(context.Context, *GetGameServerClusterRequest) (*GameServerCluster, error) - // Creates a new game server cluster in a given project and location. - CreateGameServerCluster(context.Context, *CreateGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews creation of a new game server cluster in a given project and - // location. - PreviewCreateGameServerCluster(context.Context, *PreviewCreateGameServerClusterRequest) (*PreviewCreateGameServerClusterResponse, error) - // Deletes a single game server cluster. - DeleteGameServerCluster(context.Context, *DeleteGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews deletion of a single game server cluster. - PreviewDeleteGameServerCluster(context.Context, *PreviewDeleteGameServerClusterRequest) (*PreviewDeleteGameServerClusterResponse, error) - // Patches a single game server cluster. - UpdateGameServerCluster(context.Context, *UpdateGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews updating a GameServerCluster. - PreviewUpdateGameServerCluster(context.Context, *PreviewUpdateGameServerClusterRequest) (*PreviewUpdateGameServerClusterResponse, error) -} - -// UnimplementedGameServerClustersServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerClustersServiceServer struct { -} - -func (*UnimplementedGameServerClustersServiceServer) ListGameServerClusters(context.Context, *ListGameServerClustersRequest) (*ListGameServerClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerClusters not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) GetGameServerCluster(context.Context, *GetGameServerClusterRequest) (*GameServerCluster, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) CreateGameServerCluster(context.Context, *CreateGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewCreateGameServerCluster(context.Context, *PreviewCreateGameServerClusterRequest) (*PreviewCreateGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewCreateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) DeleteGameServerCluster(context.Context, *DeleteGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewDeleteGameServerCluster(context.Context, *PreviewDeleteGameServerClusterRequest) (*PreviewDeleteGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewDeleteGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) UpdateGameServerCluster(context.Context, *UpdateGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewUpdateGameServerCluster(context.Context, *PreviewUpdateGameServerClusterRequest) (*PreviewUpdateGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewUpdateGameServerCluster not implemented") -} - -func RegisterGameServerClustersServiceServer(s *grpc.Server, srv GameServerClustersServiceServer) { - s.RegisterService(&_GameServerClustersService_serviceDesc, srv) -} - -func _GameServerClustersService_ListGameServerClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerClustersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).ListGameServerClusters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/ListGameServerClusters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).ListGameServerClusters(ctx, req.(*ListGameServerClustersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_GetGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).GetGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/GetGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).GetGameServerCluster(ctx, req.(*GetGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_CreateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).CreateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/CreateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).CreateGameServerCluster(ctx, req.(*CreateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewCreateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewCreateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewCreateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/PreviewCreateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewCreateGameServerCluster(ctx, req.(*PreviewCreateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_DeleteGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).DeleteGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/DeleteGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).DeleteGameServerCluster(ctx, req.(*DeleteGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewDeleteGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewDeleteGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewDeleteGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/PreviewDeleteGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewDeleteGameServerCluster(ctx, req.(*PreviewDeleteGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_UpdateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).UpdateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/UpdateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).UpdateGameServerCluster(ctx, req.(*UpdateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewUpdateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewUpdateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewUpdateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerClustersService/PreviewUpdateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewUpdateGameServerCluster(ctx, req.(*PreviewUpdateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerClustersService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1.GameServerClustersService", - HandlerType: (*GameServerClustersServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerClusters", - Handler: _GameServerClustersService_ListGameServerClusters_Handler, - }, - { - MethodName: "GetGameServerCluster", - Handler: _GameServerClustersService_GetGameServerCluster_Handler, - }, - { - MethodName: "CreateGameServerCluster", - Handler: _GameServerClustersService_CreateGameServerCluster_Handler, - }, - { - MethodName: "PreviewCreateGameServerCluster", - Handler: _GameServerClustersService_PreviewCreateGameServerCluster_Handler, - }, - { - MethodName: "DeleteGameServerCluster", - Handler: _GameServerClustersService_DeleteGameServerCluster_Handler, - }, - { - MethodName: "PreviewDeleteGameServerCluster", - Handler: _GameServerClustersService_PreviewDeleteGameServerCluster_Handler, - }, - { - MethodName: "UpdateGameServerCluster", - Handler: _GameServerClustersService_UpdateGameServerCluster_Handler, - }, - { - MethodName: "PreviewUpdateGameServerCluster", - Handler: _GameServerClustersService_PreviewUpdateGameServerCluster_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1/game_server_clusters_service.proto", -} diff --git a/gaming/apiv1/gamingpb/game_server_configs.pb.go b/gaming/apiv1/gamingpb/game_server_configs.pb.go deleted file mode 100755 index 1eef55d9378f..000000000000 --- a/gaming/apiv1/gamingpb/game_server_configs.pb.go +++ /dev/null @@ -1,918 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_configs.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for GameServerConfigsService.ListGameServerConfigs. -type ListGameServerConfigsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1.ListGameServerConfigsResponse.next_page_token] to - // determine if there are more GameServerConfigs left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous list request, if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListGameServerConfigsRequest) Reset() { - *x = ListGameServerConfigsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerConfigsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerConfigsRequest) ProtoMessage() {} - -func (x *ListGameServerConfigsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_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 ListGameServerConfigsRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerConfigsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerConfigsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerConfigsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for GameServerConfigsService.ListGameServerConfigs. -type ListGameServerConfigsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server configs. - GameServerConfigs []*GameServerConfig `protobuf:"bytes,1,rep,name=game_server_configs,json=gameServerConfigs,proto3" json:"game_server_configs,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerConfigsResponse) Reset() { - *x = ListGameServerConfigsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerConfigsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerConfigsResponse) ProtoMessage() {} - -func (x *ListGameServerConfigsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_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 ListGameServerConfigsResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerConfigsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerConfigsResponse) GetGameServerConfigs() []*GameServerConfig { - if x != nil { - return x.GameServerConfigs - } - return nil -} - -func (x *ListGameServerConfigsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerConfigsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerConfigsService.GetGameServerConfig. -type GetGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server config to retrieve, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerConfigRequest) Reset() { - *x = GetGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerConfigRequest) ProtoMessage() {} - -func (x *GetGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_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 GetGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerConfigRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerConfigsService.CreateGameServerConfig. -type CreateGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server config resource to be created. - ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` - // Required. The game server config resource to be created. - GameServerConfig *GameServerConfig `protobuf:"bytes,3,opt,name=game_server_config,json=gameServerConfig,proto3" json:"game_server_config,omitempty"` -} - -func (x *CreateGameServerConfigRequest) Reset() { - *x = CreateGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerConfigRequest) ProtoMessage() {} - -func (x *CreateGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_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 CreateGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateGameServerConfigRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerConfigRequest) GetConfigId() string { - if x != nil { - return x.ConfigId - } - return "" -} - -func (x *CreateGameServerConfigRequest) GetGameServerConfig() *GameServerConfig { - if x != nil { - return x.GameServerConfig - } - return nil -} - -// Request message for GameServerConfigsService.DeleteGameServerConfig. -type DeleteGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server config to delete, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerConfigRequest) Reset() { - *x = DeleteGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerConfigRequest) ProtoMessage() {} - -func (x *DeleteGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_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 DeleteGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteGameServerConfigRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Autoscaling config for an Agones fleet. -type ScalingConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the Scaling Config - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. Agones fleet autoscaler spec. Example spec: - // https://agones.dev/site/docs/reference/fleetautoscaler/ - FleetAutoscalerSpec string `protobuf:"bytes,2,opt,name=fleet_autoscaler_spec,json=fleetAutoscalerSpec,proto3" json:"fleet_autoscaler_spec,omitempty"` - // Labels used to identify the game server clusters to which this Agones - // scaling config applies. A game server cluster is subject to this Agones - // scaling config if its labels match any of the selector entries. - Selectors []*LabelSelector `protobuf:"bytes,4,rep,name=selectors,proto3" json:"selectors,omitempty"` - // The schedules to which this Scaling Config applies. - Schedules []*Schedule `protobuf:"bytes,5,rep,name=schedules,proto3" json:"schedules,omitempty"` -} - -func (x *ScalingConfig) Reset() { - *x = ScalingConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ScalingConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ScalingConfig) ProtoMessage() {} - -func (x *ScalingConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ScalingConfig.ProtoReflect.Descriptor instead. -func (*ScalingConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{5} -} - -func (x *ScalingConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ScalingConfig) GetFleetAutoscalerSpec() string { - if x != nil { - return x.FleetAutoscalerSpec - } - return "" -} - -func (x *ScalingConfig) GetSelectors() []*LabelSelector { - if x != nil { - return x.Selectors - } - return nil -} - -func (x *ScalingConfig) GetSchedules() []*Schedule { - if x != nil { - return x.Schedules - } - return nil -} - -// Fleet configs for Agones. -type FleetConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Agones fleet spec. Example spec: - // `https://agones.dev/site/docs/reference/fleet/`. - FleetSpec string `protobuf:"bytes,1,opt,name=fleet_spec,json=fleetSpec,proto3" json:"fleet_spec,omitempty"` - // The name of the FleetConfig. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *FleetConfig) Reset() { - *x = FleetConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FleetConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FleetConfig) ProtoMessage() {} - -func (x *FleetConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FleetConfig.ProtoReflect.Descriptor instead. -func (*FleetConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{6} -} - -func (x *FleetConfig) GetFleetSpec() string { - if x != nil { - return x.FleetSpec - } - return "" -} - -func (x *FleetConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// A game server config resource. -type GameServerConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server config, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - // For example, - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server config. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // FleetConfig contains a list of Agones fleet specs. Only one FleetConfig - // is allowed. - FleetConfigs []*FleetConfig `protobuf:"bytes,5,rep,name=fleet_configs,json=fleetConfigs,proto3" json:"fleet_configs,omitempty"` - // The autoscaling settings. - ScalingConfigs []*ScalingConfig `protobuf:"bytes,6,rep,name=scaling_configs,json=scalingConfigs,proto3" json:"scaling_configs,omitempty"` - // The description of the game server config. - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *GameServerConfig) Reset() { - *x = GameServerConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerConfig) ProtoMessage() {} - -func (x *GameServerConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerConfig.ProtoReflect.Descriptor instead. -func (*GameServerConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP(), []int{7} -} - -func (x *GameServerConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerConfig) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerConfig) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerConfig) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerConfig) GetFleetConfigs() []*FleetConfig { - if x != nil { - return x.FleetConfigs - } - return nil -} - -func (x *GameServerConfig) GetScalingConfigs() []*ScalingConfig { - if x != nil { - return x.ScalingConfigs - } - return nil -} - -func (x *GameServerConfig) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_google_cloud_gaming_v1_game_server_configs_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_configs_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, - 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x01, 0x0a, - 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, - 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, - 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xc3, - 0x01, 0x0a, 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x58, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, - 0x61, 0x62, 0x6c, 0x65, 0x22, 0x66, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xec, 0x01, 0x0a, - 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x5b, - 0x0a, 0x12, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x69, 0x0a, 0x1d, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x2e, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xe6, 0x01, 0x0a, 0x0d, 0x53, 0x63, 0x61, 0x6c, 0x69, - 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x37, 0x0a, 0x15, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x43, 0x0a, 0x09, 0x73, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, - 0x3e, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x65, 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x22, - 0x40, 0x0a, 0x0b, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, - 0x0a, 0x0a, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x22, 0x81, 0x05, 0x0a, 0x10, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4c, - 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x48, 0x0a, 0x0d, - 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x6c, 0x65, - 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x4e, 0x0a, 0x0f, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, - 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x3a, 0x8f, 0x01, 0xea, 0x41, 0x8b, 0x01, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, - 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_google_cloud_gaming_v1_game_server_configs_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1_game_server_configs_proto_rawDescData = file_google_cloud_gaming_v1_game_server_configs_proto_rawDesc -) - -func file_google_cloud_gaming_v1_game_server_configs_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1_game_server_configs_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1_game_server_configs_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1_game_server_configs_proto_rawDescData) - }) - return file_google_cloud_gaming_v1_game_server_configs_proto_rawDescData -} - -var file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_google_cloud_gaming_v1_game_server_configs_proto_goTypes = []interface{}{ - (*ListGameServerConfigsRequest)(nil), // 0: google.cloud.gaming.v1.ListGameServerConfigsRequest - (*ListGameServerConfigsResponse)(nil), // 1: google.cloud.gaming.v1.ListGameServerConfigsResponse - (*GetGameServerConfigRequest)(nil), // 2: google.cloud.gaming.v1.GetGameServerConfigRequest - (*CreateGameServerConfigRequest)(nil), // 3: google.cloud.gaming.v1.CreateGameServerConfigRequest - (*DeleteGameServerConfigRequest)(nil), // 4: google.cloud.gaming.v1.DeleteGameServerConfigRequest - (*ScalingConfig)(nil), // 5: google.cloud.gaming.v1.ScalingConfig - (*FleetConfig)(nil), // 6: google.cloud.gaming.v1.FleetConfig - (*GameServerConfig)(nil), // 7: google.cloud.gaming.v1.GameServerConfig - nil, // 8: google.cloud.gaming.v1.GameServerConfig.LabelsEntry - (*LabelSelector)(nil), // 9: google.cloud.gaming.v1.LabelSelector - (*Schedule)(nil), // 10: google.cloud.gaming.v1.Schedule - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp -} -var file_google_cloud_gaming_v1_game_server_configs_proto_depIdxs = []int32{ - 7, // 0: google.cloud.gaming.v1.ListGameServerConfigsResponse.game_server_configs:type_name -> google.cloud.gaming.v1.GameServerConfig - 7, // 1: google.cloud.gaming.v1.CreateGameServerConfigRequest.game_server_config:type_name -> google.cloud.gaming.v1.GameServerConfig - 9, // 2: google.cloud.gaming.v1.ScalingConfig.selectors:type_name -> google.cloud.gaming.v1.LabelSelector - 10, // 3: google.cloud.gaming.v1.ScalingConfig.schedules:type_name -> google.cloud.gaming.v1.Schedule - 11, // 4: google.cloud.gaming.v1.GameServerConfig.create_time:type_name -> google.protobuf.Timestamp - 11, // 5: google.cloud.gaming.v1.GameServerConfig.update_time:type_name -> google.protobuf.Timestamp - 8, // 6: google.cloud.gaming.v1.GameServerConfig.labels:type_name -> google.cloud.gaming.v1.GameServerConfig.LabelsEntry - 6, // 7: google.cloud.gaming.v1.GameServerConfig.fleet_configs:type_name -> google.cloud.gaming.v1.FleetConfig - 5, // 8: google.cloud.gaming.v1.GameServerConfig.scaling_configs:type_name -> google.cloud.gaming.v1.ScalingConfig - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_configs_proto_init() } -func file_google_cloud_gaming_v1_game_server_configs_proto_init() { - if File_google_cloud_gaming_v1_game_server_configs_proto != nil { - return - } - file_google_cloud_gaming_v1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerConfigsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerConfigsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScalingConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FleetConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerConfig); 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_google_cloud_gaming_v1_game_server_configs_proto_rawDesc, - NumEnums: 0, - NumMessages: 9, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_configs_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_configs_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1_game_server_configs_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1_game_server_configs_proto = out.File - file_google_cloud_gaming_v1_game_server_configs_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_configs_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_configs_proto_depIdxs = nil -} diff --git a/gaming/apiv1/gamingpb/game_server_configs_service.pb.go b/gaming/apiv1/gamingpb/game_server_configs_service.pb.go deleted file mode 100755 index fd4b7cc95242..000000000000 --- a/gaming/apiv1/gamingpb/game_server_configs_service.pb.go +++ /dev/null @@ -1,386 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_configs_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1_game_server_configs_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_configs_service_proto_rawDesc = []byte{ - 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, - 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, - 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x32, 0x9b, 0x08, 0x0a, 0x18, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xda, 0x01, - 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0xc7, 0x01, 0x0a, 0x13, 0x47, - 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, - 0x43, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x94, 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, - 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa3, 0x01, 0xca, 0x41, 0x25, 0x0a, 0x10, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xda, 0x41, 0x19, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x59, 0x3a, 0x12, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x43, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0xef, 0x01, 0x0a, 0x16, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7f, 0xca, 0x41, - 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x2a, 0x43, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x1a, 0x4f, 0xca, - 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, - 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x52, - 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, - 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1_game_server_configs_service_proto_goTypes = []interface{}{ - (*ListGameServerConfigsRequest)(nil), // 0: google.cloud.gaming.v1.ListGameServerConfigsRequest - (*GetGameServerConfigRequest)(nil), // 1: google.cloud.gaming.v1.GetGameServerConfigRequest - (*CreateGameServerConfigRequest)(nil), // 2: google.cloud.gaming.v1.CreateGameServerConfigRequest - (*DeleteGameServerConfigRequest)(nil), // 3: google.cloud.gaming.v1.DeleteGameServerConfigRequest - (*ListGameServerConfigsResponse)(nil), // 4: google.cloud.gaming.v1.ListGameServerConfigsResponse - (*GameServerConfig)(nil), // 5: google.cloud.gaming.v1.GameServerConfig - (*longrunningpb.Operation)(nil), // 6: google.longrunning.Operation -} -var file_google_cloud_gaming_v1_game_server_configs_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs:input_type -> google.cloud.gaming.v1.ListGameServerConfigsRequest - 1, // 1: google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig:input_type -> google.cloud.gaming.v1.GetGameServerConfigRequest - 2, // 2: google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig:input_type -> google.cloud.gaming.v1.CreateGameServerConfigRequest - 3, // 3: google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig:input_type -> google.cloud.gaming.v1.DeleteGameServerConfigRequest - 4, // 4: google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs:output_type -> google.cloud.gaming.v1.ListGameServerConfigsResponse - 5, // 5: google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig:output_type -> google.cloud.gaming.v1.GameServerConfig - 6, // 6: google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig:output_type -> google.longrunning.Operation - 6, // 7: google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig:output_type -> google.longrunning.Operation - 4, // [4:8] is the sub-list for method output_type - 0, // [0:4] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_configs_service_proto_init() } -func file_google_cloud_gaming_v1_game_server_configs_service_proto_init() { - if File_google_cloud_gaming_v1_game_server_configs_service_proto != nil { - return - } - file_google_cloud_gaming_v1_game_server_configs_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_game_server_configs_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_configs_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_configs_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1_game_server_configs_service_proto = out.File - file_google_cloud_gaming_v1_game_server_configs_service_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_configs_service_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_configs_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerConfigsServiceClient is the client API for GameServerConfigsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerConfigsServiceClient interface { - // Lists game server configs in a given project, location, and game server - // deployment. - ListGameServerConfigs(ctx context.Context, in *ListGameServerConfigsRequest, opts ...grpc.CallOption) (*ListGameServerConfigsResponse, error) - // Gets details of a single game server config. - GetGameServerConfig(ctx context.Context, in *GetGameServerConfigRequest, opts ...grpc.CallOption) (*GameServerConfig, error) - // Creates a new game server config in a given project, location, and game - // server deployment. Game server configs are immutable, and are not applied - // until referenced in the game server deployment rollout resource. - CreateGameServerConfig(ctx context.Context, in *CreateGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single game server config. The deletion will fail if the game - // server config is referenced in a game server deployment rollout. - DeleteGameServerConfig(ctx context.Context, in *DeleteGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) -} - -type gameServerConfigsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerConfigsServiceClient(cc grpc.ClientConnInterface) GameServerConfigsServiceClient { - return &gameServerConfigsServiceClient{cc} -} - -func (c *gameServerConfigsServiceClient) ListGameServerConfigs(ctx context.Context, in *ListGameServerConfigsRequest, opts ...grpc.CallOption) (*ListGameServerConfigsResponse, error) { - out := new(ListGameServerConfigsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerConfigsService/ListGameServerConfigs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) GetGameServerConfig(ctx context.Context, in *GetGameServerConfigRequest, opts ...grpc.CallOption) (*GameServerConfig, error) { - out := new(GameServerConfig) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerConfigsService/GetGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) CreateGameServerConfig(ctx context.Context, in *CreateGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerConfigsService/CreateGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) DeleteGameServerConfig(ctx context.Context, in *DeleteGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerConfigsService/DeleteGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerConfigsServiceServer is the server API for GameServerConfigsService service. -type GameServerConfigsServiceServer interface { - // Lists game server configs in a given project, location, and game server - // deployment. - ListGameServerConfigs(context.Context, *ListGameServerConfigsRequest) (*ListGameServerConfigsResponse, error) - // Gets details of a single game server config. - GetGameServerConfig(context.Context, *GetGameServerConfigRequest) (*GameServerConfig, error) - // Creates a new game server config in a given project, location, and game - // server deployment. Game server configs are immutable, and are not applied - // until referenced in the game server deployment rollout resource. - CreateGameServerConfig(context.Context, *CreateGameServerConfigRequest) (*longrunningpb.Operation, error) - // Deletes a single game server config. The deletion will fail if the game - // server config is referenced in a game server deployment rollout. - DeleteGameServerConfig(context.Context, *DeleteGameServerConfigRequest) (*longrunningpb.Operation, error) -} - -// UnimplementedGameServerConfigsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerConfigsServiceServer struct { -} - -func (*UnimplementedGameServerConfigsServiceServer) ListGameServerConfigs(context.Context, *ListGameServerConfigsRequest) (*ListGameServerConfigsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerConfigs not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) GetGameServerConfig(context.Context, *GetGameServerConfigRequest) (*GameServerConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerConfig not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) CreateGameServerConfig(context.Context, *CreateGameServerConfigRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerConfig not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) DeleteGameServerConfig(context.Context, *DeleteGameServerConfigRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerConfig not implemented") -} - -func RegisterGameServerConfigsServiceServer(s *grpc.Server, srv GameServerConfigsServiceServer) { - s.RegisterService(&_GameServerConfigsService_serviceDesc, srv) -} - -func _GameServerConfigsService_ListGameServerConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerConfigsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).ListGameServerConfigs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerConfigsService/ListGameServerConfigs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).ListGameServerConfigs(ctx, req.(*ListGameServerConfigsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_GetGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).GetGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerConfigsService/GetGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).GetGameServerConfig(ctx, req.(*GetGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_CreateGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).CreateGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerConfigsService/CreateGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).CreateGameServerConfig(ctx, req.(*CreateGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_DeleteGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).DeleteGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerConfigsService/DeleteGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).DeleteGameServerConfig(ctx, req.(*DeleteGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerConfigsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1.GameServerConfigsService", - HandlerType: (*GameServerConfigsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerConfigs", - Handler: _GameServerConfigsService_ListGameServerConfigs_Handler, - }, - { - MethodName: "GetGameServerConfig", - Handler: _GameServerConfigsService_GetGameServerConfig_Handler, - }, - { - MethodName: "CreateGameServerConfig", - Handler: _GameServerConfigsService_CreateGameServerConfig_Handler, - }, - { - MethodName: "DeleteGameServerConfig", - Handler: _GameServerConfigsService_DeleteGameServerConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1/game_server_configs_service.proto", -} diff --git a/gaming/apiv1/gamingpb/game_server_deployments.pb.go b/gaming/apiv1/gamingpb/game_server_deployments.pb.go deleted file mode 100755 index 407fb9095bb8..000000000000 --- a/gaming/apiv1/gamingpb/game_server_deployments.pb.go +++ /dev/null @@ -1,1682 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_deployments.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for GameServerDeploymentsService.ListGameServerDeployments. -type ListGameServerDeploymentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, the server - // will pick an appropriate default. The server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1.ListGameServerDeploymentsResponse.next_page_token] to - // determine if there are more GameServerDeployments left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListGameServerDeploymentsRequest) Reset() { - *x = ListGameServerDeploymentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerDeploymentsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerDeploymentsRequest) ProtoMessage() {} - -func (x *ListGameServerDeploymentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 ListGameServerDeploymentsRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerDeploymentsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerDeploymentsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerDeploymentsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for GameServerDeploymentsService.ListGameServerDeployments. -type ListGameServerDeploymentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server deployments. - GameServerDeployments []*GameServerDeployment `protobuf:"bytes,1,rep,name=game_server_deployments,json=gameServerDeployments,proto3" json:"game_server_deployments,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerDeploymentsResponse) Reset() { - *x = ListGameServerDeploymentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerDeploymentsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerDeploymentsResponse) ProtoMessage() {} - -func (x *ListGameServerDeploymentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 ListGameServerDeploymentsResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerDeploymentsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerDeploymentsResponse) GetGameServerDeployments() []*GameServerDeployment { - if x != nil { - return x.GameServerDeployments - } - return nil -} - -func (x *ListGameServerDeploymentsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerDeploymentsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerDeploymentsService.GetGameServerDeployment. -type GetGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to retrieve, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerDeploymentRequest) Reset() { - *x = GetGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerDeploymentRequest) ProtoMessage() {} - -func (x *GetGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 GetGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerDeploymentRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for -// GameServerDeploymentsService.GetGameServerDeploymentRollout. -type GetGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to retrieve, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerDeploymentRolloutRequest) Reset() { - *x = GetGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *GetGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 GetGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{3} -} - -func (x *GetGameServerDeploymentRolloutRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerDeploymentsService.CreateGameServerDeployment. -type CreateGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server delpoyment resource to be created. - DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` - // Required. The game server delpoyment resource to be created. - GameServerDeployment *GameServerDeployment `protobuf:"bytes,3,opt,name=game_server_deployment,json=gameServerDeployment,proto3" json:"game_server_deployment,omitempty"` -} - -func (x *CreateGameServerDeploymentRequest) Reset() { - *x = CreateGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerDeploymentRequest) ProtoMessage() {} - -func (x *CreateGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 CreateGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateGameServerDeploymentRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerDeploymentRequest) GetDeploymentId() string { - if x != nil { - return x.DeploymentId - } - return "" -} - -func (x *CreateGameServerDeploymentRequest) GetGameServerDeployment() *GameServerDeployment { - if x != nil { - return x.GameServerDeployment - } - return nil -} - -// Request message for GameServerDeploymentsService.DeleteGameServerDeployment. -type DeleteGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to delete, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerDeploymentRequest) Reset() { - *x = DeleteGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerDeploymentRequest) ProtoMessage() {} - -func (x *DeleteGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{5} -} - -func (x *DeleteGameServerDeploymentRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerDeploymentsService.UpdateGameServerDeployment. -// Only allows updates for labels. -type UpdateGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server delpoyment to be updated. - // Only fields specified in update_mask are updated. - GameServerDeployment *GameServerDeployment `protobuf:"bytes,1,opt,name=game_server_deployment,json=gameServerDeployment,proto3" json:"game_server_deployment,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerDeploymentRequest) Reset() { - *x = UpdateGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerDeploymentRequest) ProtoMessage() {} - -func (x *UpdateGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateGameServerDeploymentRequest) GetGameServerDeployment() *GameServerDeployment { - if x != nil { - return x.GameServerDeployment - } - return nil -} - -func (x *UpdateGameServerDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for -// GameServerDeploymentsService.UpdateGameServerRolloutDeployment. -type UpdateGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server delpoyment rollout to be updated. - // Only fields specified in update_mask are updated. - Rollout *GameServerDeploymentRollout `protobuf:"bytes,1,opt,name=rollout,proto3" json:"rollout,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerDeploymentRolloutRequest) Reset() { - *x = UpdateGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *UpdateGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateGameServerDeploymentRolloutRequest) GetRollout() *GameServerDeploymentRollout { - if x != nil { - return x.Rollout - } - return nil -} - -func (x *UpdateGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for GameServerDeploymentsService.FetchDeploymentState. -type FetchDeploymentStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *FetchDeploymentStateRequest) Reset() { - *x = FetchDeploymentStateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateRequest) ProtoMessage() {} - -func (x *FetchDeploymentStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateRequest.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{8} -} - -func (x *FetchDeploymentStateRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Response message for GameServerDeploymentsService.FetchDeploymentState. -type FetchDeploymentStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The state of the game server deployment in each game server cluster. - ClusterState []*FetchDeploymentStateResponse_DeployedClusterState `protobuf:"bytes,1,rep,name=cluster_state,json=clusterState,proto3" json:"cluster_state,omitempty"` - // List of locations that could not be reached. - Unavailable []string `protobuf:"bytes,2,rep,name=unavailable,proto3" json:"unavailable,omitempty"` -} - -func (x *FetchDeploymentStateResponse) Reset() { - *x = FetchDeploymentStateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateResponse) ProtoMessage() {} - -func (x *FetchDeploymentStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateResponse.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{9} -} - -func (x *FetchDeploymentStateResponse) GetClusterState() []*FetchDeploymentStateResponse_DeployedClusterState { - if x != nil { - return x.ClusterState - } - return nil -} - -func (x *FetchDeploymentStateResponse) GetUnavailable() []string { - if x != nil { - return x.Unavailable - } - return nil -} - -// A game server deployment resource. -type GameServerDeployment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server deployment, in the following form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - // For example, - // `projects/my-project/locations/global/gameServerDeployments/my-deployment`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server deployment. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // ETag of the resource. - Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the game server delpoyment. - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *GameServerDeployment) Reset() { - *x = GameServerDeployment{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerDeployment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerDeployment) ProtoMessage() {} - -func (x *GameServerDeployment) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerDeployment.ProtoReflect.Descriptor instead. -func (*GameServerDeployment) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{10} -} - -func (x *GameServerDeployment) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerDeployment) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerDeployment) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerDeployment) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerDeployment) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *GameServerDeployment) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -// A game server config override. -type GameServerConfigOverride struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Selector chooses the game server config targets. - // - // Types that are assignable to Selector: - // *GameServerConfigOverride_RealmsSelector - Selector isGameServerConfigOverride_Selector `protobuf_oneof:"selector"` - // Selects the game server config and how it should be applied. - // - // Types that are assignable to Change: - // *GameServerConfigOverride_ConfigVersion - Change isGameServerConfigOverride_Change `protobuf_oneof:"change"` -} - -func (x *GameServerConfigOverride) Reset() { - *x = GameServerConfigOverride{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerConfigOverride) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerConfigOverride) ProtoMessage() {} - -func (x *GameServerConfigOverride) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerConfigOverride.ProtoReflect.Descriptor instead. -func (*GameServerConfigOverride) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{11} -} - -func (m *GameServerConfigOverride) GetSelector() isGameServerConfigOverride_Selector { - if m != nil { - return m.Selector - } - return nil -} - -func (x *GameServerConfigOverride) GetRealmsSelector() *RealmSelector { - if x, ok := x.GetSelector().(*GameServerConfigOverride_RealmsSelector); ok { - return x.RealmsSelector - } - return nil -} - -func (m *GameServerConfigOverride) GetChange() isGameServerConfigOverride_Change { - if m != nil { - return m.Change - } - return nil -} - -func (x *GameServerConfigOverride) GetConfigVersion() string { - if x, ok := x.GetChange().(*GameServerConfigOverride_ConfigVersion); ok { - return x.ConfigVersion - } - return "" -} - -type isGameServerConfigOverride_Selector interface { - isGameServerConfigOverride_Selector() -} - -type GameServerConfigOverride_RealmsSelector struct { - // Selector for choosing applicable realms. - RealmsSelector *RealmSelector `protobuf:"bytes,1,opt,name=realms_selector,json=realmsSelector,proto3,oneof"` -} - -func (*GameServerConfigOverride_RealmsSelector) isGameServerConfigOverride_Selector() {} - -type isGameServerConfigOverride_Change interface { - isGameServerConfigOverride_Change() -} - -type GameServerConfigOverride_ConfigVersion struct { - // The game server config for this override. - ConfigVersion string `protobuf:"bytes,100,opt,name=config_version,json=configVersion,proto3,oneof"` -} - -func (*GameServerConfigOverride_ConfigVersion) isGameServerConfigOverride_Change() {} - -// The game server deployment rollout which represents the desired rollout -// state. -type GameServerDeploymentRollout struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server deployment rollout, in the following - // form: - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. - // For example, - // `projects/my-project/locations/global/gameServerDeployments/my-deployment/rollout`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The default game server config is applied to all realms unless overridden - // in the rollout. For example, - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - DefaultGameServerConfig string `protobuf:"bytes,4,opt,name=default_game_server_config,json=defaultGameServerConfig,proto3" json:"default_game_server_config,omitempty"` - // Contains the game server config rollout overrides. Overrides are processed - // in the order they are listed. Once a match is found for a realm, the rest - // of the list is not processed. - GameServerConfigOverrides []*GameServerConfigOverride `protobuf:"bytes,5,rep,name=game_server_config_overrides,json=gameServerConfigOverrides,proto3" json:"game_server_config_overrides,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` -} - -func (x *GameServerDeploymentRollout) Reset() { - *x = GameServerDeploymentRollout{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerDeploymentRollout) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerDeploymentRollout) ProtoMessage() {} - -func (x *GameServerDeploymentRollout) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_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 GameServerDeploymentRollout.ProtoReflect.Descriptor instead. -func (*GameServerDeploymentRollout) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{12} -} - -func (x *GameServerDeploymentRollout) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerDeploymentRollout) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerDeploymentRollout) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerDeploymentRollout) GetDefaultGameServerConfig() string { - if x != nil { - return x.DefaultGameServerConfig - } - return "" -} - -func (x *GameServerDeploymentRollout) GetGameServerConfigOverrides() []*GameServerConfigOverride { - if x != nil { - return x.GameServerConfigOverrides - } - return nil -} - -func (x *GameServerDeploymentRollout) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -// Request message for PreviewGameServerDeploymentRollout. -type PreviewGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server deployment rollout to be updated. - // Only fields specified in update_mask are updated. - Rollout *GameServerDeploymentRollout `protobuf:"bytes,1,opt,name=rollout,proto3" json:"rollout,omitempty"` - // Optional. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. Defaults to the immediately - // after the proposed rollout completes. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewGameServerDeploymentRolloutRequest) Reset() { - *x = PreviewGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *PreviewGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*PreviewGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{13} -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetRollout() *GameServerDeploymentRollout { - if x != nil { - return x.Rollout - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for PreviewGameServerDeploymentRollout. -// This has details about the Agones fleet and autoscaler to be actuated. -type PreviewGameServerDeploymentRolloutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Locations that could not be reached on this request. - Unavailable []string `protobuf:"bytes,2,rep,name=unavailable,proto3" json:"unavailable,omitempty"` - // ETag of the game server deployment. - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,4,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewGameServerDeploymentRolloutResponse) Reset() { - *x = PreviewGameServerDeploymentRolloutResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewGameServerDeploymentRolloutResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewGameServerDeploymentRolloutResponse) ProtoMessage() {} - -func (x *PreviewGameServerDeploymentRolloutResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewGameServerDeploymentRolloutResponse.ProtoReflect.Descriptor instead. -func (*PreviewGameServerDeploymentRolloutResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{14} -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetUnavailable() []string { - if x != nil { - return x.Unavailable - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// The game server cluster changes made by the game server deployment. -type FetchDeploymentStateResponse_DeployedClusterState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the cluster. - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - // The details about the Agones fleets and autoscalers created in the - // game server cluster. - FleetDetails []*DeployedFleetDetails `protobuf:"bytes,2,rep,name=fleet_details,json=fleetDetails,proto3" json:"fleet_details,omitempty"` -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) Reset() { - *x = FetchDeploymentStateResponse_DeployedClusterState{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateResponse_DeployedClusterState) ProtoMessage() {} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateResponse_DeployedClusterState.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateResponse_DeployedClusterState) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP(), []int{9, 0} -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) GetFleetDetails() []*DeployedFleetDetails { - if x != nil { - return x.FleetDetails - } - return nil -} - -var File_google_cloud_gaming_v1_game_server_deployments_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_deployments_proto_rawDesc = []byte{ - 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, - 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0xf7, 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x12, - 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, - 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xd3, 0x01, 0x0a, - 0x21, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x64, 0x0a, 0x17, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x15, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0x6e, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x75, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x32, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x21, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x50, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x12, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x67, 0x0a, 0x16, 0x67, - 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x21, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, - 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xce, 0x01, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x67, 0x0a, - 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xc0, 0x01, 0x0a, 0x28, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x52, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x36, 0x0a, 0x1b, 0x46, - 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x22, 0xb6, 0x02, 0x0a, 0x1c, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, - 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x51, 0x0a, 0x0d, 0x66, 0x6c, 0x65, - 0x65, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0c, - 0x66, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xf5, 0x03, 0x0a, - 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, - 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, - 0x74, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x3a, 0x81, 0x01, 0xea, 0x41, 0x7e, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x7d, 0x22, 0xab, 0x01, 0x0a, 0x18, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, - 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x5f, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x53, 0x65, 0x6c, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x12, 0x27, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x0a, 0x08, - 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x22, 0x8d, 0x04, 0x0a, 0x1b, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, - 0x75, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x71, 0x0a, 0x1c, 0x67, 0x61, 0x6d, 0x65, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x76, - 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, - 0x19, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, - 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x3a, 0x91, - 0x01, 0xea, 0x41, 0x8d, 0x01, 0x0a, 0x37, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x52, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, - 0x75, 0x74, 0x22, 0x85, 0x02, 0x0a, 0x29, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x52, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, - 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, - 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, - 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x2a, 0x50, - 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x61, - 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, - 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, - 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, - 0x46, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescData = file_google_cloud_gaming_v1_game_server_deployments_proto_rawDesc -) - -func file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescData) - }) - return file_google_cloud_gaming_v1_game_server_deployments_proto_rawDescData -} - -var file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_google_cloud_gaming_v1_game_server_deployments_proto_goTypes = []interface{}{ - (*ListGameServerDeploymentsRequest)(nil), // 0: google.cloud.gaming.v1.ListGameServerDeploymentsRequest - (*ListGameServerDeploymentsResponse)(nil), // 1: google.cloud.gaming.v1.ListGameServerDeploymentsResponse - (*GetGameServerDeploymentRequest)(nil), // 2: google.cloud.gaming.v1.GetGameServerDeploymentRequest - (*GetGameServerDeploymentRolloutRequest)(nil), // 3: google.cloud.gaming.v1.GetGameServerDeploymentRolloutRequest - (*CreateGameServerDeploymentRequest)(nil), // 4: google.cloud.gaming.v1.CreateGameServerDeploymentRequest - (*DeleteGameServerDeploymentRequest)(nil), // 5: google.cloud.gaming.v1.DeleteGameServerDeploymentRequest - (*UpdateGameServerDeploymentRequest)(nil), // 6: google.cloud.gaming.v1.UpdateGameServerDeploymentRequest - (*UpdateGameServerDeploymentRolloutRequest)(nil), // 7: google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest - (*FetchDeploymentStateRequest)(nil), // 8: google.cloud.gaming.v1.FetchDeploymentStateRequest - (*FetchDeploymentStateResponse)(nil), // 9: google.cloud.gaming.v1.FetchDeploymentStateResponse - (*GameServerDeployment)(nil), // 10: google.cloud.gaming.v1.GameServerDeployment - (*GameServerConfigOverride)(nil), // 11: google.cloud.gaming.v1.GameServerConfigOverride - (*GameServerDeploymentRollout)(nil), // 12: google.cloud.gaming.v1.GameServerDeploymentRollout - (*PreviewGameServerDeploymentRolloutRequest)(nil), // 13: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest - (*PreviewGameServerDeploymentRolloutResponse)(nil), // 14: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse - (*FetchDeploymentStateResponse_DeployedClusterState)(nil), // 15: google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState - nil, // 16: google.cloud.gaming.v1.GameServerDeployment.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*RealmSelector)(nil), // 19: google.cloud.gaming.v1.RealmSelector - (*TargetState)(nil), // 20: google.cloud.gaming.v1.TargetState - (*DeployedFleetDetails)(nil), // 21: google.cloud.gaming.v1.DeployedFleetDetails -} -var file_google_cloud_gaming_v1_game_server_deployments_proto_depIdxs = []int32{ - 10, // 0: google.cloud.gaming.v1.ListGameServerDeploymentsResponse.game_server_deployments:type_name -> google.cloud.gaming.v1.GameServerDeployment - 10, // 1: google.cloud.gaming.v1.CreateGameServerDeploymentRequest.game_server_deployment:type_name -> google.cloud.gaming.v1.GameServerDeployment - 10, // 2: google.cloud.gaming.v1.UpdateGameServerDeploymentRequest.game_server_deployment:type_name -> google.cloud.gaming.v1.GameServerDeployment - 17, // 3: google.cloud.gaming.v1.UpdateGameServerDeploymentRequest.update_mask:type_name -> google.protobuf.FieldMask - 12, // 4: google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest.rollout:type_name -> google.cloud.gaming.v1.GameServerDeploymentRollout - 17, // 5: google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest.update_mask:type_name -> google.protobuf.FieldMask - 15, // 6: google.cloud.gaming.v1.FetchDeploymentStateResponse.cluster_state:type_name -> google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState - 18, // 7: google.cloud.gaming.v1.GameServerDeployment.create_time:type_name -> google.protobuf.Timestamp - 18, // 8: google.cloud.gaming.v1.GameServerDeployment.update_time:type_name -> google.protobuf.Timestamp - 16, // 9: google.cloud.gaming.v1.GameServerDeployment.labels:type_name -> google.cloud.gaming.v1.GameServerDeployment.LabelsEntry - 19, // 10: google.cloud.gaming.v1.GameServerConfigOverride.realms_selector:type_name -> google.cloud.gaming.v1.RealmSelector - 18, // 11: google.cloud.gaming.v1.GameServerDeploymentRollout.create_time:type_name -> google.protobuf.Timestamp - 18, // 12: google.cloud.gaming.v1.GameServerDeploymentRollout.update_time:type_name -> google.protobuf.Timestamp - 11, // 13: google.cloud.gaming.v1.GameServerDeploymentRollout.game_server_config_overrides:type_name -> google.cloud.gaming.v1.GameServerConfigOverride - 12, // 14: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest.rollout:type_name -> google.cloud.gaming.v1.GameServerDeploymentRollout - 17, // 15: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest.update_mask:type_name -> google.protobuf.FieldMask - 18, // 16: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest.preview_time:type_name -> google.protobuf.Timestamp - 20, // 17: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse.target_state:type_name -> google.cloud.gaming.v1.TargetState - 21, // 18: google.cloud.gaming.v1.FetchDeploymentStateResponse.DeployedClusterState.fleet_details:type_name -> google.cloud.gaming.v1.DeployedFleetDetails - 19, // [19:19] is the sub-list for method output_type - 19, // [19:19] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_deployments_proto_init() } -func file_google_cloud_gaming_v1_game_server_deployments_proto_init() { - if File_google_cloud_gaming_v1_game_server_deployments_proto != nil { - return - } - file_google_cloud_gaming_v1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerDeploymentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerDeploymentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerDeployment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerConfigOverride); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerDeploymentRollout); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewGameServerDeploymentRolloutResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateResponse_DeployedClusterState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes[11].OneofWrappers = []interface{}{ - (*GameServerConfigOverride_RealmsSelector)(nil), - (*GameServerConfigOverride_ConfigVersion)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_game_server_deployments_proto_rawDesc, - NumEnums: 0, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_deployments_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_deployments_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1_game_server_deployments_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1_game_server_deployments_proto = out.File - file_google_cloud_gaming_v1_game_server_deployments_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_deployments_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_deployments_proto_depIdxs = nil -} diff --git a/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go b/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go deleted file mode 100755 index 078488461dac..000000000000 --- a/gaming/apiv1/gamingpb/game_server_deployments_service.pb.go +++ /dev/null @@ -1,687 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/game_server_deployments_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1_game_server_deployments_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_game_server_deployments_service_proto_rawDesc = []byte{ - 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xe8, 0x12, 0x0a, 0x1c, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xdc, 0x01, 0x0a, 0x19, 0x4c, 0x69, - 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0xda, 0x41, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xc9, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x48, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x12, 0x39, 0x2f, 0x76, 0x31, 0x2f, 0x7b, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9e, 0x02, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa5, 0x01, - 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x1d, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x53, 0x3a, 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x39, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0xed, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x75, - 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3b, 0x2a, 0x39, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xba, 0x02, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc1, - 0x01, 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x22, - 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6a, 0x3a, 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x32, 0x50, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, - 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x2a, 0x7d, 0x12, 0xe6, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, - 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x50, 0xda, 0x41, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x43, 0x12, 0x41, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0xa3, 0x02, 0x0a, 0x21, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, - 0x74, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, - 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x9c, 0x01, 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x11, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, - 0x61, 0xda, 0x41, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x54, 0x3a, 0x07, 0x72, - 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x32, 0x49, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, - 0x74, 0x12, 0x8f, 0x02, 0x0a, 0x22, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x62, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5c, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, - 0x32, 0x51, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x2e, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x3a, 0x70, 0x72, 0x65, 0x76, - 0x69, 0x65, 0x77, 0x12, 0xdc, 0x01, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x53, 0x3a, - 0x01, 0x2a, 0x22, 0x4e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x66, 0x65, - 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, - 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1_game_server_deployments_service_proto_goTypes = []interface{}{ - (*ListGameServerDeploymentsRequest)(nil), // 0: google.cloud.gaming.v1.ListGameServerDeploymentsRequest - (*GetGameServerDeploymentRequest)(nil), // 1: google.cloud.gaming.v1.GetGameServerDeploymentRequest - (*CreateGameServerDeploymentRequest)(nil), // 2: google.cloud.gaming.v1.CreateGameServerDeploymentRequest - (*DeleteGameServerDeploymentRequest)(nil), // 3: google.cloud.gaming.v1.DeleteGameServerDeploymentRequest - (*UpdateGameServerDeploymentRequest)(nil), // 4: google.cloud.gaming.v1.UpdateGameServerDeploymentRequest - (*GetGameServerDeploymentRolloutRequest)(nil), // 5: google.cloud.gaming.v1.GetGameServerDeploymentRolloutRequest - (*UpdateGameServerDeploymentRolloutRequest)(nil), // 6: google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest - (*PreviewGameServerDeploymentRolloutRequest)(nil), // 7: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest - (*FetchDeploymentStateRequest)(nil), // 8: google.cloud.gaming.v1.FetchDeploymentStateRequest - (*ListGameServerDeploymentsResponse)(nil), // 9: google.cloud.gaming.v1.ListGameServerDeploymentsResponse - (*GameServerDeployment)(nil), // 10: google.cloud.gaming.v1.GameServerDeployment - (*longrunningpb.Operation)(nil), // 11: google.longrunning.Operation - (*GameServerDeploymentRollout)(nil), // 12: google.cloud.gaming.v1.GameServerDeploymentRollout - (*PreviewGameServerDeploymentRolloutResponse)(nil), // 13: google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse - (*FetchDeploymentStateResponse)(nil), // 14: google.cloud.gaming.v1.FetchDeploymentStateResponse -} -var file_google_cloud_gaming_v1_game_server_deployments_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments:input_type -> google.cloud.gaming.v1.ListGameServerDeploymentsRequest - 1, // 1: google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment:input_type -> google.cloud.gaming.v1.GetGameServerDeploymentRequest - 2, // 2: google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment:input_type -> google.cloud.gaming.v1.CreateGameServerDeploymentRequest - 3, // 3: google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment:input_type -> google.cloud.gaming.v1.DeleteGameServerDeploymentRequest - 4, // 4: google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment:input_type -> google.cloud.gaming.v1.UpdateGameServerDeploymentRequest - 5, // 5: google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1.GetGameServerDeploymentRolloutRequest - 6, // 6: google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1.UpdateGameServerDeploymentRolloutRequest - 7, // 7: google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutRequest - 8, // 8: google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState:input_type -> google.cloud.gaming.v1.FetchDeploymentStateRequest - 9, // 9: google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments:output_type -> google.cloud.gaming.v1.ListGameServerDeploymentsResponse - 10, // 10: google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment:output_type -> google.cloud.gaming.v1.GameServerDeployment - 11, // 11: google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment:output_type -> google.longrunning.Operation - 11, // 12: google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment:output_type -> google.longrunning.Operation - 11, // 13: google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment:output_type -> google.longrunning.Operation - 12, // 14: google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout:output_type -> google.cloud.gaming.v1.GameServerDeploymentRollout - 11, // 15: google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout:output_type -> google.longrunning.Operation - 13, // 16: google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout:output_type -> google.cloud.gaming.v1.PreviewGameServerDeploymentRolloutResponse - 14, // 17: google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState:output_type -> google.cloud.gaming.v1.FetchDeploymentStateResponse - 9, // [9:18] is the sub-list for method output_type - 0, // [0:9] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_game_server_deployments_service_proto_init() } -func file_google_cloud_gaming_v1_game_server_deployments_service_proto_init() { - if File_google_cloud_gaming_v1_game_server_deployments_service_proto != nil { - return - } - file_google_cloud_gaming_v1_game_server_deployments_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_game_server_deployments_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1_game_server_deployments_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_game_server_deployments_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1_game_server_deployments_service_proto = out.File - file_google_cloud_gaming_v1_game_server_deployments_service_proto_rawDesc = nil - file_google_cloud_gaming_v1_game_server_deployments_service_proto_goTypes = nil - file_google_cloud_gaming_v1_game_server_deployments_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerDeploymentsServiceClient is the client API for GameServerDeploymentsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerDeploymentsServiceClient interface { - // Lists game server deployments in a given project and location. - ListGameServerDeployments(ctx context.Context, in *ListGameServerDeploymentsRequest, opts ...grpc.CallOption) (*ListGameServerDeploymentsResponse, error) - // Gets details of a single game server deployment. - GetGameServerDeployment(ctx context.Context, in *GetGameServerDeploymentRequest, opts ...grpc.CallOption) (*GameServerDeployment, error) - // Creates a new game server deployment in a given project and location. - CreateGameServerDeployment(ctx context.Context, in *CreateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single game server deployment. - DeleteGameServerDeployment(ctx context.Context, in *DeleteGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Patches a game server deployment. - UpdateGameServerDeployment(ctx context.Context, in *UpdateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Gets details a single game server deployment rollout. - GetGameServerDeploymentRollout(ctx context.Context, in *GetGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*GameServerDeploymentRollout, error) - // Patches a single game server deployment rollout. - // The method will not return an error if the update does not affect any - // existing realms. For example - if the default_game_server_config is changed - // but all existing realms use the override, that is valid. Similarly, if a - // non existing realm is explicitly called out in game_server_config_overrides - // field, that will also not result in an error. - UpdateGameServerDeploymentRollout(ctx context.Context, in *UpdateGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews the game server deployment rollout. This API does not mutate the - // rollout resource. - PreviewGameServerDeploymentRollout(ctx context.Context, in *PreviewGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*PreviewGameServerDeploymentRolloutResponse, error) - // Retrieves information about the current state of the game server - // deployment. Gathers all the Agones fleets and Agones autoscalers, - // including fleets running an older version of the game server deployment. - FetchDeploymentState(ctx context.Context, in *FetchDeploymentStateRequest, opts ...grpc.CallOption) (*FetchDeploymentStateResponse, error) -} - -type gameServerDeploymentsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerDeploymentsServiceClient(cc grpc.ClientConnInterface) GameServerDeploymentsServiceClient { - return &gameServerDeploymentsServiceClient{cc} -} - -func (c *gameServerDeploymentsServiceClient) ListGameServerDeployments(ctx context.Context, in *ListGameServerDeploymentsRequest, opts ...grpc.CallOption) (*ListGameServerDeploymentsResponse, error) { - out := new(ListGameServerDeploymentsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/ListGameServerDeployments", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) GetGameServerDeployment(ctx context.Context, in *GetGameServerDeploymentRequest, opts ...grpc.CallOption) (*GameServerDeployment, error) { - out := new(GameServerDeployment) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/GetGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) CreateGameServerDeployment(ctx context.Context, in *CreateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/CreateGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) DeleteGameServerDeployment(ctx context.Context, in *DeleteGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/DeleteGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) UpdateGameServerDeployment(ctx context.Context, in *UpdateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/UpdateGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) GetGameServerDeploymentRollout(ctx context.Context, in *GetGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*GameServerDeploymentRollout, error) { - out := new(GameServerDeploymentRollout) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/GetGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) UpdateGameServerDeploymentRollout(ctx context.Context, in *UpdateGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/UpdateGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) PreviewGameServerDeploymentRollout(ctx context.Context, in *PreviewGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*PreviewGameServerDeploymentRolloutResponse, error) { - out := new(PreviewGameServerDeploymentRolloutResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/PreviewGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) FetchDeploymentState(ctx context.Context, in *FetchDeploymentStateRequest, opts ...grpc.CallOption) (*FetchDeploymentStateResponse, error) { - out := new(FetchDeploymentStateResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.GameServerDeploymentsService/FetchDeploymentState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerDeploymentsServiceServer is the server API for GameServerDeploymentsService service. -type GameServerDeploymentsServiceServer interface { - // Lists game server deployments in a given project and location. - ListGameServerDeployments(context.Context, *ListGameServerDeploymentsRequest) (*ListGameServerDeploymentsResponse, error) - // Gets details of a single game server deployment. - GetGameServerDeployment(context.Context, *GetGameServerDeploymentRequest) (*GameServerDeployment, error) - // Creates a new game server deployment in a given project and location. - CreateGameServerDeployment(context.Context, *CreateGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Deletes a single game server deployment. - DeleteGameServerDeployment(context.Context, *DeleteGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Patches a game server deployment. - UpdateGameServerDeployment(context.Context, *UpdateGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Gets details a single game server deployment rollout. - GetGameServerDeploymentRollout(context.Context, *GetGameServerDeploymentRolloutRequest) (*GameServerDeploymentRollout, error) - // Patches a single game server deployment rollout. - // The method will not return an error if the update does not affect any - // existing realms. For example - if the default_game_server_config is changed - // but all existing realms use the override, that is valid. Similarly, if a - // non existing realm is explicitly called out in game_server_config_overrides - // field, that will also not result in an error. - UpdateGameServerDeploymentRollout(context.Context, *UpdateGameServerDeploymentRolloutRequest) (*longrunningpb.Operation, error) - // Previews the game server deployment rollout. This API does not mutate the - // rollout resource. - PreviewGameServerDeploymentRollout(context.Context, *PreviewGameServerDeploymentRolloutRequest) (*PreviewGameServerDeploymentRolloutResponse, error) - // Retrieves information about the current state of the game server - // deployment. Gathers all the Agones fleets and Agones autoscalers, - // including fleets running an older version of the game server deployment. - FetchDeploymentState(context.Context, *FetchDeploymentStateRequest) (*FetchDeploymentStateResponse, error) -} - -// UnimplementedGameServerDeploymentsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerDeploymentsServiceServer struct { -} - -func (*UnimplementedGameServerDeploymentsServiceServer) ListGameServerDeployments(context.Context, *ListGameServerDeploymentsRequest) (*ListGameServerDeploymentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerDeployments not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) GetGameServerDeployment(context.Context, *GetGameServerDeploymentRequest) (*GameServerDeployment, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) CreateGameServerDeployment(context.Context, *CreateGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) DeleteGameServerDeployment(context.Context, *DeleteGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) UpdateGameServerDeployment(context.Context, *UpdateGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) GetGameServerDeploymentRollout(context.Context, *GetGameServerDeploymentRolloutRequest) (*GameServerDeploymentRollout, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) UpdateGameServerDeploymentRollout(context.Context, *UpdateGameServerDeploymentRolloutRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) PreviewGameServerDeploymentRollout(context.Context, *PreviewGameServerDeploymentRolloutRequest) (*PreviewGameServerDeploymentRolloutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) FetchDeploymentState(context.Context, *FetchDeploymentStateRequest) (*FetchDeploymentStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchDeploymentState not implemented") -} - -func RegisterGameServerDeploymentsServiceServer(s *grpc.Server, srv GameServerDeploymentsServiceServer) { - s.RegisterService(&_GameServerDeploymentsService_serviceDesc, srv) -} - -func _GameServerDeploymentsService_ListGameServerDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerDeploymentsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).ListGameServerDeployments(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/ListGameServerDeployments", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).ListGameServerDeployments(ctx, req.(*ListGameServerDeploymentsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_GetGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/GetGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeployment(ctx, req.(*GetGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_CreateGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).CreateGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/CreateGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).CreateGameServerDeployment(ctx, req.(*CreateGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_DeleteGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).DeleteGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/DeleteGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).DeleteGameServerDeployment(ctx, req.(*DeleteGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_UpdateGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/UpdateGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeployment(ctx, req.(*UpdateGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_GetGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/GetGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeploymentRollout(ctx, req.(*GetGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_UpdateGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/UpdateGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeploymentRollout(ctx, req.(*UpdateGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_PreviewGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).PreviewGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/PreviewGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).PreviewGameServerDeploymentRollout(ctx, req.(*PreviewGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_FetchDeploymentState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchDeploymentStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).FetchDeploymentState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.GameServerDeploymentsService/FetchDeploymentState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).FetchDeploymentState(ctx, req.(*FetchDeploymentStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerDeploymentsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1.GameServerDeploymentsService", - HandlerType: (*GameServerDeploymentsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerDeployments", - Handler: _GameServerDeploymentsService_ListGameServerDeployments_Handler, - }, - { - MethodName: "GetGameServerDeployment", - Handler: _GameServerDeploymentsService_GetGameServerDeployment_Handler, - }, - { - MethodName: "CreateGameServerDeployment", - Handler: _GameServerDeploymentsService_CreateGameServerDeployment_Handler, - }, - { - MethodName: "DeleteGameServerDeployment", - Handler: _GameServerDeploymentsService_DeleteGameServerDeployment_Handler, - }, - { - MethodName: "UpdateGameServerDeployment", - Handler: _GameServerDeploymentsService_UpdateGameServerDeployment_Handler, - }, - { - MethodName: "GetGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_GetGameServerDeploymentRollout_Handler, - }, - { - MethodName: "UpdateGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_UpdateGameServerDeploymentRollout_Handler, - }, - { - MethodName: "PreviewGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_PreviewGameServerDeploymentRollout_Handler, - }, - { - MethodName: "FetchDeploymentState", - Handler: _GameServerDeploymentsService_FetchDeploymentState_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1/game_server_deployments_service.proto", -} diff --git a/gaming/apiv1/gamingpb/realms.pb.go b/gaming/apiv1/gamingpb/realms.pb.go deleted file mode 100755 index cf9c8e8291cd..000000000000 --- a/gaming/apiv1/gamingpb/realms.pb.go +++ /dev/null @@ -1,976 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/realms.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for RealmsService.ListRealms. -type ListRealmsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1.ListRealmsResponse.next_page_token] to - // determine if there are more realms left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListRealmsRequest) Reset() { - *x = ListRealmsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRealmsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRealmsRequest) ProtoMessage() {} - -func (x *ListRealmsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_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 ListRealmsRequest.ProtoReflect.Descriptor instead. -func (*ListRealmsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{0} -} - -func (x *ListRealmsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListRealmsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListRealmsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListRealmsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListRealmsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for RealmsService.ListRealms. -type ListRealmsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of realms. - Realms []*Realm `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListRealmsResponse) Reset() { - *x = ListRealmsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRealmsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRealmsResponse) ProtoMessage() {} - -func (x *ListRealmsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_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 ListRealmsResponse.ProtoReflect.Descriptor instead. -func (*ListRealmsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{1} -} - -func (x *ListRealmsResponse) GetRealms() []*Realm { - if x != nil { - return x.Realms - } - return nil -} - -func (x *ListRealmsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListRealmsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for RealmsService.GetRealm. -type GetRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the realm to retrieve, in the following form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetRealmRequest) Reset() { - *x = GetRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRealmRequest) ProtoMessage() {} - -func (x *GetRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_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 GetRealmRequest.ProtoReflect.Descriptor instead. -func (*GetRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{2} -} - -func (x *GetRealmRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for RealmsService.CreateRealm. -type CreateRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name, in the following form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the realm resource to be created. - RealmId string `protobuf:"bytes,2,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"` - // Required. The realm resource to be created. - Realm *Realm `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"` -} - -func (x *CreateRealmRequest) Reset() { - *x = CreateRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRealmRequest) ProtoMessage() {} - -func (x *CreateRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_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 CreateRealmRequest.ProtoReflect.Descriptor instead. -func (*CreateRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateRealmRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateRealmRequest) GetRealmId() string { - if x != nil { - return x.RealmId - } - return "" -} - -func (x *CreateRealmRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -// Request message for RealmsService.DeleteRealm. -type DeleteRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the realm to delete, in the following form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteRealmRequest) Reset() { - *x = DeleteRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRealmRequest) ProtoMessage() {} - -func (x *DeleteRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_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 DeleteRealmRequest.ProtoReflect.Descriptor instead. -func (*DeleteRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteRealmRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for RealmsService.UpdateRealm. -type UpdateRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm *Realm `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"` - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateRealmRequest) Reset() { - *x = UpdateRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateRealmRequest) ProtoMessage() {} - -func (x *UpdateRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateRealmRequest.ProtoReflect.Descriptor instead. -func (*UpdateRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{5} -} - -func (x *UpdateRealmRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -func (x *UpdateRealmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for RealmsService.PreviewRealmUpdate. -type PreviewRealmUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm *Realm `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"` - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewRealmUpdateRequest) Reset() { - *x = PreviewRealmUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewRealmUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewRealmUpdateRequest) ProtoMessage() {} - -func (x *PreviewRealmUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewRealmUpdateRequest.ProtoReflect.Descriptor instead. -func (*PreviewRealmUpdateRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{6} -} - -func (x *PreviewRealmUpdateRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -func (x *PreviewRealmUpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewRealmUpdateRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for RealmsService.PreviewRealmUpdate. -type PreviewRealmUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ETag of the realm. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewRealmUpdateResponse) Reset() { - *x = PreviewRealmUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewRealmUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewRealmUpdateResponse) ProtoMessage() {} - -func (x *PreviewRealmUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewRealmUpdateResponse.ProtoReflect.Descriptor instead. -func (*PreviewRealmUpdateResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{7} -} - -func (x *PreviewRealmUpdateResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewRealmUpdateResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// A realm resource. -type Realm struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the realm, in the following form: - // `projects/{project}/locations/{location}/realms/{realm}`. For - // example, `projects/my-project/locations/{location}/realms/my-realm`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this realm. Each label is a key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. Time zone where all policies targeting this realm are evaluated. The value - // of this field must be from the IANA time zone database: - // https://www.iana.org/time-zones. - TimeZone string `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the realm. - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *Realm) Reset() { - *x = Realm{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Realm) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Realm) ProtoMessage() {} - -func (x *Realm) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1_realms_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Realm.ProtoReflect.Descriptor instead. -func (*Realm) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1_realms_proto_rawDescGZIP(), []int{8} -} - -func (x *Realm) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Realm) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *Realm) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *Realm) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *Realm) GetTimeZone() string { - if x != nil { - return x.TimeZone - } - return "" -} - -func (x *Realm) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *Realm) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_google_cloud_gaming_v1_realms_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_realms_proto_rawDesc = []byte{ - 0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, - 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xd9, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, - 0x21, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, - 0x6c, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, - 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x95, 0x01, - 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x52, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, - 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, - 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x50, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x6c, - 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, - 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, - 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb1, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x49, - 0x64, 0x12, 0x38, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x22, 0x53, 0x0a, 0x12, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x90, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, - 0x6d, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, - 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, - 0x61, 0x73, 0x6b, 0x22, 0xdb, 0x01, 0x0a, 0x19, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, - 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x38, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, - 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, - 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, - 0x65, 0x22, 0x78, 0x0a, 0x1a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x61, 0x6c, - 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, - 0x74, 0x61, 0x67, 0x12, 0x46, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd5, 0x03, 0x0a, 0x05, - 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x41, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x20, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x5a, 0x6f, - 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, - 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, - 0x02, 0x38, 0x01, 0x3a, 0x5e, 0xea, 0x41, 0x5b, 0x0a, 0x21, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x36, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x7d, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, - 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1_realms_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1_realms_proto_rawDescData = file_google_cloud_gaming_v1_realms_proto_rawDesc -) - -func file_google_cloud_gaming_v1_realms_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1_realms_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1_realms_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1_realms_proto_rawDescData) - }) - return file_google_cloud_gaming_v1_realms_proto_rawDescData -} - -var file_google_cloud_gaming_v1_realms_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_google_cloud_gaming_v1_realms_proto_goTypes = []interface{}{ - (*ListRealmsRequest)(nil), // 0: google.cloud.gaming.v1.ListRealmsRequest - (*ListRealmsResponse)(nil), // 1: google.cloud.gaming.v1.ListRealmsResponse - (*GetRealmRequest)(nil), // 2: google.cloud.gaming.v1.GetRealmRequest - (*CreateRealmRequest)(nil), // 3: google.cloud.gaming.v1.CreateRealmRequest - (*DeleteRealmRequest)(nil), // 4: google.cloud.gaming.v1.DeleteRealmRequest - (*UpdateRealmRequest)(nil), // 5: google.cloud.gaming.v1.UpdateRealmRequest - (*PreviewRealmUpdateRequest)(nil), // 6: google.cloud.gaming.v1.PreviewRealmUpdateRequest - (*PreviewRealmUpdateResponse)(nil), // 7: google.cloud.gaming.v1.PreviewRealmUpdateResponse - (*Realm)(nil), // 8: google.cloud.gaming.v1.Realm - nil, // 9: google.cloud.gaming.v1.Realm.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 10: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp - (*TargetState)(nil), // 12: google.cloud.gaming.v1.TargetState -} -var file_google_cloud_gaming_v1_realms_proto_depIdxs = []int32{ - 8, // 0: google.cloud.gaming.v1.ListRealmsResponse.realms:type_name -> google.cloud.gaming.v1.Realm - 8, // 1: google.cloud.gaming.v1.CreateRealmRequest.realm:type_name -> google.cloud.gaming.v1.Realm - 8, // 2: google.cloud.gaming.v1.UpdateRealmRequest.realm:type_name -> google.cloud.gaming.v1.Realm - 10, // 3: google.cloud.gaming.v1.UpdateRealmRequest.update_mask:type_name -> google.protobuf.FieldMask - 8, // 4: google.cloud.gaming.v1.PreviewRealmUpdateRequest.realm:type_name -> google.cloud.gaming.v1.Realm - 10, // 5: google.cloud.gaming.v1.PreviewRealmUpdateRequest.update_mask:type_name -> google.protobuf.FieldMask - 11, // 6: google.cloud.gaming.v1.PreviewRealmUpdateRequest.preview_time:type_name -> google.protobuf.Timestamp - 12, // 7: google.cloud.gaming.v1.PreviewRealmUpdateResponse.target_state:type_name -> google.cloud.gaming.v1.TargetState - 11, // 8: google.cloud.gaming.v1.Realm.create_time:type_name -> google.protobuf.Timestamp - 11, // 9: google.cloud.gaming.v1.Realm.update_time:type_name -> google.protobuf.Timestamp - 9, // 10: google.cloud.gaming.v1.Realm.labels:type_name -> google.cloud.gaming.v1.Realm.LabelsEntry - 11, // [11:11] is the sub-list for method output_type - 11, // [11:11] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_realms_proto_init() } -func file_google_cloud_gaming_v1_realms_proto_init() { - if File_google_cloud_gaming_v1_realms_proto != nil { - return - } - file_google_cloud_gaming_v1_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1_realms_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRealmsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRealmsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewRealmUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewRealmUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1_realms_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Realm); 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_google_cloud_gaming_v1_realms_proto_rawDesc, - NumEnums: 0, - NumMessages: 10, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1_realms_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_realms_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1_realms_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1_realms_proto = out.File - file_google_cloud_gaming_v1_realms_proto_rawDesc = nil - file_google_cloud_gaming_v1_realms_proto_goTypes = nil - file_google_cloud_gaming_v1_realms_proto_depIdxs = nil -} diff --git a/gaming/apiv1/gamingpb/realms_service.pb.go b/gaming/apiv1/gamingpb/realms_service.pb.go deleted file mode 100755 index 65b6bdf89ed8..000000000000 --- a/gaming/apiv1/gamingpb/realms_service.pb.go +++ /dev/null @@ -1,469 +0,0 @@ -// Copyright 2021 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1/realms_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1_realms_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1_realms_service_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x5f, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, - 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xbb, 0x09, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x12, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3b, - 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, - 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x12, 0x8d, 0x01, 0x0a, 0x08, - 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x22, 0x39, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, - 0x2a, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc8, 0x01, 0x0a, 0x0b, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x2a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6e, 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x52, 0x65, 0x61, - 0x6c, 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x15, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, - 0x65, 0x61, 0x6c, 0x6d, 0x2c, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x33, 0x3a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x22, 0x2a, 0x2f, 0x76, 0x31, 0x2f, - 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x12, 0xc0, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x66, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x2a, 0x2a, 0x2f, - 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x0b, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, - 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x70, 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xda, 0x41, 0x11, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x2c, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x05, 0x72, - 0x65, 0x61, 0x6c, 0x6d, 0x32, 0x30, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, - 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x76, 0x69, - 0x65, 0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x31, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, - 0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x05, 0x72, 0x65, - 0x61, 0x6c, 0x6d, 0x32, 0x3e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x2e, - 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, - 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, - 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x52, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1_realms_service_proto_goTypes = []interface{}{ - (*ListRealmsRequest)(nil), // 0: google.cloud.gaming.v1.ListRealmsRequest - (*GetRealmRequest)(nil), // 1: google.cloud.gaming.v1.GetRealmRequest - (*CreateRealmRequest)(nil), // 2: google.cloud.gaming.v1.CreateRealmRequest - (*DeleteRealmRequest)(nil), // 3: google.cloud.gaming.v1.DeleteRealmRequest - (*UpdateRealmRequest)(nil), // 4: google.cloud.gaming.v1.UpdateRealmRequest - (*PreviewRealmUpdateRequest)(nil), // 5: google.cloud.gaming.v1.PreviewRealmUpdateRequest - (*ListRealmsResponse)(nil), // 6: google.cloud.gaming.v1.ListRealmsResponse - (*Realm)(nil), // 7: google.cloud.gaming.v1.Realm - (*longrunningpb.Operation)(nil), // 8: google.longrunning.Operation - (*PreviewRealmUpdateResponse)(nil), // 9: google.cloud.gaming.v1.PreviewRealmUpdateResponse -} -var file_google_cloud_gaming_v1_realms_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1.RealmsService.ListRealms:input_type -> google.cloud.gaming.v1.ListRealmsRequest - 1, // 1: google.cloud.gaming.v1.RealmsService.GetRealm:input_type -> google.cloud.gaming.v1.GetRealmRequest - 2, // 2: google.cloud.gaming.v1.RealmsService.CreateRealm:input_type -> google.cloud.gaming.v1.CreateRealmRequest - 3, // 3: google.cloud.gaming.v1.RealmsService.DeleteRealm:input_type -> google.cloud.gaming.v1.DeleteRealmRequest - 4, // 4: google.cloud.gaming.v1.RealmsService.UpdateRealm:input_type -> google.cloud.gaming.v1.UpdateRealmRequest - 5, // 5: google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate:input_type -> google.cloud.gaming.v1.PreviewRealmUpdateRequest - 6, // 6: google.cloud.gaming.v1.RealmsService.ListRealms:output_type -> google.cloud.gaming.v1.ListRealmsResponse - 7, // 7: google.cloud.gaming.v1.RealmsService.GetRealm:output_type -> google.cloud.gaming.v1.Realm - 8, // 8: google.cloud.gaming.v1.RealmsService.CreateRealm:output_type -> google.longrunning.Operation - 8, // 9: google.cloud.gaming.v1.RealmsService.DeleteRealm:output_type -> google.longrunning.Operation - 8, // 10: google.cloud.gaming.v1.RealmsService.UpdateRealm:output_type -> google.longrunning.Operation - 9, // 11: google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate:output_type -> google.cloud.gaming.v1.PreviewRealmUpdateResponse - 6, // [6:12] is the sub-list for method output_type - 0, // [0:6] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1_realms_service_proto_init() } -func file_google_cloud_gaming_v1_realms_service_proto_init() { - if File_google_cloud_gaming_v1_realms_service_proto != nil { - return - } - file_google_cloud_gaming_v1_realms_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1_realms_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1_realms_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1_realms_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1_realms_service_proto = out.File - file_google_cloud_gaming_v1_realms_service_proto_rawDesc = nil - file_google_cloud_gaming_v1_realms_service_proto_goTypes = nil - file_google_cloud_gaming_v1_realms_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RealmsServiceClient is the client API for RealmsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RealmsServiceClient interface { - // Lists realms in a given project and location. - ListRealms(ctx context.Context, in *ListRealmsRequest, opts ...grpc.CallOption) (*ListRealmsResponse, error) - // Gets details of a single realm. - GetRealm(ctx context.Context, in *GetRealmRequest, opts ...grpc.CallOption) (*Realm, error) - // Creates a new realm in a given project and location. - CreateRealm(ctx context.Context, in *CreateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single realm. - DeleteRealm(ctx context.Context, in *DeleteRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Patches a single realm. - UpdateRealm(ctx context.Context, in *UpdateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews patches to a single realm. - PreviewRealmUpdate(ctx context.Context, in *PreviewRealmUpdateRequest, opts ...grpc.CallOption) (*PreviewRealmUpdateResponse, error) -} - -type realmsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewRealmsServiceClient(cc grpc.ClientConnInterface) RealmsServiceClient { - return &realmsServiceClient{cc} -} - -func (c *realmsServiceClient) ListRealms(ctx context.Context, in *ListRealmsRequest, opts ...grpc.CallOption) (*ListRealmsResponse, error) { - out := new(ListRealmsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/ListRealms", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) GetRealm(ctx context.Context, in *GetRealmRequest, opts ...grpc.CallOption) (*Realm, error) { - out := new(Realm) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/GetRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) CreateRealm(ctx context.Context, in *CreateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/CreateRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) DeleteRealm(ctx context.Context, in *DeleteRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/DeleteRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) UpdateRealm(ctx context.Context, in *UpdateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/UpdateRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) PreviewRealmUpdate(ctx context.Context, in *PreviewRealmUpdateRequest, opts ...grpc.CallOption) (*PreviewRealmUpdateResponse, error) { - out := new(PreviewRealmUpdateResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1.RealmsService/PreviewRealmUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RealmsServiceServer is the server API for RealmsService service. -type RealmsServiceServer interface { - // Lists realms in a given project and location. - ListRealms(context.Context, *ListRealmsRequest) (*ListRealmsResponse, error) - // Gets details of a single realm. - GetRealm(context.Context, *GetRealmRequest) (*Realm, error) - // Creates a new realm in a given project and location. - CreateRealm(context.Context, *CreateRealmRequest) (*longrunningpb.Operation, error) - // Deletes a single realm. - DeleteRealm(context.Context, *DeleteRealmRequest) (*longrunningpb.Operation, error) - // Patches a single realm. - UpdateRealm(context.Context, *UpdateRealmRequest) (*longrunningpb.Operation, error) - // Previews patches to a single realm. - PreviewRealmUpdate(context.Context, *PreviewRealmUpdateRequest) (*PreviewRealmUpdateResponse, error) -} - -// UnimplementedRealmsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRealmsServiceServer struct { -} - -func (*UnimplementedRealmsServiceServer) ListRealms(context.Context, *ListRealmsRequest) (*ListRealmsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRealms not implemented") -} -func (*UnimplementedRealmsServiceServer) GetRealm(context.Context, *GetRealmRequest) (*Realm, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) CreateRealm(context.Context, *CreateRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) DeleteRealm(context.Context, *DeleteRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) UpdateRealm(context.Context, *UpdateRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) PreviewRealmUpdate(context.Context, *PreviewRealmUpdateRequest) (*PreviewRealmUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewRealmUpdate not implemented") -} - -func RegisterRealmsServiceServer(s *grpc.Server, srv RealmsServiceServer) { - s.RegisterService(&_RealmsService_serviceDesc, srv) -} - -func _RealmsService_ListRealms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRealmsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).ListRealms(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/ListRealms", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).ListRealms(ctx, req.(*ListRealmsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_GetRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).GetRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/GetRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).GetRealm(ctx, req.(*GetRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_CreateRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).CreateRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/CreateRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).CreateRealm(ctx, req.(*CreateRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_DeleteRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).DeleteRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/DeleteRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).DeleteRealm(ctx, req.(*DeleteRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_UpdateRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).UpdateRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/UpdateRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).UpdateRealm(ctx, req.(*UpdateRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_PreviewRealmUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewRealmUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).PreviewRealmUpdate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1.RealmsService/PreviewRealmUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).PreviewRealmUpdate(ctx, req.(*PreviewRealmUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RealmsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1.RealmsService", - HandlerType: (*RealmsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListRealms", - Handler: _RealmsService_ListRealms_Handler, - }, - { - MethodName: "GetRealm", - Handler: _RealmsService_GetRealm_Handler, - }, - { - MethodName: "CreateRealm", - Handler: _RealmsService_CreateRealm_Handler, - }, - { - MethodName: "DeleteRealm", - Handler: _RealmsService_DeleteRealm_Handler, - }, - { - MethodName: "UpdateRealm", - Handler: _RealmsService_UpdateRealm_Handler, - }, - { - MethodName: "PreviewRealmUpdate", - Handler: _RealmsService_PreviewRealmUpdate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1/realms_service.proto", -} diff --git a/gaming/apiv1/realms_client.go b/gaming/apiv1/realms_client.go deleted file mode 100755 index 864178163993..000000000000 --- a/gaming/apiv1/realms_client.go +++ /dev/null @@ -1,1301 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newRealmsClientHook clientHook - -// RealmsCallOptions contains the retry settings for each method of RealmsClient. -type RealmsCallOptions struct { - ListRealms []gax.CallOption - GetRealm []gax.CallOption - CreateRealm []gax.CallOption - DeleteRealm []gax.CallOption - UpdateRealm []gax.CallOption - PreviewRealmUpdate []gax.CallOption -} - -func defaultRealmsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultRealmsCallOptions() *RealmsCallOptions { - return &RealmsCallOptions{ - ListRealms: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewRealmUpdate: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultRealmsRESTCallOptions() *RealmsCallOptions { - return &RealmsCallOptions{ - ListRealms: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewRealmUpdate: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalRealmsClient is an interface that defines the methods available from Game Services API. -type internalRealmsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListRealms(context.Context, *gamingpb.ListRealmsRequest, ...gax.CallOption) *RealmIterator - GetRealm(context.Context, *gamingpb.GetRealmRequest, ...gax.CallOption) (*gamingpb.Realm, error) - CreateRealm(context.Context, *gamingpb.CreateRealmRequest, ...gax.CallOption) (*CreateRealmOperation, error) - CreateRealmOperation(name string) *CreateRealmOperation - DeleteRealm(context.Context, *gamingpb.DeleteRealmRequest, ...gax.CallOption) (*DeleteRealmOperation, error) - DeleteRealmOperation(name string) *DeleteRealmOperation - UpdateRealm(context.Context, *gamingpb.UpdateRealmRequest, ...gax.CallOption) (*UpdateRealmOperation, error) - UpdateRealmOperation(name string) *UpdateRealmOperation - PreviewRealmUpdate(context.Context, *gamingpb.PreviewRealmUpdateRequest, ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) -} - -// RealmsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -type RealmsClient struct { - // The internal transport-dependent client. - internalClient internalRealmsClient - - // The call options for this service. - CallOptions *RealmsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *RealmsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *RealmsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *RealmsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListRealms lists realms in a given project and location. -func (c *RealmsClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - return c.internalClient.ListRealms(ctx, req, opts...) -} - -// GetRealm gets details of a single realm. -func (c *RealmsClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - return c.internalClient.GetRealm(ctx, req, opts...) -} - -// CreateRealm creates a new realm in a given project and location. -func (c *RealmsClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - return c.internalClient.CreateRealm(ctx, req, opts...) -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *RealmsClient) CreateRealmOperation(name string) *CreateRealmOperation { - return c.internalClient.CreateRealmOperation(name) -} - -// DeleteRealm deletes a single realm. -func (c *RealmsClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - return c.internalClient.DeleteRealm(ctx, req, opts...) -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *RealmsClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - return c.internalClient.DeleteRealmOperation(name) -} - -// UpdateRealm patches a single realm. -func (c *RealmsClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - return c.internalClient.UpdateRealm(ctx, req, opts...) -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *RealmsClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - return c.internalClient.UpdateRealmOperation(name) -} - -// PreviewRealmUpdate previews patches to a single realm. -func (c *RealmsClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - return c.internalClient.PreviewRealmUpdate(ctx, req, opts...) -} - -// realmsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type realmsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing RealmsClient - CallOptions **RealmsCallOptions - - // The gRPC API client. - realmsClient gamingpb.RealmsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewRealmsClient creates a new realms service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -func NewRealmsClient(ctx context.Context, opts ...option.ClientOption) (*RealmsClient, error) { - clientOpts := defaultRealmsGRPCClientOptions() - if newRealmsClientHook != nil { - hookOpts, err := newRealmsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := RealmsClient{CallOptions: defaultRealmsCallOptions()} - - c := &realmsGRPCClient{ - connPool: connPool, - realmsClient: gamingpb.NewRealmsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *realmsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *realmsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *realmsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type realmsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing RealmsClient - CallOptions **RealmsCallOptions -} - -// NewRealmsRESTClient creates a new realms service rest client. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -func NewRealmsRESTClient(ctx context.Context, opts ...option.ClientOption) (*RealmsClient, error) { - clientOpts := append(defaultRealmsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultRealmsRESTCallOptions() - c := &realmsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &RealmsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultRealmsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *realmsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *realmsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *realmsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *realmsGRPCClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListRealms[0:len((*c.CallOptions).ListRealms):len((*c.CallOptions).ListRealms)], opts...) - it := &RealmIterator{} - req = proto.Clone(req).(*gamingpb.ListRealmsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.Realm, string, error) { - resp := &gamingpb.ListRealmsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.ListRealms(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetRealms(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *realmsGRPCClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetRealm[0:len((*c.CallOptions).GetRealm):len((*c.CallOptions).GetRealm)], opts...) - var resp *gamingpb.Realm - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.GetRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *realmsGRPCClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateRealm[0:len((*c.CallOptions).CreateRealm):len((*c.CallOptions).CreateRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.CreateRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteRealm[0:len((*c.CallOptions).DeleteRealm):len((*c.CallOptions).DeleteRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.DeleteRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateRealm[0:len((*c.CallOptions).UpdateRealm):len((*c.CallOptions).UpdateRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.UpdateRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewRealmUpdate[0:len((*c.CallOptions).PreviewRealmUpdate):len((*c.CallOptions).PreviewRealmUpdate)], opts...) - var resp *gamingpb.PreviewRealmUpdateResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.PreviewRealmUpdate(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListRealms lists realms in a given project and location. -func (c *realmsRESTClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - it := &RealmIterator{} - req = proto.Clone(req).(*gamingpb.ListRealmsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.Realm, string, error) { - resp := &gamingpb.ListRealmsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/realms", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetRealms(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetRealm gets details of a single realm. -func (c *realmsRESTClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetRealm[0:len((*c.CallOptions).GetRealm):len((*c.CallOptions).GetRealm)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.Realm{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateRealm creates a new realm in a given project and location. -func (c *realmsRESTClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v/realms", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("realmId", fmt.Sprintf("%v", req.GetRealmId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteRealm deletes a single realm. -func (c *realmsRESTClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// UpdateRealm patches a single realm. -func (c *realmsRESTClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v", req.GetRealm().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1/%s", resp.GetName()) - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewRealmUpdate previews patches to a single realm. -func (c *realmsRESTClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1/%v:previewUpdate", req.GetRealm().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewRealmUpdate[0:len((*c.CallOptions).PreviewRealmUpdate):len((*c.CallOptions).PreviewRealmUpdate)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewRealmUpdateResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateRealmOperation manages a long-running operation from CreateRealm. -type CreateRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) CreateRealmOperation(name string) *CreateRealmOperation { - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *realmsRESTClient) CreateRealmOperation(name string) *CreateRealmOperation { - override := fmt.Sprintf("/v1/%s", name) - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateRealmOperation) Name() string { - return op.lro.Name() -} - -// DeleteRealmOperation manages a long-running operation from DeleteRealm. -type DeleteRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *realmsRESTClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - override := fmt.Sprintf("/v1/%s", name) - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteRealmOperation) Name() string { - return op.lro.Name() -} - -// UpdateRealmOperation manages a long-running operation from UpdateRealm. -type UpdateRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *realmsRESTClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - override := fmt.Sprintf("/v1/%s", name) - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateRealmOperation) Name() string { - return op.lro.Name() -} - -// RealmIterator manages a stream of *gamingpb.Realm. -type RealmIterator struct { - items []*gamingpb.Realm - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.Realm, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *RealmIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *RealmIterator) Next() (*gamingpb.Realm, error) { - var item *gamingpb.Realm - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *RealmIterator) bufLen() int { - return len(it.items) -} - -func (it *RealmIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1/realms_client_example_test.go b/gaming/apiv1/realms_client_example_test.go deleted file mode 100644 index 8109efeef501..000000000000 --- a/gaming/apiv1/realms_client_example_test.go +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewRealmsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewRealmsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleRealmsClient_ListRealms() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListRealmsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListRealmsRequest. - } - it := c.ListRealms(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleRealmsClient_GetRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetRealmRequest. - } - resp, err := c.GetRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_CreateRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateRealmRequest. - } - op, err := c.CreateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_DeleteRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteRealmRequest. - } - op, err := c.DeleteRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleRealmsClient_UpdateRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateRealmRequest. - } - op, err := c.UpdateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_PreviewRealmUpdate() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewRealmUpdateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewRealmUpdateRequest. - } - resp, err := c.PreviewRealmUpdate(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1/version.go b/gaming/apiv1/version.go deleted file mode 100644 index 9d897b2544d0..000000000000 --- a/gaming/apiv1/version.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2023 Google 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. - -// Code generated by gapicgen. DO NOT EDIT. - -package gaming - -import "cloud.google.com/go/gaming/internal" - -func init() { - versionClient = internal.Version -} diff --git a/gaming/apiv1beta/doc.go b/gaming/apiv1beta/doc.go deleted file mode 100755 index 3871876affc0..000000000000 --- a/gaming/apiv1beta/doc.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// Package gaming is an auto-generated package for the -// Game Services API. -// -// Deploy and manage infrastructure for global multiplayer gaming -// experiences. -// -// NOTE: This package is in beta. It is not stable, and may be subject to changes. -// -// # General documentation -// -// For information about setting deadlines, reusing contexts, and more -// please visit https://pkg.go.dev/cloud.google.com/go. -// -// # Example usage -// -// To get started with this package, create a client. -// -// ctx := context.Background() -// // This snippet has been automatically generated and should be regarded as a code template only. -// // It will require modifications to work: -// // - It may require correct/in-range values for request initialization. -// // - It may require specifying regional endpoints when creating the service client as shown in: -// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options -// c, err := gaming.NewGameServerClustersClient(ctx) -// if err != nil { -// // TODO: Handle error. -// } -// defer c.Close() -// -// The client will use your default application credentials. Clients should be reused instead of created as needed. -// The methods of Client are safe for concurrent use by multiple goroutines. -// The returned client must be Closed when it is done being used. -// -// # Using the Client -// -// The following is an example of making an API call with the newly created client. -// -// ctx := context.Background() -// // This snippet has been automatically generated and should be regarded as a code template only. -// // It will require modifications to work: -// // - It may require correct/in-range values for request initialization. -// // - It may require specifying regional endpoints when creating the service client as shown in: -// // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options -// c, err := gaming.NewGameServerClustersClient(ctx) -// if err != nil { -// // TODO: Handle error. -// } -// defer c.Close() -// -// req := &gamingpb.ListGameServerClustersRequest{ -// // TODO: Fill request struct fields. -// // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerClustersRequest. -// } -// it := c.ListGameServerClusters(ctx, req) -// for { -// resp, err := it.Next() -// if err == iterator.Done { -// break -// } -// if err != nil { -// // TODO: Handle error. -// } -// // TODO: Use resp. -// _ = resp -// } -// -// # Inspecting errors -// -// To see examples of how to inspect errors returned by this package please reference -// [Inspecting errors](https://pkg.go.dev/cloud.google.com/go#hdr-Inspecting_errors). -// -// # Use of Context -// -// The ctx passed to NewGameServerClustersClient is used for authentication requests and -// for creating the underlying connection, but is not used for subsequent calls. -// Individual methods on the client use the ctx given to them. -// -// To close the open connection, use the Close() method. -package gaming // import "cloud.google.com/go/gaming/apiv1beta" - -import ( - "context" - "net/http" - - "google.golang.org/api/option" - "google.golang.org/grpc/metadata" -) - -// For more information on implementing a client constructor hook, see -// https://github.com/googleapis/google-cloud-go/wiki/Customizing-constructors. -type clientHookParams struct{} -type clientHook func(context.Context, clientHookParams) ([]option.ClientOption, error) - -var versionClient string - -func getVersionClient() string { - if versionClient == "" { - return "UNKNOWN" - } - return versionClient -} - -func insertMetadata(ctx context.Context, mds ...metadata.MD) context.Context { - out, _ := metadata.FromOutgoingContext(ctx) - out = out.Copy() - for _, md := range mds { - for k, v := range md { - out[k] = append(out[k], v...) - } - } - return metadata.NewOutgoingContext(ctx, out) -} - -// DefaultAuthScopes reports the default set of authentication scopes to use with this package. -func DefaultAuthScopes() []string { - return []string{ - "https://www.googleapis.com/auth/cloud-platform", - } -} - -// buildHeaders extracts metadata from the outgoing context, joins it with any other -// given metadata, and converts them into a http.Header. -func buildHeaders(ctx context.Context, mds ...metadata.MD) http.Header { - if cmd, ok := metadata.FromOutgoingContext(ctx); ok { - mds = append(mds, cmd) - } - md := metadata.Join(mds...) - return http.Header(md) -} diff --git a/gaming/apiv1beta/game_server_clusters_client.go b/gaming/apiv1beta/game_server_clusters_client.go deleted file mode 100755 index 01a817405283..000000000000 --- a/gaming/apiv1beta/game_server_clusters_client.go +++ /dev/null @@ -1,1535 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerClustersClientHook clientHook - -// GameServerClustersCallOptions contains the retry settings for each method of GameServerClustersClient. -type GameServerClustersCallOptions struct { - ListGameServerClusters []gax.CallOption - GetGameServerCluster []gax.CallOption - CreateGameServerCluster []gax.CallOption - PreviewCreateGameServerCluster []gax.CallOption - DeleteGameServerCluster []gax.CallOption - PreviewDeleteGameServerCluster []gax.CallOption - UpdateGameServerCluster []gax.CallOption - PreviewUpdateGameServerCluster []gax.CallOption -} - -func defaultGameServerClustersGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerClustersCallOptions() *GameServerClustersCallOptions { - return &GameServerClustersCallOptions{ - ListGameServerClusters: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(120000 * time.Millisecond), - }, - PreviewCreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - DeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewDeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - UpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewUpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultGameServerClustersRESTCallOptions() *GameServerClustersCallOptions { - return &GameServerClustersCallOptions{ - ListGameServerClusters: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(120000 * time.Millisecond), - }, - PreviewCreateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - DeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewDeleteGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - UpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewUpdateGameServerCluster: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalGameServerClustersClient is an interface that defines the methods available from Game Services API. -type internalGameServerClustersClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerClusters(context.Context, *gamingpb.ListGameServerClustersRequest, ...gax.CallOption) *GameServerClusterIterator - GetGameServerCluster(context.Context, *gamingpb.GetGameServerClusterRequest, ...gax.CallOption) (*gamingpb.GameServerCluster, error) - CreateGameServerCluster(context.Context, *gamingpb.CreateGameServerClusterRequest, ...gax.CallOption) (*CreateGameServerClusterOperation, error) - CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation - PreviewCreateGameServerCluster(context.Context, *gamingpb.PreviewCreateGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) - DeleteGameServerCluster(context.Context, *gamingpb.DeleteGameServerClusterRequest, ...gax.CallOption) (*DeleteGameServerClusterOperation, error) - DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation - PreviewDeleteGameServerCluster(context.Context, *gamingpb.PreviewDeleteGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) - UpdateGameServerCluster(context.Context, *gamingpb.UpdateGameServerClusterRequest, ...gax.CallOption) (*UpdateGameServerClusterOperation, error) - UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation - PreviewUpdateGameServerCluster(context.Context, *gamingpb.PreviewUpdateGameServerClusterRequest, ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) -} - -// GameServerClustersClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -type GameServerClustersClient struct { - // The internal transport-dependent client. - internalClient internalGameServerClustersClient - - // The call options for this service. - CallOptions *GameServerClustersCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerClustersClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerClustersClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerClustersClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerClusters lists game server clusters in a given project and location. -func (c *GameServerClustersClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - return c.internalClient.ListGameServerClusters(ctx, req, opts...) -} - -// GetGameServerCluster gets details of a single game server cluster. -func (c *GameServerClustersClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - return c.internalClient.GetGameServerCluster(ctx, req, opts...) -} - -// CreateGameServerCluster creates a new game server cluster in a given project and location. -func (c *GameServerClustersClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - return c.internalClient.CreateGameServerCluster(ctx, req, opts...) -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - return c.internalClient.CreateGameServerClusterOperation(name) -} - -// PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and -// location. -func (c *GameServerClustersClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - return c.internalClient.PreviewCreateGameServerCluster(ctx, req, opts...) -} - -// DeleteGameServerCluster deletes a single game server cluster. -func (c *GameServerClustersClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - return c.internalClient.DeleteGameServerCluster(ctx, req, opts...) -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - return c.internalClient.DeleteGameServerClusterOperation(name) -} - -// PreviewDeleteGameServerCluster previews deletion of a single game server cluster. -func (c *GameServerClustersClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - return c.internalClient.PreviewDeleteGameServerCluster(ctx, req, opts...) -} - -// UpdateGameServerCluster patches a single game server cluster. -func (c *GameServerClustersClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - return c.internalClient.UpdateGameServerCluster(ctx, req, opts...) -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *GameServerClustersClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - return c.internalClient.UpdateGameServerClusterOperation(name) -} - -// PreviewUpdateGameServerCluster previews updating a GameServerCluster. -func (c *GameServerClustersClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - return c.internalClient.PreviewUpdateGameServerCluster(ctx, req, opts...) -} - -// gameServerClustersGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerClustersGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerClustersClient - CallOptions **GameServerClustersCallOptions - - // The gRPC API client. - gameServerClustersClient gamingpb.GameServerClustersServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerClustersClient creates a new game server clusters service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -func NewGameServerClustersClient(ctx context.Context, opts ...option.ClientOption) (*GameServerClustersClient, error) { - clientOpts := defaultGameServerClustersGRPCClientOptions() - if newGameServerClustersClientHook != nil { - hookOpts, err := newGameServerClustersClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerClustersClient{CallOptions: defaultGameServerClustersCallOptions()} - - c := &gameServerClustersGRPCClient{ - connPool: connPool, - gameServerClustersClient: gamingpb.NewGameServerClustersServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerClustersGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerClustersGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerClustersGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerClustersRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerClustersClient - CallOptions **GameServerClustersCallOptions -} - -// NewGameServerClustersRESTClient creates a new game server clusters service rest client. -// -// The game server cluster maps to Kubernetes clusters running Agones and is -// used to manage fleets within clusters. -func NewGameServerClustersRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerClustersClient, error) { - clientOpts := append(defaultGameServerClustersRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerClustersRESTCallOptions() - c := &gameServerClustersRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerClustersClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerClustersRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerClustersRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerClustersRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerClustersRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerClustersGRPCClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerClusters[0:len((*c.CallOptions).ListGameServerClusters):len((*c.CallOptions).ListGameServerClusters)], opts...) - it := &GameServerClusterIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerClustersRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerCluster, string, error) { - resp := &gamingpb.ListGameServerClustersResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.ListGameServerClusters(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerClusters(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerClustersGRPCClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerCluster[0:len((*c.CallOptions).GetGameServerCluster):len((*c.CallOptions).GetGameServerCluster)], opts...) - var resp *gamingpb.GameServerCluster - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.GetGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerCluster[0:len((*c.CallOptions).CreateGameServerCluster):len((*c.CallOptions).CreateGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.CreateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewCreateGameServerCluster[0:len((*c.CallOptions).PreviewCreateGameServerCluster):len((*c.CallOptions).PreviewCreateGameServerCluster)], opts...) - var resp *gamingpb.PreviewCreateGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewCreateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerCluster[0:len((*c.CallOptions).DeleteGameServerCluster):len((*c.CallOptions).DeleteGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.DeleteGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewDeleteGameServerCluster[0:len((*c.CallOptions).PreviewDeleteGameServerCluster):len((*c.CallOptions).PreviewDeleteGameServerCluster)], opts...) - var resp *gamingpb.PreviewDeleteGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewDeleteGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerClustersGRPCClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerCluster[0:len((*c.CallOptions).UpdateGameServerCluster):len((*c.CallOptions).UpdateGameServerCluster)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.UpdateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerClustersGRPCClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewUpdateGameServerCluster[0:len((*c.CallOptions).PreviewUpdateGameServerCluster):len((*c.CallOptions).PreviewUpdateGameServerCluster)], opts...) - var resp *gamingpb.PreviewUpdateGameServerClusterResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerClustersClient.PreviewUpdateGameServerCluster(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListGameServerClusters lists game server clusters in a given project and location. -func (c *gameServerClustersRESTClient) ListGameServerClusters(ctx context.Context, req *gamingpb.ListGameServerClustersRequest, opts ...gax.CallOption) *GameServerClusterIterator { - it := &GameServerClusterIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerClustersRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerCluster, string, error) { - resp := &gamingpb.ListGameServerClustersResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/gameServerClusters", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerClusters(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerCluster gets details of a single game server cluster. -func (c *gameServerClustersRESTClient) GetGameServerCluster(ctx context.Context, req *gamingpb.GetGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerCluster[0:len((*c.CallOptions).GetGameServerCluster):len((*c.CallOptions).GetGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerCluster{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerCluster creates a new game server cluster in a given project and location. -func (c *gameServerClustersRESTClient) CreateGameServerCluster(ctx context.Context, req *gamingpb.CreateGameServerClusterRequest, opts ...gax.CallOption) (*CreateGameServerClusterOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/gameServerClusters", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("gameServerClusterId", fmt.Sprintf("%v", req.GetGameServerClusterId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and -// location. -func (c *gameServerClustersRESTClient) PreviewCreateGameServerCluster(ctx context.Context, req *gamingpb.PreviewCreateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewCreateGameServerClusterResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/gameServerClusters:previewCreate", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("gameServerClusterId", fmt.Sprintf("%v", req.GetGameServerClusterId())) - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewCreateGameServerCluster[0:len((*c.CallOptions).PreviewCreateGameServerCluster):len((*c.CallOptions).PreviewCreateGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewCreateGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// DeleteGameServerCluster deletes a single game server cluster. -func (c *gameServerClustersRESTClient) DeleteGameServerCluster(ctx context.Context, req *gamingpb.DeleteGameServerClusterRequest, opts ...gax.CallOption) (*DeleteGameServerClusterOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewDeleteGameServerCluster previews deletion of a single game server cluster. -func (c *gameServerClustersRESTClient) PreviewDeleteGameServerCluster(ctx context.Context, req *gamingpb.PreviewDeleteGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewDeleteGameServerClusterResponse, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v:previewDelete", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewDeleteGameServerCluster[0:len((*c.CallOptions).PreviewDeleteGameServerCluster):len((*c.CallOptions).PreviewDeleteGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewDeleteGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// UpdateGameServerCluster patches a single game server cluster. -func (c *gameServerClustersRESTClient) UpdateGameServerCluster(ctx context.Context, req *gamingpb.UpdateGameServerClusterRequest, opts ...gax.CallOption) (*UpdateGameServerClusterOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetGameServerCluster().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewUpdateGameServerCluster previews updating a GameServerCluster. -func (c *gameServerClustersRESTClient) PreviewUpdateGameServerCluster(ctx context.Context, req *gamingpb.PreviewUpdateGameServerClusterRequest, opts ...gax.CallOption) (*gamingpb.PreviewUpdateGameServerClusterResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerCluster() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v:previewUpdate", req.GetGameServerCluster().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_cluster.name", url.QueryEscape(req.GetGameServerCluster().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewUpdateGameServerCluster[0:len((*c.CallOptions).PreviewUpdateGameServerCluster):len((*c.CallOptions).PreviewUpdateGameServerCluster)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewUpdateGameServerClusterResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerClusterOperation manages a long-running operation from CreateGameServerCluster. -type CreateGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerClusterOperation returns a new CreateGameServerClusterOperation from a given name. -// The name must be that of a previously created CreateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) CreateGameServerClusterOperation(name string) *CreateGameServerClusterOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &CreateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerClusterOperation manages a long-running operation from DeleteGameServerCluster. -type DeleteGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerClusterOperation returns a new DeleteGameServerClusterOperation from a given name. -// The name must be that of a previously created DeleteGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) DeleteGameServerClusterOperation(name string) *DeleteGameServerClusterOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &DeleteGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerClusterOperation manages a long-running operation from UpdateGameServerCluster. -type UpdateGameServerClusterOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersGRPCClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerClusterOperation returns a new UpdateGameServerClusterOperation from a given name. -// The name must be that of a previously created UpdateGameServerClusterOperation, possibly from a different process. -func (c *gameServerClustersRESTClient) UpdateGameServerClusterOperation(name string) *UpdateGameServerClusterOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &UpdateGameServerClusterOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerClusterOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerClusterOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerCluster, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerCluster - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerClusterOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerClusterOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerClusterOperation) Name() string { - return op.lro.Name() -} - -// GameServerClusterIterator manages a stream of *gamingpb.GameServerCluster. -type GameServerClusterIterator struct { - items []*gamingpb.GameServerCluster - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerCluster, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerClusterIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerClusterIterator) Next() (*gamingpb.GameServerCluster, error) { - var item *gamingpb.GameServerCluster - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerClusterIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerClusterIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1beta/game_server_clusters_client_example_test.go b/gaming/apiv1beta/game_server_clusters_client_example_test.go deleted file mode 100644 index af5765d5e90e..000000000000 --- a/gaming/apiv1beta/game_server_clusters_client_example_test.go +++ /dev/null @@ -1,278 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerClustersClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerClustersRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerClustersClient_ListGameServerClusters() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerClustersRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerClustersRequest. - } - it := c.ListGameServerClusters(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerClustersClient_GetGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerClusterRequest. - } - resp, err := c.GetGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_CreateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerClusterRequest. - } - op, err := c.CreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_PreviewCreateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewCreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewCreateGameServerClusterRequest. - } - resp, err := c.PreviewCreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_DeleteGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerClusterRequest. - } - op, err := c.DeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleGameServerClustersClient_PreviewDeleteGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewDeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewDeleteGameServerClusterRequest. - } - resp, err := c.PreviewDeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_UpdateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerClusterRequest. - } - op, err := c.UpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerClustersClient_PreviewUpdateGameServerCluster() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewUpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewUpdateGameServerClusterRequest. - } - resp, err := c.PreviewUpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1beta/game_server_configs_client.go b/gaming/apiv1beta/game_server_configs_client.go deleted file mode 100755 index f9afe2309755..000000000000 --- a/gaming/apiv1beta/game_server_configs_client.go +++ /dev/null @@ -1,983 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerConfigsClientHook clientHook - -// GameServerConfigsCallOptions contains the retry settings for each method of GameServerConfigsClient. -type GameServerConfigsCallOptions struct { - ListGameServerConfigs []gax.CallOption - GetGameServerConfig []gax.CallOption - CreateGameServerConfig []gax.CallOption - DeleteGameServerConfig []gax.CallOption -} - -func defaultGameServerConfigsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerConfigsCallOptions() *GameServerConfigsCallOptions { - return &GameServerConfigsCallOptions{ - ListGameServerConfigs: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - } -} - -func defaultGameServerConfigsRESTCallOptions() *GameServerConfigsCallOptions { - return &GameServerConfigsCallOptions{ - ListGameServerConfigs: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerConfig: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - } -} - -// internalGameServerConfigsClient is an interface that defines the methods available from Game Services API. -type internalGameServerConfigsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerConfigs(context.Context, *gamingpb.ListGameServerConfigsRequest, ...gax.CallOption) *GameServerConfigIterator - GetGameServerConfig(context.Context, *gamingpb.GetGameServerConfigRequest, ...gax.CallOption) (*gamingpb.GameServerConfig, error) - CreateGameServerConfig(context.Context, *gamingpb.CreateGameServerConfigRequest, ...gax.CallOption) (*CreateGameServerConfigOperation, error) - CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation - DeleteGameServerConfig(context.Context, *gamingpb.DeleteGameServerConfigRequest, ...gax.CallOption) (*DeleteGameServerConfigOperation, error) - DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation -} - -// GameServerConfigsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server config configures the game servers in an Agones fleet. -type GameServerConfigsClient struct { - // The internal transport-dependent client. - internalClient internalGameServerConfigsClient - - // The call options for this service. - CallOptions *GameServerConfigsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerConfigsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerConfigsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerConfigsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerConfigs lists game server configs in a given project, location, and game server -// deployment. -func (c *GameServerConfigsClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - return c.internalClient.ListGameServerConfigs(ctx, req, opts...) -} - -// GetGameServerConfig gets details of a single game server config. -func (c *GameServerConfigsClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - return c.internalClient.GetGameServerConfig(ctx, req, opts...) -} - -// CreateGameServerConfig creates a new game server config in a given project, location, and game -// server deployment. Game server configs are immutable, and are not applied -// until referenced in the game server deployment rollout resource. -func (c *GameServerConfigsClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - return c.internalClient.CreateGameServerConfig(ctx, req, opts...) -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *GameServerConfigsClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - return c.internalClient.CreateGameServerConfigOperation(name) -} - -// DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game -// server config is referenced in a game server deployment rollout. -func (c *GameServerConfigsClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - return c.internalClient.DeleteGameServerConfig(ctx, req, opts...) -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *GameServerConfigsClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - return c.internalClient.DeleteGameServerConfigOperation(name) -} - -// gameServerConfigsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerConfigsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerConfigsClient - CallOptions **GameServerConfigsCallOptions - - // The gRPC API client. - gameServerConfigsClient gamingpb.GameServerConfigsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerConfigsClient creates a new game server configs service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server config configures the game servers in an Agones fleet. -func NewGameServerConfigsClient(ctx context.Context, opts ...option.ClientOption) (*GameServerConfigsClient, error) { - clientOpts := defaultGameServerConfigsGRPCClientOptions() - if newGameServerConfigsClientHook != nil { - hookOpts, err := newGameServerConfigsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerConfigsClient{CallOptions: defaultGameServerConfigsCallOptions()} - - c := &gameServerConfigsGRPCClient{ - connPool: connPool, - gameServerConfigsClient: gamingpb.NewGameServerConfigsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerConfigsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerConfigsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerConfigsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerConfigsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerConfigsClient - CallOptions **GameServerConfigsCallOptions -} - -// NewGameServerConfigsRESTClient creates a new game server configs service rest client. -// -// The game server config configures the game servers in an Agones fleet. -func NewGameServerConfigsRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerConfigsClient, error) { - clientOpts := append(defaultGameServerConfigsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerConfigsRESTCallOptions() - c := &gameServerConfigsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerConfigsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerConfigsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerConfigsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerConfigsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerConfigsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerConfigsGRPCClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerConfigs[0:len((*c.CallOptions).ListGameServerConfigs):len((*c.CallOptions).ListGameServerConfigs)], opts...) - it := &GameServerConfigIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerConfigsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerConfig, string, error) { - resp := &gamingpb.ListGameServerConfigsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.ListGameServerConfigs(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerConfigs(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerConfigsGRPCClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerConfig[0:len((*c.CallOptions).GetGameServerConfig):len((*c.CallOptions).GetGameServerConfig)], opts...) - var resp *gamingpb.GameServerConfig - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.GetGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerConfigsGRPCClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerConfig[0:len((*c.CallOptions).CreateGameServerConfig):len((*c.CallOptions).CreateGameServerConfig)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.CreateGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerConfigsGRPCClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerConfig[0:len((*c.CallOptions).DeleteGameServerConfig):len((*c.CallOptions).DeleteGameServerConfig)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerConfigsClient.DeleteGameServerConfig(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -// ListGameServerConfigs lists game server configs in a given project, location, and game server -// deployment. -func (c *gameServerConfigsRESTClient) ListGameServerConfigs(ctx context.Context, req *gamingpb.ListGameServerConfigsRequest, opts ...gax.CallOption) *GameServerConfigIterator { - it := &GameServerConfigIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerConfigsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerConfig, string, error) { - resp := &gamingpb.ListGameServerConfigsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/configs", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerConfigs(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerConfig gets details of a single game server config. -func (c *gameServerConfigsRESTClient) GetGameServerConfig(ctx context.Context, req *gamingpb.GetGameServerConfigRequest, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerConfig[0:len((*c.CallOptions).GetGameServerConfig):len((*c.CallOptions).GetGameServerConfig)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerConfig{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerConfig creates a new game server config in a given project, location, and game -// server deployment. Game server configs are immutable, and are not applied -// until referenced in the game server deployment rollout resource. -func (c *gameServerConfigsRESTClient) CreateGameServerConfig(ctx context.Context, req *gamingpb.CreateGameServerConfigRequest, opts ...gax.CallOption) (*CreateGameServerConfigOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerConfig() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/configs", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("configId", fmt.Sprintf("%v", req.GetConfigId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game -// server config is referenced in a game server deployment rollout. -func (c *gameServerConfigsRESTClient) DeleteGameServerConfig(ctx context.Context, req *gamingpb.DeleteGameServerConfigRequest, opts ...gax.CallOption) (*DeleteGameServerConfigOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// CreateGameServerConfigOperation manages a long-running operation from CreateGameServerConfig. -type CreateGameServerConfigOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsGRPCClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerConfigOperation returns a new CreateGameServerConfigOperation from a given name. -// The name must be that of a previously created CreateGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsRESTClient) CreateGameServerConfigOperation(name string) *CreateGameServerConfigOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &CreateGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerConfig - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerConfig, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerConfig - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerConfigOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerConfigOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerConfigOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerConfigOperation manages a long-running operation from DeleteGameServerConfig. -type DeleteGameServerConfigOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsGRPCClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerConfigOperation returns a new DeleteGameServerConfigOperation from a given name. -// The name must be that of a previously created DeleteGameServerConfigOperation, possibly from a different process. -func (c *gameServerConfigsRESTClient) DeleteGameServerConfigOperation(name string) *DeleteGameServerConfigOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &DeleteGameServerConfigOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerConfigOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerConfigOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerConfigOperation) Name() string { - return op.lro.Name() -} - -// GameServerConfigIterator manages a stream of *gamingpb.GameServerConfig. -type GameServerConfigIterator struct { - items []*gamingpb.GameServerConfig - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerConfig, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerConfigIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerConfigIterator) Next() (*gamingpb.GameServerConfig, error) { - var item *gamingpb.GameServerConfig - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerConfigIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerConfigIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1beta/game_server_configs_client_example_test.go b/gaming/apiv1beta/game_server_configs_client_example_test.go deleted file mode 100644 index e7979268837a..000000000000 --- a/gaming/apiv1beta/game_server_configs_client_example_test.go +++ /dev/null @@ -1,173 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerConfigsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerConfigsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerConfigsClient_ListGameServerConfigs() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerConfigsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerConfigsRequest. - } - it := c.ListGameServerConfigs(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerConfigsClient_GetGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerConfigRequest. - } - resp, err := c.GetGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerConfigsClient_CreateGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerConfigRequest. - } - op, err := c.CreateGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerConfigsClient_DeleteGameServerConfig() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerConfigRequest. - } - op, err := c.DeleteGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} diff --git a/gaming/apiv1beta/game_server_deployments_client.go b/gaming/apiv1beta/game_server_deployments_client.go deleted file mode 100755 index 3a883cd51740..000000000000 --- a/gaming/apiv1beta/game_server_deployments_client.go +++ /dev/null @@ -1,1730 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newGameServerDeploymentsClientHook clientHook - -// GameServerDeploymentsCallOptions contains the retry settings for each method of GameServerDeploymentsClient. -type GameServerDeploymentsCallOptions struct { - ListGameServerDeployments []gax.CallOption - GetGameServerDeployment []gax.CallOption - CreateGameServerDeployment []gax.CallOption - DeleteGameServerDeployment []gax.CallOption - UpdateGameServerDeployment []gax.CallOption - GetGameServerDeploymentRollout []gax.CallOption - UpdateGameServerDeploymentRollout []gax.CallOption - PreviewGameServerDeploymentRollout []gax.CallOption - FetchDeploymentState []gax.CallOption -} - -func defaultGameServerDeploymentsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultGameServerDeploymentsCallOptions() *GameServerDeploymentsCallOptions { - return &GameServerDeploymentsCallOptions{ - ListGameServerDeployments: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - GetGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - UpdateGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - FetchDeploymentState: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultGameServerDeploymentsRESTCallOptions() *GameServerDeploymentsCallOptions { - return &GameServerDeploymentsCallOptions{ - ListGameServerDeployments: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateGameServerDeployment: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - GetGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - UpdateGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewGameServerDeploymentRollout: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - FetchDeploymentState: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalGameServerDeploymentsClient is an interface that defines the methods available from Game Services API. -type internalGameServerDeploymentsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListGameServerDeployments(context.Context, *gamingpb.ListGameServerDeploymentsRequest, ...gax.CallOption) *GameServerDeploymentIterator - GetGameServerDeployment(context.Context, *gamingpb.GetGameServerDeploymentRequest, ...gax.CallOption) (*gamingpb.GameServerDeployment, error) - CreateGameServerDeployment(context.Context, *gamingpb.CreateGameServerDeploymentRequest, ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) - CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation - DeleteGameServerDeployment(context.Context, *gamingpb.DeleteGameServerDeploymentRequest, ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) - DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation - UpdateGameServerDeployment(context.Context, *gamingpb.UpdateGameServerDeploymentRequest, ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) - UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation - GetGameServerDeploymentRollout(context.Context, *gamingpb.GetGameServerDeploymentRolloutRequest, ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) - UpdateGameServerDeploymentRollout(context.Context, *gamingpb.UpdateGameServerDeploymentRolloutRequest, ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) - UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation - PreviewGameServerDeploymentRollout(context.Context, *gamingpb.PreviewGameServerDeploymentRolloutRequest, ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) - FetchDeploymentState(context.Context, *gamingpb.FetchDeploymentStateRequest, ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) -} - -// GameServerDeploymentsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -type GameServerDeploymentsClient struct { - // The internal transport-dependent client. - internalClient internalGameServerDeploymentsClient - - // The call options for this service. - CallOptions *GameServerDeploymentsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *GameServerDeploymentsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *GameServerDeploymentsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *GameServerDeploymentsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListGameServerDeployments lists game server deployments in a given project and location. -func (c *GameServerDeploymentsClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - return c.internalClient.ListGameServerDeployments(ctx, req, opts...) -} - -// GetGameServerDeployment gets details of a single game server deployment. -func (c *GameServerDeploymentsClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - return c.internalClient.GetGameServerDeployment(ctx, req, opts...) -} - -// CreateGameServerDeployment creates a new game server deployment in a given project and location. -func (c *GameServerDeploymentsClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - return c.internalClient.CreateGameServerDeployment(ctx, req, opts...) -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - return c.internalClient.CreateGameServerDeploymentOperation(name) -} - -// DeleteGameServerDeployment deletes a single game server deployment. -func (c *GameServerDeploymentsClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - return c.internalClient.DeleteGameServerDeployment(ctx, req, opts...) -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - return c.internalClient.DeleteGameServerDeploymentOperation(name) -} - -// UpdateGameServerDeployment patches a game server deployment. -func (c *GameServerDeploymentsClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - return c.internalClient.UpdateGameServerDeployment(ctx, req, opts...) -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - return c.internalClient.UpdateGameServerDeploymentOperation(name) -} - -// GetGameServerDeploymentRollout gets details a single game server deployment rollout. -func (c *GameServerDeploymentsClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - return c.internalClient.GetGameServerDeploymentRollout(ctx, req, opts...) -} - -// UpdateGameServerDeploymentRollout patches a single game server deployment rollout. -// The method will not return an error if the update does not affect any -// existing realms. For example - if the default_game_server_config is changed -// but all existing realms use the override, that is valid. Similarly, if a -// non existing realm is explicitly called out in game_server_config_overrides -// field, that will also not result in an error. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - return c.internalClient.UpdateGameServerDeploymentRollout(ctx, req, opts...) -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *GameServerDeploymentsClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - return c.internalClient.UpdateGameServerDeploymentRolloutOperation(name) -} - -// PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the -// rollout resource. -func (c *GameServerDeploymentsClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - return c.internalClient.PreviewGameServerDeploymentRollout(ctx, req, opts...) -} - -// FetchDeploymentState retrieves information about the current state of the game server -// deployment. Gathers all the Agones fleets and Agones autoscalers, -// including fleets running an older version of the game server deployment. -func (c *GameServerDeploymentsClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - return c.internalClient.FetchDeploymentState(ctx, req, opts...) -} - -// gameServerDeploymentsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerDeploymentsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing GameServerDeploymentsClient - CallOptions **GameServerDeploymentsCallOptions - - // The gRPC API client. - gameServerDeploymentsClient gamingpb.GameServerDeploymentsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewGameServerDeploymentsClient creates a new game server deployments service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -func NewGameServerDeploymentsClient(ctx context.Context, opts ...option.ClientOption) (*GameServerDeploymentsClient, error) { - clientOpts := defaultGameServerDeploymentsGRPCClientOptions() - if newGameServerDeploymentsClientHook != nil { - hookOpts, err := newGameServerDeploymentsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := GameServerDeploymentsClient{CallOptions: defaultGameServerDeploymentsCallOptions()} - - c := &gameServerDeploymentsGRPCClient{ - connPool: connPool, - gameServerDeploymentsClient: gamingpb.NewGameServerDeploymentsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *gameServerDeploymentsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerDeploymentsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerDeploymentsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type gameServerDeploymentsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing GameServerDeploymentsClient - CallOptions **GameServerDeploymentsCallOptions -} - -// NewGameServerDeploymentsRESTClient creates a new game server deployments service rest client. -// -// The game server deployment is used to control the deployment of Agones -// fleets. -func NewGameServerDeploymentsRESTClient(ctx context.Context, opts ...option.ClientOption) (*GameServerDeploymentsClient, error) { - clientOpts := append(defaultGameServerDeploymentsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultGameServerDeploymentsRESTCallOptions() - c := &gameServerDeploymentsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &GameServerDeploymentsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultGameServerDeploymentsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *gameServerDeploymentsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *gameServerDeploymentsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *gameServerDeploymentsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *gameServerDeploymentsGRPCClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListGameServerDeployments[0:len((*c.CallOptions).ListGameServerDeployments):len((*c.CallOptions).ListGameServerDeployments)], opts...) - it := &GameServerDeploymentIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerDeploymentsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerDeployment, string, error) { - resp := &gamingpb.ListGameServerDeploymentsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.ListGameServerDeployments(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetGameServerDeployments(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *gameServerDeploymentsGRPCClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerDeployment[0:len((*c.CallOptions).GetGameServerDeployment):len((*c.CallOptions).GetGameServerDeployment)], opts...) - var resp *gamingpb.GameServerDeployment - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.GetGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateGameServerDeployment[0:len((*c.CallOptions).CreateGameServerDeployment):len((*c.CallOptions).CreateGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.CreateGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteGameServerDeployment[0:len((*c.CallOptions).DeleteGameServerDeployment):len((*c.CallOptions).DeleteGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.DeleteGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_deployment.name", url.QueryEscape(req.GetGameServerDeployment().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerDeployment[0:len((*c.CallOptions).UpdateGameServerDeployment):len((*c.CallOptions).UpdateGameServerDeployment)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.UpdateGameServerDeployment(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetGameServerDeploymentRollout[0:len((*c.CallOptions).GetGameServerDeploymentRollout):len((*c.CallOptions).GetGameServerDeploymentRollout)], opts...) - var resp *gamingpb.GameServerDeploymentRollout - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.GetGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateGameServerDeploymentRollout[0:len((*c.CallOptions).UpdateGameServerDeploymentRollout):len((*c.CallOptions).UpdateGameServerDeploymentRollout)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.UpdateGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *gameServerDeploymentsGRPCClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewGameServerDeploymentRollout[0:len((*c.CallOptions).PreviewGameServerDeploymentRollout):len((*c.CallOptions).PreviewGameServerDeploymentRollout)], opts...) - var resp *gamingpb.PreviewGameServerDeploymentRolloutResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.PreviewGameServerDeploymentRollout(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *gameServerDeploymentsGRPCClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).FetchDeploymentState[0:len((*c.CallOptions).FetchDeploymentState):len((*c.CallOptions).FetchDeploymentState)], opts...) - var resp *gamingpb.FetchDeploymentStateResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.gameServerDeploymentsClient.FetchDeploymentState(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListGameServerDeployments lists game server deployments in a given project and location. -func (c *gameServerDeploymentsRESTClient) ListGameServerDeployments(ctx context.Context, req *gamingpb.ListGameServerDeploymentsRequest, opts ...gax.CallOption) *GameServerDeploymentIterator { - it := &GameServerDeploymentIterator{} - req = proto.Clone(req).(*gamingpb.ListGameServerDeploymentsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.GameServerDeployment, string, error) { - resp := &gamingpb.ListGameServerDeploymentsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/gameServerDeployments", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetGameServerDeployments(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetGameServerDeployment gets details of a single game server deployment. -func (c *gameServerDeploymentsRESTClient) GetGameServerDeployment(ctx context.Context, req *gamingpb.GetGameServerDeploymentRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerDeployment[0:len((*c.CallOptions).GetGameServerDeployment):len((*c.CallOptions).GetGameServerDeployment)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerDeployment{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerDeployment creates a new game server deployment in a given project and location. -func (c *gameServerDeploymentsRESTClient) CreateGameServerDeployment(ctx context.Context, req *gamingpb.CreateGameServerDeploymentRequest, opts ...gax.CallOption) (*CreateGameServerDeploymentOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerDeployment() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/gameServerDeployments", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("deploymentId", fmt.Sprintf("%v", req.GetDeploymentId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteGameServerDeployment deletes a single game server deployment. -func (c *gameServerDeploymentsRESTClient) DeleteGameServerDeployment(ctx context.Context, req *gamingpb.DeleteGameServerDeploymentRequest, opts ...gax.CallOption) (*DeleteGameServerDeploymentOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// UpdateGameServerDeployment patches a game server deployment. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeployment(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetGameServerDeployment() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetGameServerDeployment().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "game_server_deployment.name", url.QueryEscape(req.GetGameServerDeployment().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// GetGameServerDeploymentRollout gets details a single game server deployment rollout. -func (c *gameServerDeploymentsRESTClient) GetGameServerDeploymentRollout(ctx context.Context, req *gamingpb.GetGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.GameServerDeploymentRollout, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/rollout", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetGameServerDeploymentRollout[0:len((*c.CallOptions).GetGameServerDeploymentRollout):len((*c.CallOptions).GetGameServerDeploymentRollout)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.GameServerDeploymentRollout{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// UpdateGameServerDeploymentRollout patches a single game server deployment rollout. -// The method will not return an error if the update does not affect any -// existing realms. For example - if the default_game_server_config is changed -// but all existing realms use the override, that is valid. Similarly, if a -// non existing realm is explicitly called out in game_server_config_overrides -// field, that will also not result in an error. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentRollout(ctx context.Context, req *gamingpb.UpdateGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*UpdateGameServerDeploymentRolloutOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRollout() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/rollout", req.GetRollout().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the -// rollout resource. -func (c *gameServerDeploymentsRESTClient) PreviewGameServerDeploymentRollout(ctx context.Context, req *gamingpb.PreviewGameServerDeploymentRolloutRequest, opts ...gax.CallOption) (*gamingpb.PreviewGameServerDeploymentRolloutResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRollout() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/rollout:preview", req.GetRollout().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "rollout.name", url.QueryEscape(req.GetRollout().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewGameServerDeploymentRollout[0:len((*c.CallOptions).PreviewGameServerDeploymentRollout):len((*c.CallOptions).PreviewGameServerDeploymentRollout)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewGameServerDeploymentRolloutResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// FetchDeploymentState retrieves information about the current state of the game server -// deployment. Gathers all the Agones fleets and Agones autoscalers, -// including fleets running an older version of the game server deployment. -func (c *gameServerDeploymentsRESTClient) FetchDeploymentState(ctx context.Context, req *gamingpb.FetchDeploymentStateRequest, opts ...gax.CallOption) (*gamingpb.FetchDeploymentStateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - jsonReq, err := m.Marshal(req) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v:fetchDeploymentState", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).FetchDeploymentState[0:len((*c.CallOptions).FetchDeploymentState):len((*c.CallOptions).FetchDeploymentState)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.FetchDeploymentStateResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateGameServerDeploymentOperation manages a long-running operation from CreateGameServerDeployment. -type CreateGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateGameServerDeploymentOperation returns a new CreateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created CreateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) CreateGameServerDeploymentOperation(name string) *CreateGameServerDeploymentOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &CreateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// DeleteGameServerDeploymentOperation manages a long-running operation from DeleteGameServerDeployment. -type DeleteGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteGameServerDeploymentOperation returns a new DeleteGameServerDeploymentOperation from a given name. -// The name must be that of a previously created DeleteGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) DeleteGameServerDeploymentOperation(name string) *DeleteGameServerDeploymentOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &DeleteGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerDeploymentOperation manages a long-running operation from UpdateGameServerDeployment. -type UpdateGameServerDeploymentOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerDeploymentOperation returns a new UpdateGameServerDeploymentOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentOperation(name string) *UpdateGameServerDeploymentOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &UpdateGameServerDeploymentOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerDeploymentOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerDeploymentOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerDeploymentOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerDeploymentOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerDeploymentOperation) Name() string { - return op.lro.Name() -} - -// UpdateGameServerDeploymentRolloutOperation manages a long-running operation from UpdateGameServerDeploymentRollout. -type UpdateGameServerDeploymentRolloutOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *gameServerDeploymentsGRPCClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateGameServerDeploymentRolloutOperation returns a new UpdateGameServerDeploymentRolloutOperation from a given name. -// The name must be that of a previously created UpdateGameServerDeploymentRolloutOperation, possibly from a different process. -func (c *gameServerDeploymentsRESTClient) UpdateGameServerDeploymentRolloutOperation(name string) *UpdateGameServerDeploymentRolloutOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &UpdateGameServerDeploymentRolloutOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateGameServerDeploymentRolloutOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateGameServerDeploymentRolloutOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.GameServerDeployment, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.GameServerDeployment - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateGameServerDeploymentRolloutOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateGameServerDeploymentRolloutOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateGameServerDeploymentRolloutOperation) Name() string { - return op.lro.Name() -} - -// GameServerDeploymentIterator manages a stream of *gamingpb.GameServerDeployment. -type GameServerDeploymentIterator struct { - items []*gamingpb.GameServerDeployment - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.GameServerDeployment, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *GameServerDeploymentIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *GameServerDeploymentIterator) Next() (*gamingpb.GameServerDeployment, error) { - var item *gamingpb.GameServerDeployment - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *GameServerDeploymentIterator) bufLen() int { - return len(it.items) -} - -func (it *GameServerDeploymentIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1beta/game_server_deployments_client_example_test.go b/gaming/apiv1beta/game_server_deployments_client_example_test.go deleted file mode 100644 index 5b7a4df8a9a0..000000000000 --- a/gaming/apiv1beta/game_server_deployments_client_example_test.go +++ /dev/null @@ -1,308 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewGameServerDeploymentsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewGameServerDeploymentsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleGameServerDeploymentsClient_ListGameServerDeployments() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerDeploymentsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerDeploymentsRequest. - } - it := c.ListGameServerDeployments(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleGameServerDeploymentsClient_GetGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerDeploymentRequest. - } - resp, err := c.GetGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_CreateGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerDeploymentRequest. - } - op, err := c.CreateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_DeleteGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerDeploymentRequest. - } - op, err := c.DeleteGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleGameServerDeploymentsClient_UpdateGameServerDeployment() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerDeploymentRequest. - } - op, err := c.UpdateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_GetGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerDeploymentRolloutRequest. - } - resp, err := c.GetGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_UpdateGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerDeploymentRolloutRequest. - } - op, err := c.UpdateGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_PreviewGameServerDeploymentRollout() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewGameServerDeploymentRolloutRequest. - } - resp, err := c.PreviewGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleGameServerDeploymentsClient_FetchDeploymentState() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.FetchDeploymentStateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#FetchDeploymentStateRequest. - } - resp, err := c.FetchDeploymentState(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1beta/gamingpb/common.pb.go b/gaming/apiv1beta/gamingpb/common.pb.go deleted file mode 100755 index b15279a1e568..000000000000 --- a/gaming/apiv1beta/gamingpb/common.pb.go +++ /dev/null @@ -1,1595 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/common.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - durationpb "google.golang.org/protobuf/types/known/durationpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type OperationStatus_ErrorCode int32 - -const ( - OperationStatus_ERROR_CODE_UNSPECIFIED OperationStatus_ErrorCode = 0 - OperationStatus_INTERNAL_ERROR OperationStatus_ErrorCode = 1 - OperationStatus_PERMISSION_DENIED OperationStatus_ErrorCode = 2 - OperationStatus_CLUSTER_CONNECTION OperationStatus_ErrorCode = 3 -) - -// Enum value maps for OperationStatus_ErrorCode. -var ( - OperationStatus_ErrorCode_name = map[int32]string{ - 0: "ERROR_CODE_UNSPECIFIED", - 1: "INTERNAL_ERROR", - 2: "PERMISSION_DENIED", - 3: "CLUSTER_CONNECTION", - } - OperationStatus_ErrorCode_value = map[string]int32{ - "ERROR_CODE_UNSPECIFIED": 0, - "INTERNAL_ERROR": 1, - "PERMISSION_DENIED": 2, - "CLUSTER_CONNECTION": 3, - } -) - -func (x OperationStatus_ErrorCode) Enum() *OperationStatus_ErrorCode { - p := new(OperationStatus_ErrorCode) - *p = x - return p -} - -func (x OperationStatus_ErrorCode) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (OperationStatus_ErrorCode) Descriptor() protoreflect.EnumDescriptor { - return file_google_cloud_gaming_v1beta_common_proto_enumTypes[0].Descriptor() -} - -func (OperationStatus_ErrorCode) Type() protoreflect.EnumType { - return &file_google_cloud_gaming_v1beta_common_proto_enumTypes[0] -} - -func (x OperationStatus_ErrorCode) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use OperationStatus_ErrorCode.Descriptor instead. -func (OperationStatus_ErrorCode) EnumDescriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{1, 0} -} - -// Represents the metadata of the long-running operation. -type OperationMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. The time the operation was created. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The time the operation finished running. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Output only. Server-defined resource path for the target of the operation. - Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` - // Output only. Name of the verb executed by the operation. - Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"` - // Output only. Human-readable status of the operation, if any. - StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` - // Output only. Identifies whether the user has requested cancellation - // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. - RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"` - // Output only. API version used to start the operation. - ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` - // Output only. List of Locations that could not be reached. - Unreachable []string `protobuf:"bytes,8,rep,name=unreachable,proto3" json:"unreachable,omitempty"` - // Output only. Operation status for Game Services API operations. Operation status is in - // the form of key-value pairs where keys are resource IDs and the values show - // the status of the operation. In case of failures, the value includes an - // error code and error message. - OperationStatus map[string]*OperationStatus `protobuf:"bytes,9,rep,name=operation_status,json=operationStatus,proto3" json:"operation_status,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *OperationMetadata) Reset() { - *x = OperationMetadata{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OperationMetadata) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OperationMetadata) ProtoMessage() {} - -func (x *OperationMetadata) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 OperationMetadata.ProtoReflect.Descriptor instead. -func (*OperationMetadata) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{0} -} - -func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *OperationMetadata) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *OperationMetadata) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *OperationMetadata) GetVerb() string { - if x != nil { - return x.Verb - } - return "" -} - -func (x *OperationMetadata) GetStatusMessage() string { - if x != nil { - return x.StatusMessage - } - return "" -} - -func (x *OperationMetadata) GetRequestedCancellation() bool { - if x != nil { - return x.RequestedCancellation - } - return false -} - -func (x *OperationMetadata) GetApiVersion() string { - if x != nil { - return x.ApiVersion - } - return "" -} - -func (x *OperationMetadata) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -func (x *OperationMetadata) GetOperationStatus() map[string]*OperationStatus { - if x != nil { - return x.OperationStatus - } - return nil -} - -type OperationStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Output only. Whether the operation is done or still in progress. - Done bool `protobuf:"varint,1,opt,name=done,proto3" json:"done,omitempty"` - // The error code in case of failures. - ErrorCode OperationStatus_ErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=google.cloud.gaming.v1beta.OperationStatus_ErrorCode" json:"error_code,omitempty"` - // The human-readable error message. - ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` -} - -func (x *OperationStatus) Reset() { - *x = OperationStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OperationStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OperationStatus) ProtoMessage() {} - -func (x *OperationStatus) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 OperationStatus.ProtoReflect.Descriptor instead. -func (*OperationStatus) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{1} -} - -func (x *OperationStatus) GetDone() bool { - if x != nil { - return x.Done - } - return false -} - -func (x *OperationStatus) GetErrorCode() OperationStatus_ErrorCode { - if x != nil { - return x.ErrorCode - } - return OperationStatus_ERROR_CODE_UNSPECIFIED -} - -func (x *OperationStatus) GetErrorMessage() string { - if x != nil { - return x.ErrorMessage - } - return "" -} - -// The label selector, used to group labels on the resources. -type LabelSelector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Resource labels for this selector. - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *LabelSelector) Reset() { - *x = LabelSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LabelSelector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LabelSelector) ProtoMessage() {} - -func (x *LabelSelector) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 LabelSelector.ProtoReflect.Descriptor instead. -func (*LabelSelector) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{2} -} - -func (x *LabelSelector) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -// The realm selector, used to match realm resources. -type RealmSelector struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // List of realms to match. - Realms []string `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"` -} - -func (x *RealmSelector) Reset() { - *x = RealmSelector{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RealmSelector) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RealmSelector) ProtoMessage() {} - -func (x *RealmSelector) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 RealmSelector.ProtoReflect.Descriptor instead. -func (*RealmSelector) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{3} -} - -func (x *RealmSelector) GetRealms() []string { - if x != nil { - return x.Realms - } - return nil -} - -// The schedule of a recurring or one time event. The event's time span is -// specified by start_time and end_time. If the scheduled event's timespan is -// larger than the cron_spec + cron_job_duration, the event will be recurring. -// If only cron_spec + cron_job_duration are specified, the event is effective -// starting at the local time specified by cron_spec, and is recurring. -// -// ``` -// start_time|-------[cron job]-------[cron job]-------[cron job]---|end_time -// cron job: cron spec start time + duration -// ``` -type Schedule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The start time of the event. - StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // The end time of the event. - EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // The duration for the cron job event. The duration of the event is effective - // after the cron job's start time. - CronJobDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=cron_job_duration,json=cronJobDuration,proto3" json:"cron_job_duration,omitempty"` - // The cron definition of the scheduled event. See - // https://en.wikipedia.org/wiki/Cron. Cron spec specifies the local time as - // defined by the realm. - CronSpec string `protobuf:"bytes,4,opt,name=cron_spec,json=cronSpec,proto3" json:"cron_spec,omitempty"` -} - -func (x *Schedule) Reset() { - *x = Schedule{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Schedule) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Schedule) ProtoMessage() {} - -func (x *Schedule) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 Schedule.ProtoReflect.Descriptor instead. -func (*Schedule) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{4} -} - -func (x *Schedule) GetStartTime() *timestamppb.Timestamp { - if x != nil { - return x.StartTime - } - return nil -} - -func (x *Schedule) GetEndTime() *timestamppb.Timestamp { - if x != nil { - return x.EndTime - } - return nil -} - -func (x *Schedule) GetCronJobDuration() *durationpb.Duration { - if x != nil { - return x.CronJobDuration - } - return nil -} - -func (x *Schedule) GetCronSpec() string { - if x != nil { - return x.CronSpec - } - return "" -} - -// Encapsulates Agones fleet spec and Agones autoscaler spec sources. -type SpecSource struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The game server config resource. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}/configs/{config_id}`. - GameServerConfigName string `protobuf:"bytes,1,opt,name=game_server_config_name,json=gameServerConfigName,proto3" json:"game_server_config_name,omitempty"` - // The name of the Agones leet config or Agones scaling config used to derive - // the Agones fleet or Agones autoscaler spec. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *SpecSource) Reset() { - *x = SpecSource{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SpecSource) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SpecSource) ProtoMessage() {} - -func (x *SpecSource) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SpecSource.ProtoReflect.Descriptor instead. -func (*SpecSource) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{5} -} - -func (x *SpecSource) GetGameServerConfigName() string { - if x != nil { - return x.GameServerConfigName - } - return "" -} - -func (x *SpecSource) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Details about the Agones resources. -type TargetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The game server cluster name. Uses the form: - // - // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. - GameServerClusterName string `protobuf:"bytes,1,opt,name=game_server_cluster_name,json=gameServerClusterName,proto3" json:"game_server_cluster_name,omitempty"` - // The game server deployment name. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment_id}`. - GameServerDeploymentName string `protobuf:"bytes,2,opt,name=game_server_deployment_name,json=gameServerDeploymentName,proto3" json:"game_server_deployment_name,omitempty"` - // Agones fleet details for game server clusters and game server deployments. - FleetDetails []*TargetDetails_TargetFleetDetails `protobuf:"bytes,3,rep,name=fleet_details,json=fleetDetails,proto3" json:"fleet_details,omitempty"` -} - -func (x *TargetDetails) Reset() { - *x = TargetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails) ProtoMessage() {} - -func (x *TargetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails.ProtoReflect.Descriptor instead. -func (*TargetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{6} -} - -func (x *TargetDetails) GetGameServerClusterName() string { - if x != nil { - return x.GameServerClusterName - } - return "" -} - -func (x *TargetDetails) GetGameServerDeploymentName() string { - if x != nil { - return x.GameServerDeploymentName - } - return "" -} - -func (x *TargetDetails) GetFleetDetails() []*TargetDetails_TargetFleetDetails { - if x != nil { - return x.FleetDetails - } - return nil -} - -// Encapsulates the Target state. -type TargetState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Details about Agones fleets. - Details []*TargetDetails `protobuf:"bytes,1,rep,name=details,proto3" json:"details,omitempty"` -} - -func (x *TargetState) Reset() { - *x = TargetState{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetState) ProtoMessage() {} - -func (x *TargetState) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetState.ProtoReflect.Descriptor instead. -func (*TargetState) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{7} -} - -func (x *TargetState) GetDetails() []*TargetDetails { - if x != nil { - return x.Details - } - return nil -} - -// Details of the deployed Agones fleet. -type DeployedFleetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Information about the Agones fleet. - DeployedFleet *DeployedFleetDetails_DeployedFleet `protobuf:"bytes,1,opt,name=deployed_fleet,json=deployedFleet,proto3" json:"deployed_fleet,omitempty"` - // Information about the Agones autoscaler for that fleet. - DeployedAutoscaler *DeployedFleetDetails_DeployedFleetAutoscaler `protobuf:"bytes,2,opt,name=deployed_autoscaler,json=deployedAutoscaler,proto3" json:"deployed_autoscaler,omitempty"` -} - -func (x *DeployedFleetDetails) Reset() { - *x = DeployedFleetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails) ProtoMessage() {} - -func (x *DeployedFleetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{8} -} - -func (x *DeployedFleetDetails) GetDeployedFleet() *DeployedFleetDetails_DeployedFleet { - if x != nil { - return x.DeployedFleet - } - return nil -} - -func (x *DeployedFleetDetails) GetDeployedAutoscaler() *DeployedFleetDetails_DeployedFleetAutoscaler { - if x != nil { - return x.DeployedAutoscaler - } - return nil -} - -// Details of the target Agones fleet. -type TargetDetails_TargetFleetDetails struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Reference to target Agones fleet. - Fleet *TargetDetails_TargetFleetDetails_TargetFleet `protobuf:"bytes,1,opt,name=fleet,proto3" json:"fleet,omitempty"` - // Reference to target Agones fleet autoscaling policy. - Autoscaler *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler `protobuf:"bytes,2,opt,name=autoscaler,proto3" json:"autoscaler,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails) Reset() { - *x = TargetDetails_TargetFleetDetails{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails_TargetFleetDetails.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{6, 0} -} - -func (x *TargetDetails_TargetFleetDetails) GetFleet() *TargetDetails_TargetFleetDetails_TargetFleet { - if x != nil { - return x.Fleet - } - return nil -} - -func (x *TargetDetails_TargetFleetDetails) GetAutoscaler() *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler { - if x != nil { - return x.Autoscaler - } - return nil -} - -// Target Agones fleet specification. -type TargetDetails_TargetFleetDetails_TargetFleet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones fleet. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Encapsulates the source of the Agones fleet spec. - // The Agones fleet spec source. - SpecSource *SpecSource `protobuf:"bytes,2,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) Reset() { - *x = TargetDetails_TargetFleetDetails_TargetFleet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails_TargetFleet) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_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 TargetDetails_TargetFleetDetails_TargetFleet.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails_TargetFleet) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{6, 0, 0} -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleet) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -// Target Agones autoscaler policy reference. -type TargetDetails_TargetFleetDetails_TargetFleetAutoscaler struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones autoscaler. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Encapsulates the source of the Agones fleet spec. - // Details about the Agones autoscaler spec. - SpecSource *SpecSource `protobuf:"bytes,2,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) Reset() { - *x = TargetDetails_TargetFleetDetails_TargetFleetAutoscaler{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) ProtoMessage() {} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TargetDetails_TargetFleetDetails_TargetFleetAutoscaler.ProtoReflect.Descriptor instead. -func (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{6, 0, 1} -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *TargetDetails_TargetFleetDetails_TargetFleetAutoscaler) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -// Agones fleet specification and details. -type DeployedFleetDetails_DeployedFleet struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones fleet. - Fleet string `protobuf:"bytes,1,opt,name=fleet,proto3" json:"fleet,omitempty"` - // The fleet spec retrieved from the Agones fleet. - FleetSpec string `protobuf:"bytes,2,opt,name=fleet_spec,json=fleetSpec,proto3" json:"fleet_spec,omitempty"` - // The source spec that is used to create the Agones fleet. - // The GameServerConfig resource may no longer exist in the system. - SpecSource *SpecSource `protobuf:"bytes,3,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` - // The current status of the Agones fleet. - // Includes count of game servers in various states. - Status *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleet) Reset() { - *x = DeployedFleetDetails_DeployedFleet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleet) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleet) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleet) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleet.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleet) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{8, 0} -} - -func (x *DeployedFleetDetails_DeployedFleet) GetFleet() string { - if x != nil { - return x.Fleet - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleet) GetFleetSpec() string { - if x != nil { - return x.FleetSpec - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleet) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -func (x *DeployedFleetDetails_DeployedFleet) GetStatus() *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus { - if x != nil { - return x.Status - } - return nil -} - -// Details about the Agones autoscaler. -type DeployedFleetDetails_DeployedFleetAutoscaler struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the Agones autoscaler. - Autoscaler string `protobuf:"bytes,1,opt,name=autoscaler,proto3" json:"autoscaler,omitempty"` - // The source spec that is used to create the autoscaler. - // The GameServerConfig resource may no longer exist in the system. - SpecSource *SpecSource `protobuf:"bytes,4,opt,name=spec_source,json=specSource,proto3" json:"spec_source,omitempty"` - // The autoscaler spec retrieved from Agones. - FleetAutoscalerSpec string `protobuf:"bytes,3,opt,name=fleet_autoscaler_spec,json=fleetAutoscalerSpec,proto3" json:"fleet_autoscaler_spec,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) Reset() { - *x = DeployedFleetDetails_DeployedFleetAutoscaler{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleetAutoscaler) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleetAutoscaler.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleetAutoscaler) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{8, 1} -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetAutoscaler() string { - if x != nil { - return x.Autoscaler - } - return "" -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetSpecSource() *SpecSource { - if x != nil { - return x.SpecSource - } - return nil -} - -func (x *DeployedFleetDetails_DeployedFleetAutoscaler) GetFleetAutoscalerSpec() string { - if x != nil { - return x.FleetAutoscalerSpec - } - return "" -} - -// DeployedFleetStatus has details about the Agones fleets such as how many -// are running, how many allocated, and so on. -type DeployedFleetDetails_DeployedFleet_DeployedFleetStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The number of GameServer replicas in the READY state in this fleet. - ReadyReplicas int64 `protobuf:"varint,1,opt,name=ready_replicas,json=readyReplicas,proto3" json:"ready_replicas,omitempty"` - // The number of GameServer replicas in the ALLOCATED state in this fleet. - AllocatedReplicas int64 `protobuf:"varint,2,opt,name=allocated_replicas,json=allocatedReplicas,proto3" json:"allocated_replicas,omitempty"` - // The number of GameServer replicas in the RESERVED state in this fleet. - // Reserved instances won't be deleted on scale down, but won't cause - // an autoscaler to scale up. - ReservedReplicas int64 `protobuf:"varint,3,opt,name=reserved_replicas,json=reservedReplicas,proto3" json:"reserved_replicas,omitempty"` - // The total number of current GameServer replicas in this fleet. - Replicas int64 `protobuf:"varint,4,opt,name=replicas,proto3" json:"replicas,omitempty"` -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) Reset() { - *x = DeployedFleetDetails_DeployedFleet_DeployedFleetStatus{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) ProtoMessage() {} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_common_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeployedFleetDetails_DeployedFleet_DeployedFleetStatus.ProtoReflect.Descriptor instead. -func (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP(), []int{8, 0, 0} -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReadyReplicas() int64 { - if x != nil { - return x.ReadyReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetAllocatedReplicas() int64 { - if x != nil { - return x.AllocatedReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReservedReplicas() int64 { - if x != nil { - return x.ReservedReplicas - } - return 0 -} - -func (x *DeployedFleetDetails_DeployedFleet_DeployedFleetStatus) GetReplicas() int64 { - if x != nil { - return x.Replicas - } - return 0 -} - -var File_google_cloud_gaming_v1beta_common_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_common_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1, 0x04, 0x0a, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x40, 0x0a, - 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, - 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x76, 0x65, 0x72, 0x62, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x76, 0x65, 0x72, - 0x62, 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, - 0x16, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x6e, 0x63, 0x65, - 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x15, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x6e, - 0x63, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x0a, 0x0b, 0x61, 0x70, 0x69, - 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x25, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x08, - 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, - 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x72, 0x0a, 0x10, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0x6f, 0x0a, 0x14, 0x4f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 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, 0x41, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x91, 0x02, 0x0a, 0x0f, - 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x17, 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x42, 0x03, 0xe0, - 0x41, 0x03, 0x52, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x12, 0x54, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, - 0x6f, 0x64, 0x65, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x23, - 0x0a, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x22, 0x6a, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, - 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, - 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, - 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x4c, 0x55, 0x53, 0x54, - 0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x22, - 0x99, 0x01, 0x0a, 0x0d, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x12, 0x4d, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x0d, 0x52, - 0x65, 0x61, 0x6c, 0x6d, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, - 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, - 0x61, 0x6c, 0x6d, 0x73, 0x22, 0xe0, 0x01, 0x0a, 0x08, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, - 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, - 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x11, 0x63, 0x72, 0x6f, 0x6e, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x63, 0x72, 0x6f, 0x6e, 0x4a, - 0x6f, 0x62, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, - 0x6f, 0x6e, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, - 0x72, 0x6f, 0x6e, 0x53, 0x70, 0x65, 0x63, 0x22, 0x57, 0x0a, 0x0a, 0x53, 0x70, 0x65, 0x63, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x17, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0xb7, 0x05, 0x0a, 0x0d, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x67, - 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x18, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x61, 0x0a, 0x0d, 0x66, 0x6c, - 0x65, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, - 0x0c, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0xca, 0x03, - 0x0a, 0x12, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x12, 0x5e, 0x0a, 0x05, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x52, 0x05, 0x66, - 0x6c, 0x65, 0x65, 0x74, 0x12, 0x72, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, - 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, 0x65, - 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x52, 0x0a, 0x61, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x1a, 0x6a, 0x0a, 0x0b, 0x54, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x73, - 0x70, 0x65, 0x63, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x70, - 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x1a, 0x74, 0x0a, 0x15, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x46, 0x6c, - 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, - 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x52, 0x0a, 0x0b, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x43, 0x0a, 0x07, 0x64, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0xe4, - 0x06, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x65, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x64, 0x5f, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x52, - 0x0d, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x79, - 0x0a, 0x13, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, - 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x72, 0x52, 0x12, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x41, - 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x1a, 0xb0, 0x03, 0x0a, 0x0d, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x66, - 0x6c, 0x65, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x66, 0x6c, 0x65, 0x65, - 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, - 0x12, 0x47, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, - 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x52, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, - 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x2e, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, 0xb4, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x25, 0x0a, - 0x0e, 0x72, 0x65, 0x61, 0x64, 0x79, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x70, 0x6c, - 0x69, 0x63, 0x61, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, - 0x64, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, - 0x63, 0x61, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x5f, - 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, - 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x1a, 0xb6, 0x01, 0x0a, - 0x17, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x75, 0x74, 0x6f, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x75, - 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x0b, 0x73, 0x70, 0x65, 0x63, - 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x70, 0x65, 0x63, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0a, 0x73, 0x70, 0x65, 0x63, 0x53, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x61, 0x75, 0x74, 0x6f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x13, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x72, 0x53, 0x70, 0x65, 0x63, 0x42, 0x5a, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, - 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1beta_common_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1beta_common_proto_rawDescData = file_google_cloud_gaming_v1beta_common_proto_rawDesc -) - -func file_google_cloud_gaming_v1beta_common_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1beta_common_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1beta_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1beta_common_proto_rawDescData) - }) - return file_google_cloud_gaming_v1beta_common_proto_rawDescData -} - -var file_google_cloud_gaming_v1beta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_google_cloud_gaming_v1beta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_google_cloud_gaming_v1beta_common_proto_goTypes = []interface{}{ - (OperationStatus_ErrorCode)(0), // 0: google.cloud.gaming.v1beta.OperationStatus.ErrorCode - (*OperationMetadata)(nil), // 1: google.cloud.gaming.v1beta.OperationMetadata - (*OperationStatus)(nil), // 2: google.cloud.gaming.v1beta.OperationStatus - (*LabelSelector)(nil), // 3: google.cloud.gaming.v1beta.LabelSelector - (*RealmSelector)(nil), // 4: google.cloud.gaming.v1beta.RealmSelector - (*Schedule)(nil), // 5: google.cloud.gaming.v1beta.Schedule - (*SpecSource)(nil), // 6: google.cloud.gaming.v1beta.SpecSource - (*TargetDetails)(nil), // 7: google.cloud.gaming.v1beta.TargetDetails - (*TargetState)(nil), // 8: google.cloud.gaming.v1beta.TargetState - (*DeployedFleetDetails)(nil), // 9: google.cloud.gaming.v1beta.DeployedFleetDetails - nil, // 10: google.cloud.gaming.v1beta.OperationMetadata.OperationStatusEntry - nil, // 11: google.cloud.gaming.v1beta.LabelSelector.LabelsEntry - (*TargetDetails_TargetFleetDetails)(nil), // 12: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails - (*TargetDetails_TargetFleetDetails_TargetFleet)(nil), // 13: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleet - (*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler)(nil), // 14: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - (*DeployedFleetDetails_DeployedFleet)(nil), // 15: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet - (*DeployedFleetDetails_DeployedFleetAutoscaler)(nil), // 16: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleetAutoscaler - (*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus)(nil), // 17: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 19: google.protobuf.Duration -} -var file_google_cloud_gaming_v1beta_common_proto_depIdxs = []int32{ - 18, // 0: google.cloud.gaming.v1beta.OperationMetadata.create_time:type_name -> google.protobuf.Timestamp - 18, // 1: google.cloud.gaming.v1beta.OperationMetadata.end_time:type_name -> google.protobuf.Timestamp - 10, // 2: google.cloud.gaming.v1beta.OperationMetadata.operation_status:type_name -> google.cloud.gaming.v1beta.OperationMetadata.OperationStatusEntry - 0, // 3: google.cloud.gaming.v1beta.OperationStatus.error_code:type_name -> google.cloud.gaming.v1beta.OperationStatus.ErrorCode - 11, // 4: google.cloud.gaming.v1beta.LabelSelector.labels:type_name -> google.cloud.gaming.v1beta.LabelSelector.LabelsEntry - 18, // 5: google.cloud.gaming.v1beta.Schedule.start_time:type_name -> google.protobuf.Timestamp - 18, // 6: google.cloud.gaming.v1beta.Schedule.end_time:type_name -> google.protobuf.Timestamp - 19, // 7: google.cloud.gaming.v1beta.Schedule.cron_job_duration:type_name -> google.protobuf.Duration - 12, // 8: google.cloud.gaming.v1beta.TargetDetails.fleet_details:type_name -> google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails - 7, // 9: google.cloud.gaming.v1beta.TargetState.details:type_name -> google.cloud.gaming.v1beta.TargetDetails - 15, // 10: google.cloud.gaming.v1beta.DeployedFleetDetails.deployed_fleet:type_name -> google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet - 16, // 11: google.cloud.gaming.v1beta.DeployedFleetDetails.deployed_autoscaler:type_name -> google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleetAutoscaler - 2, // 12: google.cloud.gaming.v1beta.OperationMetadata.OperationStatusEntry.value:type_name -> google.cloud.gaming.v1beta.OperationStatus - 13, // 13: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.fleet:type_name -> google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleet - 14, // 14: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.autoscaler:type_name -> google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler - 6, // 15: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleet.spec_source:type_name -> google.cloud.gaming.v1beta.SpecSource - 6, // 16: google.cloud.gaming.v1beta.TargetDetails.TargetFleetDetails.TargetFleetAutoscaler.spec_source:type_name -> google.cloud.gaming.v1beta.SpecSource - 6, // 17: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet.spec_source:type_name -> google.cloud.gaming.v1beta.SpecSource - 17, // 18: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet.status:type_name -> google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleet.DeployedFleetStatus - 6, // 19: google.cloud.gaming.v1beta.DeployedFleetDetails.DeployedFleetAutoscaler.spec_source:type_name -> google.cloud.gaming.v1beta.SpecSource - 20, // [20:20] is the sub-list for method output_type - 20, // [20:20] is the sub-list for method input_type - 20, // [20:20] is the sub-list for extension type_name - 20, // [20:20] is the sub-list for extension extendee - 0, // [0:20] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_common_proto_init() } -func file_google_cloud_gaming_v1beta_common_proto_init() { - if File_google_cloud_gaming_v1beta_common_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1beta_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationMetadata); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OperationStatus); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LabelSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RealmSelector); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Schedule); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SpecSource); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails_TargetFleet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TargetDetails_TargetFleetDetails_TargetFleetAutoscaler); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleet); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleetAutoscaler); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeployedFleetDetails_DeployedFleet_DeployedFleetStatus); 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_google_cloud_gaming_v1beta_common_proto_rawDesc, - NumEnums: 1, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1beta_common_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_common_proto_depIdxs, - EnumInfos: file_google_cloud_gaming_v1beta_common_proto_enumTypes, - MessageInfos: file_google_cloud_gaming_v1beta_common_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1beta_common_proto = out.File - file_google_cloud_gaming_v1beta_common_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_common_proto_goTypes = nil - file_google_cloud_gaming_v1beta_common_proto_depIdxs = nil -} diff --git a/gaming/apiv1beta/gamingpb/game_server_clusters.pb.go b/gaming/apiv1beta/gamingpb/game_server_clusters.pb.go deleted file mode 100755 index 25884fa2bcc8..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_clusters.pb.go +++ /dev/null @@ -1,1566 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_clusters.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for GameServerClustersService.ListGameServerClusters. -type ListGameServerClustersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // "projects/{project}/locations/{location}/realms/{realm}". - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, the - // server will pick an appropriate default. The server may return fewer items - // than requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1beta.ListGameServerClustersResponse.next_page_token] - // to determine if there are more GameServerClusters left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListGameServerClustersRequest) Reset() { - *x = ListGameServerClustersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerClustersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerClustersRequest) ProtoMessage() {} - -func (x *ListGameServerClustersRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 ListGameServerClustersRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerClustersRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerClustersRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerClustersRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerClustersRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerClustersRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerClustersRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for GameServerClustersService.ListGameServerClusters. -type ListGameServerClustersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server clusters. - GameServerClusters []*GameServerCluster `protobuf:"bytes,1,rep,name=game_server_clusters,json=gameServerClusters,proto3" json:"game_server_clusters,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerClustersResponse) Reset() { - *x = ListGameServerClustersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerClustersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerClustersResponse) ProtoMessage() {} - -func (x *ListGameServerClustersResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 ListGameServerClustersResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerClustersResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerClustersResponse) GetGameServerClusters() []*GameServerCluster { - if x != nil { - return x.GameServerClusters - } - return nil -} - -func (x *ListGameServerClustersResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerClustersResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerClustersService.GetGameServerCluster. -type GetGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to retrieve. Uses the form: - // - // `projects/{project}/locations/{location}/realms/{realm-id}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerClusterRequest) Reset() { - *x = GetGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerClusterRequest) ProtoMessage() {} - -func (x *GetGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 GetGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerClustersService.CreateGameServerCluster. -type CreateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm-id}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server cluster resource to be created. - GameServerClusterId string `protobuf:"bytes,2,opt,name=game_server_cluster_id,json=gameServerClusterId,proto3" json:"game_server_cluster_id,omitempty"` - // Required. The game server cluster resource to be created. - GameServerCluster *GameServerCluster `protobuf:"bytes,3,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` -} - -func (x *CreateGameServerClusterRequest) Reset() { - *x = CreateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerClusterRequest) ProtoMessage() {} - -func (x *CreateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 CreateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateGameServerClusterRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerClusterRequest) GetGameServerClusterId() string { - if x != nil { - return x.GameServerClusterId - } - return "" -} - -func (x *CreateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -// Request message for GameServerClustersService.PreviewCreateGameServerCluster. -type PreviewCreateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server cluster resource to be created. - GameServerClusterId string `protobuf:"bytes,2,opt,name=game_server_cluster_id,json=gameServerClusterId,proto3" json:"game_server_cluster_id,omitempty"` - // Required. The game server cluster resource to be created. - GameServerCluster *GameServerCluster `protobuf:"bytes,3,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewCreateGameServerClusterRequest) Reset() { - *x = PreviewCreateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewCreateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewCreateGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewCreateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 PreviewCreateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewCreateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{4} -} - -func (x *PreviewCreateGameServerClusterRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *PreviewCreateGameServerClusterRequest) GetGameServerClusterId() string { - if x != nil { - return x.GameServerClusterId - } - return "" -} - -func (x *PreviewCreateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *PreviewCreateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for -// GameServerClustersService.PreviewCreateGameServerCluster. -type PreviewCreateGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewCreateGameServerClusterResponse) Reset() { - *x = PreviewCreateGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewCreateGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewCreateGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewCreateGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewCreateGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewCreateGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{5} -} - -func (x *PreviewCreateGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewCreateGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// Request message for GameServerClustersService.DeleteGameServerCluster. -type DeleteGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to delete. Uses the form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerClusterRequest) Reset() { - *x = DeleteGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerClusterRequest) ProtoMessage() {} - -func (x *DeleteGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{6} -} - -func (x *DeleteGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerClustersService.PreviewDeleteGameServerCluster. -type PreviewDeleteGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server cluster to delete. Uses the form: - // `projects/{project}/locations/{location}/gameServerClusters/{cluster}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewDeleteGameServerClusterRequest) Reset() { - *x = PreviewDeleteGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewDeleteGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewDeleteGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewDeleteGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewDeleteGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewDeleteGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{7} -} - -func (x *PreviewDeleteGameServerClusterRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *PreviewDeleteGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for -// GameServerClustersService.PreviewDeleteGameServerCluster. -type PreviewDeleteGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewDeleteGameServerClusterResponse) Reset() { - *x = PreviewDeleteGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewDeleteGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewDeleteGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewDeleteGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewDeleteGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewDeleteGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{8} -} - -func (x *PreviewDeleteGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewDeleteGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -type UpdateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster *GameServerCluster `protobuf:"bytes,1,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerClusterRequest) Reset() { - *x = UpdateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerClusterRequest) ProtoMessage() {} - -func (x *UpdateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{9} -} - -func (x *UpdateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *UpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for GameServerClustersService.UpdateGameServerCluster. -type PreviewUpdateGameServerClusterRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server cluster to be updated. - // Only fields specified in update_mask are updated. - GameServerCluster *GameServerCluster `protobuf:"bytes,1,opt,name=game_server_cluster,json=gameServerCluster,proto3" json:"game_server_cluster,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewUpdateGameServerClusterRequest) Reset() { - *x = PreviewUpdateGameServerClusterRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewUpdateGameServerClusterRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewUpdateGameServerClusterRequest) ProtoMessage() {} - -func (x *PreviewUpdateGameServerClusterRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewUpdateGameServerClusterRequest.ProtoReflect.Descriptor instead. -func (*PreviewUpdateGameServerClusterRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{10} -} - -func (x *PreviewUpdateGameServerClusterRequest) GetGameServerCluster() *GameServerCluster { - if x != nil { - return x.GameServerCluster - } - return nil -} - -func (x *PreviewUpdateGameServerClusterRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewUpdateGameServerClusterRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for GameServerClustersService.PreviewUpdateGameServerCluster -type PreviewUpdateGameServerClusterResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The ETag of the game server cluster. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewUpdateGameServerClusterResponse) Reset() { - *x = PreviewUpdateGameServerClusterResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewUpdateGameServerClusterResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewUpdateGameServerClusterResponse) ProtoMessage() {} - -func (x *PreviewUpdateGameServerClusterResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewUpdateGameServerClusterResponse.ProtoReflect.Descriptor instead. -func (*PreviewUpdateGameServerClusterResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{11} -} - -func (x *PreviewUpdateGameServerClusterResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewUpdateGameServerClusterResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// The game server cluster connection information. -type GameServerClusterConnectionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The location of the Kubernetes cluster. - // - // Types that are assignable to ClusterReference: - // *GameServerClusterConnectionInfo_GkeClusterReference - ClusterReference isGameServerClusterConnectionInfo_ClusterReference `protobuf_oneof:"cluster_reference"` - // Namespace designated on the game server cluster where the Agones game - // server instances will be created. Existence of the namespace will be - // validated during creation. - Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` -} - -func (x *GameServerClusterConnectionInfo) Reset() { - *x = GameServerClusterConnectionInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerClusterConnectionInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerClusterConnectionInfo) ProtoMessage() {} - -func (x *GameServerClusterConnectionInfo) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_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 GameServerClusterConnectionInfo.ProtoReflect.Descriptor instead. -func (*GameServerClusterConnectionInfo) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{12} -} - -func (m *GameServerClusterConnectionInfo) GetClusterReference() isGameServerClusterConnectionInfo_ClusterReference { - if m != nil { - return m.ClusterReference - } - return nil -} - -func (x *GameServerClusterConnectionInfo) GetGkeClusterReference() *GkeClusterReference { - if x, ok := x.GetClusterReference().(*GameServerClusterConnectionInfo_GkeClusterReference); ok { - return x.GkeClusterReference - } - return nil -} - -func (x *GameServerClusterConnectionInfo) GetNamespace() string { - if x != nil { - return x.Namespace - } - return "" -} - -type isGameServerClusterConnectionInfo_ClusterReference interface { - isGameServerClusterConnectionInfo_ClusterReference() -} - -type GameServerClusterConnectionInfo_GkeClusterReference struct { - // Reference to the GKE cluster where the game servers are installed. - GkeClusterReference *GkeClusterReference `protobuf:"bytes,7,opt,name=gke_cluster_reference,json=gkeClusterReference,proto3,oneof"` -} - -func (*GameServerClusterConnectionInfo_GkeClusterReference) isGameServerClusterConnectionInfo_ClusterReference() { -} - -// A reference to a GKE cluster. -type GkeClusterReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The full or partial name of a GKE cluster, using one of the following - // forms: - // * `projects/{project}/locations/{location}/clusters/{cluster}` - // * `locations/{location}/clusters/{cluster}` - // * `{cluster}` - // If project and location are not specified, the project and location of the - // GameServerCluster resource are used to generate the full name of the - // GKE cluster. - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` -} - -func (x *GkeClusterReference) Reset() { - *x = GkeClusterReference{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GkeClusterReference) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GkeClusterReference) ProtoMessage() {} - -func (x *GkeClusterReference) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GkeClusterReference.ProtoReflect.Descriptor instead. -func (*GkeClusterReference) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{13} -} - -func (x *GkeClusterReference) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -// A game server cluster resource. -type GameServerCluster struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The resource name of the game server cluster. Uses the form: - // - // `projects/{project}/locations/{location}/realms/{realm}/gameServerClusters/{cluster}`. - // For example, - // - // `projects/my-project/locations/{location}/realms/zanzibar/gameServerClusters/my-onprem-cluster`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server cluster. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // The game server cluster connection information. This information is used to - // manage game server clusters. - ConnectionInfo *GameServerClusterConnectionInfo `protobuf:"bytes,5,opt,name=connection_info,json=connectionInfo,proto3" json:"connection_info,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the cluster. - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *GameServerCluster) Reset() { - *x = GameServerCluster{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerCluster) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerCluster) ProtoMessage() {} - -func (x *GameServerCluster) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerCluster.ProtoReflect.Descriptor instead. -func (*GameServerCluster) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP(), []int{14} -} - -func (x *GameServerCluster) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerCluster) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerCluster) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerCluster) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerCluster) GetConnectionInfo() *GameServerClusterConnectionInfo { - if x != nil { - return x.ConnectionInfo - } - return nil -} - -func (x *GameServerCluster) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *GameServerCluster) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_google_cloud_gaming_v1beta_game_server_clusters_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDesc = []byte{ - 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf1, 0x01, 0x0a, 0x1d, - 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, - 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, - 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, - 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, - 0xcb, 0x01, 0x0a, 0x1e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x12, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, - 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, - 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x68, 0x0a, - 0x1b, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x2f, 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x1e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, - 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x16, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x62, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xd8, 0x02, 0x0a, 0x25, 0x50, 0x72, 0x65, 0x76, - 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x4d, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x12, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x38, 0x0a, 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x62, 0x0a, 0x13, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x42, - 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, - 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x26, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, - 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, - 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0x6b, 0x0a, - 0x1e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x49, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x35, 0xe0, - 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb6, 0x01, 0x0a, 0x25, 0x50, - 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x49, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x35, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2f, 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, - 0x69, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x26, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, - 0x61, 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, - 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, - 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xc6, - 0x01, 0x0a, 0x1e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x62, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x91, 0x02, 0x0a, 0x25, 0x50, 0x72, 0x65, 0x76, - 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x62, 0x0a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, 0x76, 0x69, - 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, - 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x88, 0x01, 0x0a, 0x26, - 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x1f, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x65, 0x0a, 0x15, 0x67, 0x6b, - 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, - 0x6e, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x6b, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x48, 0x00, 0x52, 0x13, 0x67, 0x6b, - 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, - 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x42, - 0x13, 0x0a, 0x11, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x65, 0x6e, 0x63, 0x65, 0x22, 0x2f, 0x0a, 0x13, 0x47, 0x6b, 0x65, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0xe5, 0x04, 0x0a, 0x11, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x17, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x64, 0x0a, 0x0f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, - 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x3a, 0x88, 0x01, 0xea, 0x41, 0x84, 0x01, 0x0a, 0x2d, 0x67, 0x61, 0x6d, 0x65, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x53, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x7d, - 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x7d, 0x42, 0x77, 0x0a, - 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, - 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, - 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, - 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescData = file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDesc -) - -func file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescData) - }) - return file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDescData -} - -var file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_google_cloud_gaming_v1beta_game_server_clusters_proto_goTypes = []interface{}{ - (*ListGameServerClustersRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerClustersRequest - (*ListGameServerClustersResponse)(nil), // 1: google.cloud.gaming.v1beta.ListGameServerClustersResponse - (*GetGameServerClusterRequest)(nil), // 2: google.cloud.gaming.v1beta.GetGameServerClusterRequest - (*CreateGameServerClusterRequest)(nil), // 3: google.cloud.gaming.v1beta.CreateGameServerClusterRequest - (*PreviewCreateGameServerClusterRequest)(nil), // 4: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterRequest - (*PreviewCreateGameServerClusterResponse)(nil), // 5: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse - (*DeleteGameServerClusterRequest)(nil), // 6: google.cloud.gaming.v1beta.DeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterRequest)(nil), // 7: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterResponse)(nil), // 8: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse - (*UpdateGameServerClusterRequest)(nil), // 9: google.cloud.gaming.v1beta.UpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterRequest)(nil), // 10: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterResponse)(nil), // 11: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse - (*GameServerClusterConnectionInfo)(nil), // 12: google.cloud.gaming.v1beta.GameServerClusterConnectionInfo - (*GkeClusterReference)(nil), // 13: google.cloud.gaming.v1beta.GkeClusterReference - (*GameServerCluster)(nil), // 14: google.cloud.gaming.v1beta.GameServerCluster - nil, // 15: google.cloud.gaming.v1beta.GameServerCluster.LabelsEntry - (*timestamppb.Timestamp)(nil), // 16: google.protobuf.Timestamp - (*TargetState)(nil), // 17: google.cloud.gaming.v1beta.TargetState - (*fieldmaskpb.FieldMask)(nil), // 18: google.protobuf.FieldMask -} -var file_google_cloud_gaming_v1beta_game_server_clusters_proto_depIdxs = []int32{ - 14, // 0: google.cloud.gaming.v1beta.ListGameServerClustersResponse.game_server_clusters:type_name -> google.cloud.gaming.v1beta.GameServerCluster - 14, // 1: google.cloud.gaming.v1beta.CreateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1beta.GameServerCluster - 14, // 2: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1beta.GameServerCluster - 16, // 3: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 17, // 4: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1beta.TargetState - 16, // 5: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 17, // 6: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1beta.TargetState - 14, // 7: google.cloud.gaming.v1beta.UpdateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1beta.GameServerCluster - 18, // 8: google.cloud.gaming.v1beta.UpdateGameServerClusterRequest.update_mask:type_name -> google.protobuf.FieldMask - 14, // 9: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest.game_server_cluster:type_name -> google.cloud.gaming.v1beta.GameServerCluster - 18, // 10: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest.update_mask:type_name -> google.protobuf.FieldMask - 16, // 11: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest.preview_time:type_name -> google.protobuf.Timestamp - 17, // 12: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse.target_state:type_name -> google.cloud.gaming.v1beta.TargetState - 13, // 13: google.cloud.gaming.v1beta.GameServerClusterConnectionInfo.gke_cluster_reference:type_name -> google.cloud.gaming.v1beta.GkeClusterReference - 16, // 14: google.cloud.gaming.v1beta.GameServerCluster.create_time:type_name -> google.protobuf.Timestamp - 16, // 15: google.cloud.gaming.v1beta.GameServerCluster.update_time:type_name -> google.protobuf.Timestamp - 15, // 16: google.cloud.gaming.v1beta.GameServerCluster.labels:type_name -> google.cloud.gaming.v1beta.GameServerCluster.LabelsEntry - 12, // 17: google.cloud.gaming.v1beta.GameServerCluster.connection_info:type_name -> google.cloud.gaming.v1beta.GameServerClusterConnectionInfo - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_clusters_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_clusters_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_clusters_proto != nil { - return - } - file_google_cloud_gaming_v1beta_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerClustersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerClustersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewCreateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewCreateGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewDeleteGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewDeleteGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewUpdateGameServerClusterRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewUpdateGameServerClusterResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerClusterConnectionInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GkeClusterReference); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerCluster); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes[12].OneofWrappers = []interface{}{ - (*GameServerClusterConnectionInfo_GkeClusterReference)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDesc, - NumEnums: 0, - NumMessages: 16, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_clusters_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_clusters_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1beta_game_server_clusters_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1beta_game_server_clusters_proto = out.File - file_google_cloud_gaming_v1beta_game_server_clusters_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_clusters_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_clusters_proto_depIdxs = nil -} diff --git a/gaming/apiv1beta/gamingpb/game_server_clusters_service.pb.go b/gaming/apiv1beta/gamingpb/game_server_clusters_service.pb.go deleted file mode 100755 index 88973c6cf522..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_clusters_service.pb.go +++ /dev/null @@ -1,627 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_clusters_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1beta_game_server_clusters_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_rawDesc = []byte{ - 0x0a, 0x3d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 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, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, - 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xdf, - 0x11, 0x0a, 0x19, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe5, 0x01, 0x0a, - 0x16, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, - 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x12, - 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, - 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x73, 0x12, 0xd2, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x37, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x52, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x45, 0x12, 0x43, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, - 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xb4, 0x02, 0x0a, 0x17, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, - 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0xbd, 0x01, 0xca, 0x41, 0x26, 0x0a, 0x11, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x31, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5a, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x43, 0x2f, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x97, 0x02, 0x0a, 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x68, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x22, 0x51, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x3a, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0xf5, 0x01, 0x0a, 0x17, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x7f, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x45, 0x2a, 0x43, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, - 0x2a, 0x7d, 0x12, 0x82, 0x02, 0x0a, 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x53, 0x2a, 0x51, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, - 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, - 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, - 0x77, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0xb6, 0x02, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xbf, - 0x01, 0xca, 0x41, 0x26, 0x0a, 0x11, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x1f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, - 0x02, 0x6e, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, - 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x32, 0x57, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2f, 0x7b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, 0x7d, - 0x12, 0xac, 0x02, 0x0a, 0x1e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x7c, 0x3a, 0x13, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x32, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2f, 0x7b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, - 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x73, 0x2f, 0x2a, - 0x7d, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, - 0x4f, 0xca, 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, - 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, - 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, - 0x42, 0x77, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_goTypes = []interface{}{ - (*ListGameServerClustersRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerClustersRequest - (*GetGameServerClusterRequest)(nil), // 1: google.cloud.gaming.v1beta.GetGameServerClusterRequest - (*CreateGameServerClusterRequest)(nil), // 2: google.cloud.gaming.v1beta.CreateGameServerClusterRequest - (*PreviewCreateGameServerClusterRequest)(nil), // 3: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterRequest - (*DeleteGameServerClusterRequest)(nil), // 4: google.cloud.gaming.v1beta.DeleteGameServerClusterRequest - (*PreviewDeleteGameServerClusterRequest)(nil), // 5: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterRequest - (*UpdateGameServerClusterRequest)(nil), // 6: google.cloud.gaming.v1beta.UpdateGameServerClusterRequest - (*PreviewUpdateGameServerClusterRequest)(nil), // 7: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest - (*ListGameServerClustersResponse)(nil), // 8: google.cloud.gaming.v1beta.ListGameServerClustersResponse - (*GameServerCluster)(nil), // 9: google.cloud.gaming.v1beta.GameServerCluster - (*longrunningpb.Operation)(nil), // 10: google.longrunning.Operation - (*PreviewCreateGameServerClusterResponse)(nil), // 11: google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse - (*PreviewDeleteGameServerClusterResponse)(nil), // 12: google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse - (*PreviewUpdateGameServerClusterResponse)(nil), // 13: google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse -} -var file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters:input_type -> google.cloud.gaming.v1beta.ListGameServerClustersRequest - 1, // 1: google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster:input_type -> google.cloud.gaming.v1beta.GetGameServerClusterRequest - 2, // 2: google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster:input_type -> google.cloud.gaming.v1beta.CreateGameServerClusterRequest - 3, // 3: google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster:input_type -> google.cloud.gaming.v1beta.PreviewCreateGameServerClusterRequest - 4, // 4: google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster:input_type -> google.cloud.gaming.v1beta.DeleteGameServerClusterRequest - 5, // 5: google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster:input_type -> google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterRequest - 6, // 6: google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster:input_type -> google.cloud.gaming.v1beta.UpdateGameServerClusterRequest - 7, // 7: google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster:input_type -> google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterRequest - 8, // 8: google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters:output_type -> google.cloud.gaming.v1beta.ListGameServerClustersResponse - 9, // 9: google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster:output_type -> google.cloud.gaming.v1beta.GameServerCluster - 10, // 10: google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster:output_type -> google.longrunning.Operation - 11, // 11: google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster:output_type -> google.cloud.gaming.v1beta.PreviewCreateGameServerClusterResponse - 10, // 12: google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster:output_type -> google.longrunning.Operation - 12, // 13: google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster:output_type -> google.cloud.gaming.v1beta.PreviewDeleteGameServerClusterResponse - 10, // 14: google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster:output_type -> google.longrunning.Operation - 13, // 15: google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster:output_type -> google.cloud.gaming.v1beta.PreviewUpdateGameServerClusterResponse - 8, // [8:16] is the sub-list for method output_type - 0, // [0:8] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_clusters_service_proto != nil { - return - } - file_google_cloud_gaming_v1beta_game_server_clusters_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1beta_game_server_clusters_service_proto = out.File - file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_clusters_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerClustersServiceClient is the client API for GameServerClustersService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerClustersServiceClient interface { - // Lists game server clusters in a given project and location. - ListGameServerClusters(ctx context.Context, in *ListGameServerClustersRequest, opts ...grpc.CallOption) (*ListGameServerClustersResponse, error) - // Gets details of a single game server cluster. - GetGameServerCluster(ctx context.Context, in *GetGameServerClusterRequest, opts ...grpc.CallOption) (*GameServerCluster, error) - // Creates a new game server cluster in a given project and location. - CreateGameServerCluster(ctx context.Context, in *CreateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews creation of a new game server cluster in a given project and - // location. - PreviewCreateGameServerCluster(ctx context.Context, in *PreviewCreateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewCreateGameServerClusterResponse, error) - // Deletes a single game server cluster. - DeleteGameServerCluster(ctx context.Context, in *DeleteGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews deletion of a single game server cluster. - PreviewDeleteGameServerCluster(ctx context.Context, in *PreviewDeleteGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewDeleteGameServerClusterResponse, error) - // Patches a single game server cluster. - UpdateGameServerCluster(ctx context.Context, in *UpdateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews updating a GameServerCluster. - PreviewUpdateGameServerCluster(ctx context.Context, in *PreviewUpdateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewUpdateGameServerClusterResponse, error) -} - -type gameServerClustersServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerClustersServiceClient(cc grpc.ClientConnInterface) GameServerClustersServiceClient { - return &gameServerClustersServiceClient{cc} -} - -func (c *gameServerClustersServiceClient) ListGameServerClusters(ctx context.Context, in *ListGameServerClustersRequest, opts ...grpc.CallOption) (*ListGameServerClustersResponse, error) { - out := new(ListGameServerClustersResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/ListGameServerClusters", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) GetGameServerCluster(ctx context.Context, in *GetGameServerClusterRequest, opts ...grpc.CallOption) (*GameServerCluster, error) { - out := new(GameServerCluster) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/GetGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) CreateGameServerCluster(ctx context.Context, in *CreateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/CreateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewCreateGameServerCluster(ctx context.Context, in *PreviewCreateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewCreateGameServerClusterResponse, error) { - out := new(PreviewCreateGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewCreateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) DeleteGameServerCluster(ctx context.Context, in *DeleteGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/DeleteGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewDeleteGameServerCluster(ctx context.Context, in *PreviewDeleteGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewDeleteGameServerClusterResponse, error) { - out := new(PreviewDeleteGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewDeleteGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) UpdateGameServerCluster(ctx context.Context, in *UpdateGameServerClusterRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/UpdateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerClustersServiceClient) PreviewUpdateGameServerCluster(ctx context.Context, in *PreviewUpdateGameServerClusterRequest, opts ...grpc.CallOption) (*PreviewUpdateGameServerClusterResponse, error) { - out := new(PreviewUpdateGameServerClusterResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewUpdateGameServerCluster", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerClustersServiceServer is the server API for GameServerClustersService service. -type GameServerClustersServiceServer interface { - // Lists game server clusters in a given project and location. - ListGameServerClusters(context.Context, *ListGameServerClustersRequest) (*ListGameServerClustersResponse, error) - // Gets details of a single game server cluster. - GetGameServerCluster(context.Context, *GetGameServerClusterRequest) (*GameServerCluster, error) - // Creates a new game server cluster in a given project and location. - CreateGameServerCluster(context.Context, *CreateGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews creation of a new game server cluster in a given project and - // location. - PreviewCreateGameServerCluster(context.Context, *PreviewCreateGameServerClusterRequest) (*PreviewCreateGameServerClusterResponse, error) - // Deletes a single game server cluster. - DeleteGameServerCluster(context.Context, *DeleteGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews deletion of a single game server cluster. - PreviewDeleteGameServerCluster(context.Context, *PreviewDeleteGameServerClusterRequest) (*PreviewDeleteGameServerClusterResponse, error) - // Patches a single game server cluster. - UpdateGameServerCluster(context.Context, *UpdateGameServerClusterRequest) (*longrunningpb.Operation, error) - // Previews updating a GameServerCluster. - PreviewUpdateGameServerCluster(context.Context, *PreviewUpdateGameServerClusterRequest) (*PreviewUpdateGameServerClusterResponse, error) -} - -// UnimplementedGameServerClustersServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerClustersServiceServer struct { -} - -func (*UnimplementedGameServerClustersServiceServer) ListGameServerClusters(context.Context, *ListGameServerClustersRequest) (*ListGameServerClustersResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerClusters not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) GetGameServerCluster(context.Context, *GetGameServerClusterRequest) (*GameServerCluster, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) CreateGameServerCluster(context.Context, *CreateGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewCreateGameServerCluster(context.Context, *PreviewCreateGameServerClusterRequest) (*PreviewCreateGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewCreateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) DeleteGameServerCluster(context.Context, *DeleteGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewDeleteGameServerCluster(context.Context, *PreviewDeleteGameServerClusterRequest) (*PreviewDeleteGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewDeleteGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) UpdateGameServerCluster(context.Context, *UpdateGameServerClusterRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerCluster not implemented") -} -func (*UnimplementedGameServerClustersServiceServer) PreviewUpdateGameServerCluster(context.Context, *PreviewUpdateGameServerClusterRequest) (*PreviewUpdateGameServerClusterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewUpdateGameServerCluster not implemented") -} - -func RegisterGameServerClustersServiceServer(s *grpc.Server, srv GameServerClustersServiceServer) { - s.RegisterService(&_GameServerClustersService_serviceDesc, srv) -} - -func _GameServerClustersService_ListGameServerClusters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerClustersRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).ListGameServerClusters(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/ListGameServerClusters", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).ListGameServerClusters(ctx, req.(*ListGameServerClustersRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_GetGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).GetGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/GetGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).GetGameServerCluster(ctx, req.(*GetGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_CreateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).CreateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/CreateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).CreateGameServerCluster(ctx, req.(*CreateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewCreateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewCreateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewCreateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewCreateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewCreateGameServerCluster(ctx, req.(*PreviewCreateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_DeleteGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).DeleteGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/DeleteGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).DeleteGameServerCluster(ctx, req.(*DeleteGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewDeleteGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewDeleteGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewDeleteGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewDeleteGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewDeleteGameServerCluster(ctx, req.(*PreviewDeleteGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_UpdateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).UpdateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/UpdateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).UpdateGameServerCluster(ctx, req.(*UpdateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerClustersService_PreviewUpdateGameServerCluster_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewUpdateGameServerClusterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerClustersServiceServer).PreviewUpdateGameServerCluster(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerClustersService/PreviewUpdateGameServerCluster", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerClustersServiceServer).PreviewUpdateGameServerCluster(ctx, req.(*PreviewUpdateGameServerClusterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerClustersService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1beta.GameServerClustersService", - HandlerType: (*GameServerClustersServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerClusters", - Handler: _GameServerClustersService_ListGameServerClusters_Handler, - }, - { - MethodName: "GetGameServerCluster", - Handler: _GameServerClustersService_GetGameServerCluster_Handler, - }, - { - MethodName: "CreateGameServerCluster", - Handler: _GameServerClustersService_CreateGameServerCluster_Handler, - }, - { - MethodName: "PreviewCreateGameServerCluster", - Handler: _GameServerClustersService_PreviewCreateGameServerCluster_Handler, - }, - { - MethodName: "DeleteGameServerCluster", - Handler: _GameServerClustersService_DeleteGameServerCluster_Handler, - }, - { - MethodName: "PreviewDeleteGameServerCluster", - Handler: _GameServerClustersService_PreviewDeleteGameServerCluster_Handler, - }, - { - MethodName: "UpdateGameServerCluster", - Handler: _GameServerClustersService_UpdateGameServerCluster_Handler, - }, - { - MethodName: "PreviewUpdateGameServerCluster", - Handler: _GameServerClustersService_PreviewUpdateGameServerCluster_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1beta/game_server_clusters_service.proto", -} diff --git a/gaming/apiv1beta/gamingpb/game_server_configs.pb.go b/gaming/apiv1beta/gamingpb/game_server_configs.pb.go deleted file mode 100755 index bd2c7a4a474c..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_configs.pb.go +++ /dev/null @@ -1,929 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_configs.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for GameServerConfigsService.ListGameServerConfigs. -type ListGameServerConfigsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/*`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1beta.ListGameServerConfigsResponse.next_page_token] - // to determine if there are more GameServerConfigs left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous list request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListGameServerConfigsRequest) Reset() { - *x = ListGameServerConfigsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerConfigsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerConfigsRequest) ProtoMessage() {} - -func (x *ListGameServerConfigsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_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 ListGameServerConfigsRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerConfigsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerConfigsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerConfigsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerConfigsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for GameServerConfigsService.ListGameServerConfigs. -type ListGameServerConfigsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server configs. - GameServerConfigs []*GameServerConfig `protobuf:"bytes,1,rep,name=game_server_configs,json=gameServerConfigs,proto3" json:"game_server_configs,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerConfigsResponse) Reset() { - *x = ListGameServerConfigsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerConfigsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerConfigsResponse) ProtoMessage() {} - -func (x *ListGameServerConfigsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_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 ListGameServerConfigsResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerConfigsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerConfigsResponse) GetGameServerConfigs() []*GameServerConfig { - if x != nil { - return x.GameServerConfigs - } - return nil -} - -func (x *ListGameServerConfigsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerConfigsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerConfigsService.GetGameServerConfig. -type GetGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server config to retrieve. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerConfigRequest) Reset() { - *x = GetGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerConfigRequest) ProtoMessage() {} - -func (x *GetGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_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 GetGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerConfigRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerConfigsService.CreateGameServerConfig. -type CreateGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server config resource to be created. - ConfigId string `protobuf:"bytes,2,opt,name=config_id,json=configId,proto3" json:"config_id,omitempty"` - // Required. The game server config resource to be created. - GameServerConfig *GameServerConfig `protobuf:"bytes,3,opt,name=game_server_config,json=gameServerConfig,proto3" json:"game_server_config,omitempty"` -} - -func (x *CreateGameServerConfigRequest) Reset() { - *x = CreateGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerConfigRequest) ProtoMessage() {} - -func (x *CreateGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_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 CreateGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateGameServerConfigRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerConfigRequest) GetConfigId() string { - if x != nil { - return x.ConfigId - } - return "" -} - -func (x *CreateGameServerConfigRequest) GetGameServerConfig() *GameServerConfig { - if x != nil { - return x.GameServerConfig - } - return nil -} - -// Request message for GameServerConfigsService.DeleteGameServerConfig. -type DeleteGameServerConfigRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server config to delete. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerConfigRequest) Reset() { - *x = DeleteGameServerConfigRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerConfigRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerConfigRequest) ProtoMessage() {} - -func (x *DeleteGameServerConfigRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_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 DeleteGameServerConfigRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerConfigRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteGameServerConfigRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Autoscaling config for an Agones fleet. -type ScalingConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the Scaling Config - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Required. Agones fleet autoscaler spec. Example spec: - // https://agones.dev/site/docs/reference/fleetautoscaler/ - FleetAutoscalerSpec string `protobuf:"bytes,2,opt,name=fleet_autoscaler_spec,json=fleetAutoscalerSpec,proto3" json:"fleet_autoscaler_spec,omitempty"` - // Labels used to identify the game server clusters to which this Agones - // scaling config applies. A game server cluster is subject to this Agones - // scaling config if its labels match any of the selector entries. - Selectors []*LabelSelector `protobuf:"bytes,4,rep,name=selectors,proto3" json:"selectors,omitempty"` - // The schedules to which this Scaling Config applies. - Schedules []*Schedule `protobuf:"bytes,5,rep,name=schedules,proto3" json:"schedules,omitempty"` -} - -func (x *ScalingConfig) Reset() { - *x = ScalingConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ScalingConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ScalingConfig) ProtoMessage() {} - -func (x *ScalingConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ScalingConfig.ProtoReflect.Descriptor instead. -func (*ScalingConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{5} -} - -func (x *ScalingConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *ScalingConfig) GetFleetAutoscalerSpec() string { - if x != nil { - return x.FleetAutoscalerSpec - } - return "" -} - -func (x *ScalingConfig) GetSelectors() []*LabelSelector { - if x != nil { - return x.Selectors - } - return nil -} - -func (x *ScalingConfig) GetSchedules() []*Schedule { - if x != nil { - return x.Schedules - } - return nil -} - -// Fleet configs for Agones. -type FleetConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Agones fleet spec. Example spec: - // `https://agones.dev/site/docs/reference/fleet/`. - FleetSpec string `protobuf:"bytes,1,opt,name=fleet_spec,json=fleetSpec,proto3" json:"fleet_spec,omitempty"` - // The name of the FleetConfig. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *FleetConfig) Reset() { - *x = FleetConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FleetConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FleetConfig) ProtoMessage() {} - -func (x *FleetConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FleetConfig.ProtoReflect.Descriptor instead. -func (*FleetConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{6} -} - -func (x *FleetConfig) GetFleetSpec() string { - if x != nil { - return x.FleetSpec - } - return "" -} - -func (x *FleetConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// A game server config resource. -type GameServerConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server config. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`. - // For example, - // - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server config. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // FleetConfig contains a list of Agones fleet specs. Only one FleetConfig - // is allowed. - FleetConfigs []*FleetConfig `protobuf:"bytes,5,rep,name=fleet_configs,json=fleetConfigs,proto3" json:"fleet_configs,omitempty"` - // The autoscaling settings. - ScalingConfigs []*ScalingConfig `protobuf:"bytes,6,rep,name=scaling_configs,json=scalingConfigs,proto3" json:"scaling_configs,omitempty"` - // The description of the game server config. - Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *GameServerConfig) Reset() { - *x = GameServerConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerConfig) ProtoMessage() {} - -func (x *GameServerConfig) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerConfig.ProtoReflect.Descriptor instead. -func (*GameServerConfig) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP(), []int{7} -} - -func (x *GameServerConfig) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerConfig) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerConfig) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerConfig) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerConfig) GetFleetConfigs() []*FleetConfig { - if x != nil { - return x.FleetConfigs - } - return nil -} - -func (x *GameServerConfig) GetScalingConfigs() []*ScalingConfig { - if x != nil { - return x.ScalingConfigs - } - return nil -} - -func (x *GameServerConfig) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_google_cloud_gaming_v1beta_game_server_configs_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDesc = []byte{ - 0x0a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xef, 0x01, 0x0a, 0x1c, 0x4c, 0x69, 0x73, - 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x2e, 0x12, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, - 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, - 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, - 0x41, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xc7, 0x01, 0x0a, 0x1d, 0x4c, - 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x13, - 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, - 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, - 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, - 0x61, 0x62, 0x6c, 0x65, 0x22, 0x66, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x34, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xf0, 0x01, 0x0a, - 0x1d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x12, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x5f, - 0x0a, 0x12, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x10, 0x67, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, - 0x69, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x48, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x34, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2e, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xee, 0x01, 0x0a, 0x0d, 0x53, - 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x17, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x15, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x61, - 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x66, 0x6c, 0x65, 0x65, 0x74, - 0x41, 0x75, 0x74, 0x6f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x53, 0x70, 0x65, 0x63, 0x12, 0x47, - 0x0a, 0x09, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x09, 0x73, 0x65, - 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x42, 0x0a, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, - 0x75, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, - 0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x22, 0x40, 0x0a, 0x0b, 0x46, - 0x6c, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x6c, - 0x65, 0x65, 0x74, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x66, 0x6c, 0x65, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8d, 0x05, - 0x0a, 0x10, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x4c, 0x0a, 0x0d, - 0x66, 0x6c, 0x65, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x66, 0x6c, - 0x65, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x52, 0x0a, 0x0f, 0x73, 0x63, - 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x53, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, - 0x73, 0x63, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x20, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x8f, 0x01, 0xea, 0x41, - 0x8b, 0x01, 0x0a, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x5b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x73, 0x2f, 0x7b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x7d, 0x42, 0x77, 0x0a, - 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, - 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, - 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, - 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, - 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescData = file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDesc -) - -func file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescData) - }) - return file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDescData -} - -var file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes = make([]protoimpl.MessageInfo, 9) -var file_google_cloud_gaming_v1beta_game_server_configs_proto_goTypes = []interface{}{ - (*ListGameServerConfigsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerConfigsRequest - (*ListGameServerConfigsResponse)(nil), // 1: google.cloud.gaming.v1beta.ListGameServerConfigsResponse - (*GetGameServerConfigRequest)(nil), // 2: google.cloud.gaming.v1beta.GetGameServerConfigRequest - (*CreateGameServerConfigRequest)(nil), // 3: google.cloud.gaming.v1beta.CreateGameServerConfigRequest - (*DeleteGameServerConfigRequest)(nil), // 4: google.cloud.gaming.v1beta.DeleteGameServerConfigRequest - (*ScalingConfig)(nil), // 5: google.cloud.gaming.v1beta.ScalingConfig - (*FleetConfig)(nil), // 6: google.cloud.gaming.v1beta.FleetConfig - (*GameServerConfig)(nil), // 7: google.cloud.gaming.v1beta.GameServerConfig - nil, // 8: google.cloud.gaming.v1beta.GameServerConfig.LabelsEntry - (*LabelSelector)(nil), // 9: google.cloud.gaming.v1beta.LabelSelector - (*Schedule)(nil), // 10: google.cloud.gaming.v1beta.Schedule - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp -} -var file_google_cloud_gaming_v1beta_game_server_configs_proto_depIdxs = []int32{ - 7, // 0: google.cloud.gaming.v1beta.ListGameServerConfigsResponse.game_server_configs:type_name -> google.cloud.gaming.v1beta.GameServerConfig - 7, // 1: google.cloud.gaming.v1beta.CreateGameServerConfigRequest.game_server_config:type_name -> google.cloud.gaming.v1beta.GameServerConfig - 9, // 2: google.cloud.gaming.v1beta.ScalingConfig.selectors:type_name -> google.cloud.gaming.v1beta.LabelSelector - 10, // 3: google.cloud.gaming.v1beta.ScalingConfig.schedules:type_name -> google.cloud.gaming.v1beta.Schedule - 11, // 4: google.cloud.gaming.v1beta.GameServerConfig.create_time:type_name -> google.protobuf.Timestamp - 11, // 5: google.cloud.gaming.v1beta.GameServerConfig.update_time:type_name -> google.protobuf.Timestamp - 8, // 6: google.cloud.gaming.v1beta.GameServerConfig.labels:type_name -> google.cloud.gaming.v1beta.GameServerConfig.LabelsEntry - 6, // 7: google.cloud.gaming.v1beta.GameServerConfig.fleet_configs:type_name -> google.cloud.gaming.v1beta.FleetConfig - 5, // 8: google.cloud.gaming.v1beta.GameServerConfig.scaling_configs:type_name -> google.cloud.gaming.v1beta.ScalingConfig - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_configs_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_configs_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_configs_proto != nil { - return - } - file_google_cloud_gaming_v1beta_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerConfigsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerConfigsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerConfigRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ScalingConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FleetConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerConfig); 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_google_cloud_gaming_v1beta_game_server_configs_proto_rawDesc, - NumEnums: 0, - NumMessages: 9, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_configs_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_configs_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1beta_game_server_configs_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1beta_game_server_configs_proto = out.File - file_google_cloud_gaming_v1beta_game_server_configs_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_configs_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_configs_proto_depIdxs = nil -} diff --git a/gaming/apiv1beta/gamingpb/game_server_configs_service.pb.go b/gaming/apiv1beta/gamingpb/game_server_configs_service.pb.go deleted file mode 100755 index 95136d7947c3..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_configs_service.pb.go +++ /dev/null @@ -1,392 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_configs_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1beta_game_server_configs_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_configs_service_proto_rawDesc = []byte{ - 0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 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, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xc4, 0x08, 0x0a, - 0x18, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe6, 0x01, 0x0a, 0x15, 0x4c, 0x69, - 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x73, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x58, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, 0x47, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, - 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x73, 0x12, 0xd3, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x22, 0x56, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x12, - 0x47, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0x9c, 0x02, 0x0a, 0x16, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa7, 0x01, - 0xca, 0x41, 0x25, 0x0a, 0x10, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x19, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x2c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x3a, 0x12, 0x67, 0x61, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x47, - 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0xf8, 0x01, 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x83, 0x01, 0xca, - 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x2a, 0x47, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x2f, - 0x2a, 0x7d, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x42, 0x77, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, - 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1beta_game_server_configs_service_proto_goTypes = []interface{}{ - (*ListGameServerConfigsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerConfigsRequest - (*GetGameServerConfigRequest)(nil), // 1: google.cloud.gaming.v1beta.GetGameServerConfigRequest - (*CreateGameServerConfigRequest)(nil), // 2: google.cloud.gaming.v1beta.CreateGameServerConfigRequest - (*DeleteGameServerConfigRequest)(nil), // 3: google.cloud.gaming.v1beta.DeleteGameServerConfigRequest - (*ListGameServerConfigsResponse)(nil), // 4: google.cloud.gaming.v1beta.ListGameServerConfigsResponse - (*GameServerConfig)(nil), // 5: google.cloud.gaming.v1beta.GameServerConfig - (*longrunningpb.Operation)(nil), // 6: google.longrunning.Operation -} -var file_google_cloud_gaming_v1beta_game_server_configs_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs:input_type -> google.cloud.gaming.v1beta.ListGameServerConfigsRequest - 1, // 1: google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig:input_type -> google.cloud.gaming.v1beta.GetGameServerConfigRequest - 2, // 2: google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig:input_type -> google.cloud.gaming.v1beta.CreateGameServerConfigRequest - 3, // 3: google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig:input_type -> google.cloud.gaming.v1beta.DeleteGameServerConfigRequest - 4, // 4: google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs:output_type -> google.cloud.gaming.v1beta.ListGameServerConfigsResponse - 5, // 5: google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig:output_type -> google.cloud.gaming.v1beta.GameServerConfig - 6, // 6: google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig:output_type -> google.longrunning.Operation - 6, // 7: google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig:output_type -> google.longrunning.Operation - 4, // [4:8] is the sub-list for method output_type - 0, // [0:4] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_configs_service_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_configs_service_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_configs_service_proto != nil { - return - } - file_google_cloud_gaming_v1beta_game_server_configs_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_game_server_configs_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_configs_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_configs_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1beta_game_server_configs_service_proto = out.File - file_google_cloud_gaming_v1beta_game_server_configs_service_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_configs_service_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_configs_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerConfigsServiceClient is the client API for GameServerConfigsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerConfigsServiceClient interface { - // Lists game server configs in a given project, location, and game server - // deployment. - ListGameServerConfigs(ctx context.Context, in *ListGameServerConfigsRequest, opts ...grpc.CallOption) (*ListGameServerConfigsResponse, error) - // Gets details of a single game server config. - GetGameServerConfig(ctx context.Context, in *GetGameServerConfigRequest, opts ...grpc.CallOption) (*GameServerConfig, error) - // Creates a new game server config in a given project, location, and game - // server deployment. Game server configs are immutable, and are not applied - // until referenced in the game server deployment rollout resource. - CreateGameServerConfig(ctx context.Context, in *CreateGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single game server config. The deletion will fail if the game - // server config is referenced in a game server deployment rollout. - DeleteGameServerConfig(ctx context.Context, in *DeleteGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) -} - -type gameServerConfigsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerConfigsServiceClient(cc grpc.ClientConnInterface) GameServerConfigsServiceClient { - return &gameServerConfigsServiceClient{cc} -} - -func (c *gameServerConfigsServiceClient) ListGameServerConfigs(ctx context.Context, in *ListGameServerConfigsRequest, opts ...grpc.CallOption) (*ListGameServerConfigsResponse, error) { - out := new(ListGameServerConfigsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerConfigsService/ListGameServerConfigs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) GetGameServerConfig(ctx context.Context, in *GetGameServerConfigRequest, opts ...grpc.CallOption) (*GameServerConfig, error) { - out := new(GameServerConfig) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerConfigsService/GetGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) CreateGameServerConfig(ctx context.Context, in *CreateGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerConfigsService/CreateGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerConfigsServiceClient) DeleteGameServerConfig(ctx context.Context, in *DeleteGameServerConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerConfigsService/DeleteGameServerConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerConfigsServiceServer is the server API for GameServerConfigsService service. -type GameServerConfigsServiceServer interface { - // Lists game server configs in a given project, location, and game server - // deployment. - ListGameServerConfigs(context.Context, *ListGameServerConfigsRequest) (*ListGameServerConfigsResponse, error) - // Gets details of a single game server config. - GetGameServerConfig(context.Context, *GetGameServerConfigRequest) (*GameServerConfig, error) - // Creates a new game server config in a given project, location, and game - // server deployment. Game server configs are immutable, and are not applied - // until referenced in the game server deployment rollout resource. - CreateGameServerConfig(context.Context, *CreateGameServerConfigRequest) (*longrunningpb.Operation, error) - // Deletes a single game server config. The deletion will fail if the game - // server config is referenced in a game server deployment rollout. - DeleteGameServerConfig(context.Context, *DeleteGameServerConfigRequest) (*longrunningpb.Operation, error) -} - -// UnimplementedGameServerConfigsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerConfigsServiceServer struct { -} - -func (*UnimplementedGameServerConfigsServiceServer) ListGameServerConfigs(context.Context, *ListGameServerConfigsRequest) (*ListGameServerConfigsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerConfigs not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) GetGameServerConfig(context.Context, *GetGameServerConfigRequest) (*GameServerConfig, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerConfig not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) CreateGameServerConfig(context.Context, *CreateGameServerConfigRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerConfig not implemented") -} -func (*UnimplementedGameServerConfigsServiceServer) DeleteGameServerConfig(context.Context, *DeleteGameServerConfigRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerConfig not implemented") -} - -func RegisterGameServerConfigsServiceServer(s *grpc.Server, srv GameServerConfigsServiceServer) { - s.RegisterService(&_GameServerConfigsService_serviceDesc, srv) -} - -func _GameServerConfigsService_ListGameServerConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerConfigsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).ListGameServerConfigs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerConfigsService/ListGameServerConfigs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).ListGameServerConfigs(ctx, req.(*ListGameServerConfigsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_GetGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).GetGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerConfigsService/GetGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).GetGameServerConfig(ctx, req.(*GetGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_CreateGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).CreateGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerConfigsService/CreateGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).CreateGameServerConfig(ctx, req.(*CreateGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerConfigsService_DeleteGameServerConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerConfigsServiceServer).DeleteGameServerConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerConfigsService/DeleteGameServerConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerConfigsServiceServer).DeleteGameServerConfig(ctx, req.(*DeleteGameServerConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerConfigsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1beta.GameServerConfigsService", - HandlerType: (*GameServerConfigsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerConfigs", - Handler: _GameServerConfigsService_ListGameServerConfigs_Handler, - }, - { - MethodName: "GetGameServerConfig", - Handler: _GameServerConfigsService_GetGameServerConfig_Handler, - }, - { - MethodName: "CreateGameServerConfig", - Handler: _GameServerConfigsService_CreateGameServerConfig_Handler, - }, - { - MethodName: "DeleteGameServerConfig", - Handler: _GameServerConfigsService_DeleteGameServerConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1beta/game_server_configs_service.proto", -} diff --git a/gaming/apiv1beta/gamingpb/game_server_deployments.pb.go b/gaming/apiv1beta/gamingpb/game_server_deployments.pb.go deleted file mode 100755 index f5bd6ad1d146..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_deployments.pb.go +++ /dev/null @@ -1,1706 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_deployments.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for GameServerDeploymentsService.ListGameServerDeployments. -type ListGameServerDeploymentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, the - // server will pick an appropriate default. The server may return fewer items - // than requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.next_page_token] - // to determine if there are more GameServerDeployments left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListGameServerDeploymentsRequest) Reset() { - *x = ListGameServerDeploymentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerDeploymentsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerDeploymentsRequest) ProtoMessage() {} - -func (x *ListGameServerDeploymentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 ListGameServerDeploymentsRequest.ProtoReflect.Descriptor instead. -func (*ListGameServerDeploymentsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{0} -} - -func (x *ListGameServerDeploymentsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListGameServerDeploymentsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListGameServerDeploymentsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for GameServerDeploymentsService.ListGameServerDeployments. -type ListGameServerDeploymentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of game server deployments. - GameServerDeployments []*GameServerDeployment `protobuf:"bytes,1,rep,name=game_server_deployments,json=gameServerDeployments,proto3" json:"game_server_deployments,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,4,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListGameServerDeploymentsResponse) Reset() { - *x = ListGameServerDeploymentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListGameServerDeploymentsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListGameServerDeploymentsResponse) ProtoMessage() {} - -func (x *ListGameServerDeploymentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 ListGameServerDeploymentsResponse.ProtoReflect.Descriptor instead. -func (*ListGameServerDeploymentsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{1} -} - -func (x *ListGameServerDeploymentsResponse) GetGameServerDeployments() []*GameServerDeployment { - if x != nil { - return x.GameServerDeployments - } - return nil -} - -func (x *ListGameServerDeploymentsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListGameServerDeploymentsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for GameServerDeploymentsService.GetGameServerDeployment. -type GetGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to retrieve. Uses the - // form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerDeploymentRequest) Reset() { - *x = GetGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerDeploymentRequest) ProtoMessage() {} - -func (x *GetGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 GetGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{2} -} - -func (x *GetGameServerDeploymentRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for -// GameServerDeploymentsService.GetGameServerDeploymentRollout. -type GetGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to retrieve. Uses the - // form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetGameServerDeploymentRolloutRequest) Reset() { - *x = GetGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *GetGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 GetGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*GetGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{3} -} - -func (x *GetGameServerDeploymentRolloutRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerDeploymentsService.CreateGameServerDeployment. -type CreateGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the game server delpoyment resource to be created. - DeploymentId string `protobuf:"bytes,2,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"` - // Required. The game server delpoyment resource to be created. - GameServerDeployment *GameServerDeployment `protobuf:"bytes,3,opt,name=game_server_deployment,json=gameServerDeployment,proto3" json:"game_server_deployment,omitempty"` -} - -func (x *CreateGameServerDeploymentRequest) Reset() { - *x = CreateGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateGameServerDeploymentRequest) ProtoMessage() {} - -func (x *CreateGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 CreateGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*CreateGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{4} -} - -func (x *CreateGameServerDeploymentRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateGameServerDeploymentRequest) GetDeploymentId() string { - if x != nil { - return x.DeploymentId - } - return "" -} - -func (x *CreateGameServerDeploymentRequest) GetGameServerDeployment() *GameServerDeployment { - if x != nil { - return x.GameServerDeployment - } - return nil -} - -// Request message for GameServerDeploymentsService.DeleteGameServerDeployment. -type DeleteGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment to delete. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteGameServerDeploymentRequest) Reset() { - *x = DeleteGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteGameServerDeploymentRequest) ProtoMessage() {} - -func (x *DeleteGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*DeleteGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{5} -} - -func (x *DeleteGameServerDeploymentRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for GameServerDeploymentsService.UpdateGameServerDeployment. -// Only allows updates for labels. -type UpdateGameServerDeploymentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server delpoyment to be updated. - // Only fields specified in update_mask are updated. - GameServerDeployment *GameServerDeployment `protobuf:"bytes,1,opt,name=game_server_deployment,json=gameServerDeployment,proto3" json:"game_server_deployment,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerDeploymentRequest) Reset() { - *x = UpdateGameServerDeploymentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerDeploymentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerDeploymentRequest) ProtoMessage() {} - -func (x *UpdateGameServerDeploymentRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerDeploymentRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerDeploymentRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{6} -} - -func (x *UpdateGameServerDeploymentRequest) GetGameServerDeployment() *GameServerDeployment { - if x != nil { - return x.GameServerDeployment - } - return nil -} - -func (x *UpdateGameServerDeploymentRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for -// GameServerDeploymentsService.UpdateGameServerRolloutDeployment. -type UpdateGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server delpoyment rollout to be updated. - // Only fields specified in update_mask are updated. - Rollout *GameServerDeploymentRollout `protobuf:"bytes,1,opt,name=rollout,proto3" json:"rollout,omitempty"` - // Required. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateGameServerDeploymentRolloutRequest) Reset() { - *x = UpdateGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *UpdateGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*UpdateGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{7} -} - -func (x *UpdateGameServerDeploymentRolloutRequest) GetRollout() *GameServerDeploymentRollout { - if x != nil { - return x.Rollout - } - return nil -} - -func (x *UpdateGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for GameServerDeploymentsService.FetchDeploymentState. -type FetchDeploymentStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the game server delpoyment. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *FetchDeploymentStateRequest) Reset() { - *x = FetchDeploymentStateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateRequest) ProtoMessage() {} - -func (x *FetchDeploymentStateRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateRequest.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{8} -} - -func (x *FetchDeploymentStateRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Response message for GameServerDeploymentsService.FetchDeploymentState. -type FetchDeploymentStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The state of the game server deployment in each game server cluster. - ClusterState []*FetchDeploymentStateResponse_DeployedClusterState `protobuf:"bytes,1,rep,name=cluster_state,json=clusterState,proto3" json:"cluster_state,omitempty"` - // List of locations that could not be reached. - Unavailable []string `protobuf:"bytes,2,rep,name=unavailable,proto3" json:"unavailable,omitempty"` -} - -func (x *FetchDeploymentStateResponse) Reset() { - *x = FetchDeploymentStateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateResponse) ProtoMessage() {} - -func (x *FetchDeploymentStateResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateResponse.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{9} -} - -func (x *FetchDeploymentStateResponse) GetClusterState() []*FetchDeploymentStateResponse_DeployedClusterState { - if x != nil { - return x.ClusterState - } - return nil -} - -func (x *FetchDeploymentStateResponse) GetUnavailable() []string { - if x != nil { - return x.Unavailable - } - return nil -} - -// A game server deployment resource. -type GameServerDeployment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server deployment. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}`. - // For example, - // - // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this game server deployment. Each label is a - // key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // ETag of the resource. - Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the game server delpoyment. - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *GameServerDeployment) Reset() { - *x = GameServerDeployment{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerDeployment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerDeployment) ProtoMessage() {} - -func (x *GameServerDeployment) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerDeployment.ProtoReflect.Descriptor instead. -func (*GameServerDeployment) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{10} -} - -func (x *GameServerDeployment) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerDeployment) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerDeployment) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerDeployment) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *GameServerDeployment) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *GameServerDeployment) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -// A game server config override. -type GameServerConfigOverride struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Selector chooses the game server config targets. - // - // Types that are assignable to Selector: - // *GameServerConfigOverride_RealmsSelector - Selector isGameServerConfigOverride_Selector `protobuf_oneof:"selector"` - // Selects the game server config and how it should be applied. - // - // Types that are assignable to Change: - // *GameServerConfigOverride_ConfigVersion - Change isGameServerConfigOverride_Change `protobuf_oneof:"change"` -} - -func (x *GameServerConfigOverride) Reset() { - *x = GameServerConfigOverride{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerConfigOverride) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerConfigOverride) ProtoMessage() {} - -func (x *GameServerConfigOverride) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GameServerConfigOverride.ProtoReflect.Descriptor instead. -func (*GameServerConfigOverride) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{11} -} - -func (m *GameServerConfigOverride) GetSelector() isGameServerConfigOverride_Selector { - if m != nil { - return m.Selector - } - return nil -} - -func (x *GameServerConfigOverride) GetRealmsSelector() *RealmSelector { - if x, ok := x.GetSelector().(*GameServerConfigOverride_RealmsSelector); ok { - return x.RealmsSelector - } - return nil -} - -func (m *GameServerConfigOverride) GetChange() isGameServerConfigOverride_Change { - if m != nil { - return m.Change - } - return nil -} - -func (x *GameServerConfigOverride) GetConfigVersion() string { - if x, ok := x.GetChange().(*GameServerConfigOverride_ConfigVersion); ok { - return x.ConfigVersion - } - return "" -} - -type isGameServerConfigOverride_Selector interface { - isGameServerConfigOverride_Selector() -} - -type GameServerConfigOverride_RealmsSelector struct { - // Selector for choosing applicable realms. - RealmsSelector *RealmSelector `protobuf:"bytes,1,opt,name=realms_selector,json=realmsSelector,proto3,oneof"` -} - -func (*GameServerConfigOverride_RealmsSelector) isGameServerConfigOverride_Selector() {} - -type isGameServerConfigOverride_Change interface { - isGameServerConfigOverride_Change() -} - -type GameServerConfigOverride_ConfigVersion struct { - // The game server config for this override. - ConfigVersion string `protobuf:"bytes,100,opt,name=config_version,json=configVersion,proto3,oneof"` -} - -func (*GameServerConfigOverride_ConfigVersion) isGameServerConfigOverride_Change() {} - -// The game server deployment rollout which represents the desired rollout -// state. -type GameServerDeploymentRollout struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the game server deployment rollout. Uses the form: - // - // `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/rollout`. - // For example, - // - // `projects/my-project/locations/{location}/gameServerDeployments/my-deployment/rollout`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The default game server config is applied to all realms unless overridden - // in the rollout. For example, - // - // `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`. - DefaultGameServerConfig string `protobuf:"bytes,4,opt,name=default_game_server_config,json=defaultGameServerConfig,proto3" json:"default_game_server_config,omitempty"` - // Contains the game server config rollout overrides. Overrides are processed - // in the order they are listed. Once a match is found for a realm, the rest - // of the list is not processed. - GameServerConfigOverrides []*GameServerConfigOverride `protobuf:"bytes,5,rep,name=game_server_config_overrides,json=gameServerConfigOverrides,proto3" json:"game_server_config_overrides,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,6,opt,name=etag,proto3" json:"etag,omitempty"` -} - -func (x *GameServerDeploymentRollout) Reset() { - *x = GameServerDeploymentRollout{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GameServerDeploymentRollout) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GameServerDeploymentRollout) ProtoMessage() {} - -func (x *GameServerDeploymentRollout) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_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 GameServerDeploymentRollout.ProtoReflect.Descriptor instead. -func (*GameServerDeploymentRollout) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{12} -} - -func (x *GameServerDeploymentRollout) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *GameServerDeploymentRollout) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *GameServerDeploymentRollout) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *GameServerDeploymentRollout) GetDefaultGameServerConfig() string { - if x != nil { - return x.DefaultGameServerConfig - } - return "" -} - -func (x *GameServerDeploymentRollout) GetGameServerConfigOverrides() []*GameServerConfigOverride { - if x != nil { - return x.GameServerConfigOverrides - } - return nil -} - -func (x *GameServerDeploymentRollout) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -// Request message for PreviewGameServerDeploymentRollout. -type PreviewGameServerDeploymentRolloutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The game server deployment rollout to be updated. - // Only fields specified in update_mask are updated. - Rollout *GameServerDeploymentRollout `protobuf:"bytes,1,opt,name=rollout,proto3" json:"rollout,omitempty"` - // Optional. Mask of fields to update. At least one path must be supplied in - // this field. For the `FieldMask` definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. Defaults to the - // immediately after the proposed rollout completes. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewGameServerDeploymentRolloutRequest) Reset() { - *x = PreviewGameServerDeploymentRolloutRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewGameServerDeploymentRolloutRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewGameServerDeploymentRolloutRequest) ProtoMessage() {} - -func (x *PreviewGameServerDeploymentRolloutRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewGameServerDeploymentRolloutRequest.ProtoReflect.Descriptor instead. -func (*PreviewGameServerDeploymentRolloutRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{13} -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetRollout() *GameServerDeploymentRollout { - if x != nil { - return x.Rollout - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for PreviewGameServerDeploymentRollout. -// This has details about the Agones fleet and autoscaler to be actuated. -type PreviewGameServerDeploymentRolloutResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Locations that could not be reached on this request. - Unavailable []string `protobuf:"bytes,2,rep,name=unavailable,proto3" json:"unavailable,omitempty"` - // ETag of the game server deployment. - Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,4,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewGameServerDeploymentRolloutResponse) Reset() { - *x = PreviewGameServerDeploymentRolloutResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewGameServerDeploymentRolloutResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewGameServerDeploymentRolloutResponse) ProtoMessage() {} - -func (x *PreviewGameServerDeploymentRolloutResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewGameServerDeploymentRolloutResponse.ProtoReflect.Descriptor instead. -func (*PreviewGameServerDeploymentRolloutResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{14} -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetUnavailable() []string { - if x != nil { - return x.Unavailable - } - return nil -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewGameServerDeploymentRolloutResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// The game server cluster changes made by the game server deployment. -type FetchDeploymentStateResponse_DeployedClusterState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the cluster. - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - // The details about the Agones fleets and autoscalers created in the - // game server cluster. - FleetDetails []*DeployedFleetDetails `protobuf:"bytes,2,rep,name=fleet_details,json=fleetDetails,proto3" json:"fleet_details,omitempty"` -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) Reset() { - *x = FetchDeploymentStateResponse_DeployedClusterState{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FetchDeploymentStateResponse_DeployedClusterState) ProtoMessage() {} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use FetchDeploymentStateResponse_DeployedClusterState.ProtoReflect.Descriptor instead. -func (*FetchDeploymentStateResponse_DeployedClusterState) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP(), []int{9, 0} -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) GetCluster() string { - if x != nil { - return x.Cluster - } - return "" -} - -func (x *FetchDeploymentStateResponse_DeployedClusterState) GetFleetDetails() []*DeployedFleetDetails { - if x != nil { - return x.FleetDetails - } - return nil -} - -var File_google_cloud_gaming_v1beta_game_server_deployments_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDesc = []byte{ - 0x0a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, - 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf7, - 0x01, 0x0a, 0x20, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x12, 0x30, 0x67, 0x61, 0x6d, - 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, - 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, - 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, - 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0xd7, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, - 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, - 0x0a, 0x17, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x15, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, 0x6c, 0x65, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0x6e, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x22, 0x75, 0x0a, 0x25, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, - 0x32, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x8c, 0x02, 0x0a, 0x21, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x50, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x12, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x6b, 0x0a, 0x16, 0x67, - 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x71, 0x0a, 0x21, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, - 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, - 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xd2, 0x01, 0x0a, 0x21, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x6b, 0x0a, 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x14, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, - 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, - 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, - 0x22, 0xc4, 0x01, 0x0a, 0x28, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, - 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x56, 0x0a, - 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, - 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x6f, - 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x36, 0x0a, 0x1b, 0x46, 0x65, 0x74, 0x63, 0x68, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0xbe, 0x02, 0x0a, 0x1c, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x72, 0x0a, 0x0d, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, - 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, - 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x87, 0x01, 0x0a, 0x14, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x65, 0x64, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x12, 0x55, 0x0a, 0x0d, 0x66, 0x6c, 0x65, - 0x65, 0x74, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x64, 0x46, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x52, 0x0c, 0x66, 0x6c, 0x65, 0x65, 0x74, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, - 0x22, 0xf9, 0x03, 0x0a, 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, - 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, - 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x54, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, - 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x81, 0x01, 0xea, 0x41, 0x7e, 0x0a, 0x30, - 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x4a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, - 0x7b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x22, 0xaf, 0x01, 0x0a, - 0x18, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x54, 0x0a, 0x0f, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x5f, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x48, 0x00, 0x52, - 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, - 0x27, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x73, 0x65, 0x6c, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x22, 0x91, - 0x04, 0x0a, 0x1b, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x5f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x12, 0x75, 0x0a, 0x1c, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, - 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, - 0x19, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, - 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x3a, 0x91, - 0x01, 0xea, 0x41, 0x8d, 0x01, 0x0a, 0x37, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x52, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, - 0x75, 0x74, 0x22, 0x89, 0x02, 0x0a, 0x29, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x56, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xae, - 0x01, 0x0a, 0x2a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, - 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, - 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, - 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, - 0x74, 0x61, 0x67, 0x12, 0x4a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x65, 0x52, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, - 0x77, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, - 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescData = file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDesc -) - -func file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescData) - }) - return file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDescData -} - -var file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes = make([]protoimpl.MessageInfo, 17) -var file_google_cloud_gaming_v1beta_game_server_deployments_proto_goTypes = []interface{}{ - (*ListGameServerDeploymentsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerDeploymentsRequest - (*ListGameServerDeploymentsResponse)(nil), // 1: google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse - (*GetGameServerDeploymentRequest)(nil), // 2: google.cloud.gaming.v1beta.GetGameServerDeploymentRequest - (*GetGameServerDeploymentRolloutRequest)(nil), // 3: google.cloud.gaming.v1beta.GetGameServerDeploymentRolloutRequest - (*CreateGameServerDeploymentRequest)(nil), // 4: google.cloud.gaming.v1beta.CreateGameServerDeploymentRequest - (*DeleteGameServerDeploymentRequest)(nil), // 5: google.cloud.gaming.v1beta.DeleteGameServerDeploymentRequest - (*UpdateGameServerDeploymentRequest)(nil), // 6: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRequest - (*UpdateGameServerDeploymentRolloutRequest)(nil), // 7: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRolloutRequest - (*FetchDeploymentStateRequest)(nil), // 8: google.cloud.gaming.v1beta.FetchDeploymentStateRequest - (*FetchDeploymentStateResponse)(nil), // 9: google.cloud.gaming.v1beta.FetchDeploymentStateResponse - (*GameServerDeployment)(nil), // 10: google.cloud.gaming.v1beta.GameServerDeployment - (*GameServerConfigOverride)(nil), // 11: google.cloud.gaming.v1beta.GameServerConfigOverride - (*GameServerDeploymentRollout)(nil), // 12: google.cloud.gaming.v1beta.GameServerDeploymentRollout - (*PreviewGameServerDeploymentRolloutRequest)(nil), // 13: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest - (*PreviewGameServerDeploymentRolloutResponse)(nil), // 14: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse - (*FetchDeploymentStateResponse_DeployedClusterState)(nil), // 15: google.cloud.gaming.v1beta.FetchDeploymentStateResponse.DeployedClusterState - nil, // 16: google.cloud.gaming.v1beta.GameServerDeployment.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 17: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 18: google.protobuf.Timestamp - (*RealmSelector)(nil), // 19: google.cloud.gaming.v1beta.RealmSelector - (*TargetState)(nil), // 20: google.cloud.gaming.v1beta.TargetState - (*DeployedFleetDetails)(nil), // 21: google.cloud.gaming.v1beta.DeployedFleetDetails -} -var file_google_cloud_gaming_v1beta_game_server_deployments_proto_depIdxs = []int32{ - 10, // 0: google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse.game_server_deployments:type_name -> google.cloud.gaming.v1beta.GameServerDeployment - 10, // 1: google.cloud.gaming.v1beta.CreateGameServerDeploymentRequest.game_server_deployment:type_name -> google.cloud.gaming.v1beta.GameServerDeployment - 10, // 2: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRequest.game_server_deployment:type_name -> google.cloud.gaming.v1beta.GameServerDeployment - 17, // 3: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRequest.update_mask:type_name -> google.protobuf.FieldMask - 12, // 4: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRolloutRequest.rollout:type_name -> google.cloud.gaming.v1beta.GameServerDeploymentRollout - 17, // 5: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRolloutRequest.update_mask:type_name -> google.protobuf.FieldMask - 15, // 6: google.cloud.gaming.v1beta.FetchDeploymentStateResponse.cluster_state:type_name -> google.cloud.gaming.v1beta.FetchDeploymentStateResponse.DeployedClusterState - 18, // 7: google.cloud.gaming.v1beta.GameServerDeployment.create_time:type_name -> google.protobuf.Timestamp - 18, // 8: google.cloud.gaming.v1beta.GameServerDeployment.update_time:type_name -> google.protobuf.Timestamp - 16, // 9: google.cloud.gaming.v1beta.GameServerDeployment.labels:type_name -> google.cloud.gaming.v1beta.GameServerDeployment.LabelsEntry - 19, // 10: google.cloud.gaming.v1beta.GameServerConfigOverride.realms_selector:type_name -> google.cloud.gaming.v1beta.RealmSelector - 18, // 11: google.cloud.gaming.v1beta.GameServerDeploymentRollout.create_time:type_name -> google.protobuf.Timestamp - 18, // 12: google.cloud.gaming.v1beta.GameServerDeploymentRollout.update_time:type_name -> google.protobuf.Timestamp - 11, // 13: google.cloud.gaming.v1beta.GameServerDeploymentRollout.game_server_config_overrides:type_name -> google.cloud.gaming.v1beta.GameServerConfigOverride - 12, // 14: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest.rollout:type_name -> google.cloud.gaming.v1beta.GameServerDeploymentRollout - 17, // 15: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest.update_mask:type_name -> google.protobuf.FieldMask - 18, // 16: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest.preview_time:type_name -> google.protobuf.Timestamp - 20, // 17: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse.target_state:type_name -> google.cloud.gaming.v1beta.TargetState - 21, // 18: google.cloud.gaming.v1beta.FetchDeploymentStateResponse.DeployedClusterState.fleet_details:type_name -> google.cloud.gaming.v1beta.DeployedFleetDetails - 19, // [19:19] is the sub-list for method output_type - 19, // [19:19] is the sub-list for method input_type - 19, // [19:19] is the sub-list for extension type_name - 19, // [19:19] is the sub-list for extension extendee - 0, // [0:19] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_deployments_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_deployments_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_deployments_proto != nil { - return - } - file_google_cloud_gaming_v1beta_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerDeploymentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListGameServerDeploymentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerDeploymentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerDeployment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerConfigOverride); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GameServerDeploymentRollout); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewGameServerDeploymentRolloutRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewGameServerDeploymentRolloutResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FetchDeploymentStateResponse_DeployedClusterState); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes[11].OneofWrappers = []interface{}{ - (*GameServerConfigOverride_RealmsSelector)(nil), - (*GameServerConfigOverride_ConfigVersion)(nil), - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDesc, - NumEnums: 0, - NumMessages: 17, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_deployments_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_deployments_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1beta_game_server_deployments_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1beta_game_server_deployments_proto = out.File - file_google_cloud_gaming_v1beta_game_server_deployments_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_deployments_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_deployments_proto_depIdxs = nil -} diff --git a/gaming/apiv1beta/gamingpb/game_server_deployments_service.pb.go b/gaming/apiv1beta/gamingpb/game_server_deployments_service.pb.go deleted file mode 100755 index ad1a411dd5ed..000000000000 --- a/gaming/apiv1beta/gamingpb/game_server_deployments_service.pb.go +++ /dev/null @@ -1,696 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/game_server_deployments_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1beta_game_server_deployments_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_rawDesc = []byte{ - 0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 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, 0x17, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, - 0x69, 0x6e, 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x32, 0xc4, 0x13, 0x0a, 0x1c, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe8, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x4e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x3f, 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, - 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0xd5, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, - 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x4c, 0xda, 0x41, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x12, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, - 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa6, 0x02, 0x0a, 0x1a, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa9, 0x01, 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x1d, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x67, 0x61, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, - 0x6d, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x57, 0x3a, 0x16, 0x67, 0x61, 0x6d, 0x65, - 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x22, 0x3d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x12, 0xf5, 0x01, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, - 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3f, 0x2a, 0x3d, 0x2f, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc2, 0x02, 0x0a, 0x1a, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, 0x65, - 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc5, 0x01, 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x22, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2c, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6e, - 0x3a, 0x16, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0x54, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2f, 0x7b, 0x67, 0x61, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x64, - 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xf2, - 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, - 0x74, 0x12, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, - 0x65, 0x74, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2e, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, - 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x22, 0x54, 0xda, - 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x12, 0x45, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, - 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, - 0x6f, 0x75, 0x74, 0x12, 0xab, 0x02, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, - 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x44, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xa0, - 0x01, 0xca, 0x41, 0x29, 0x0a, 0x14, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x13, - 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, - 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x58, 0x3a, 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, - 0x75, 0x74, 0x32, 0x4d, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, - 0x6c, 0x6f, 0x75, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, - 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, - 0x74, 0x12, 0x9b, 0x02, 0x0a, 0x22, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x46, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x47, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, - 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x3a, - 0x07, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x32, 0x55, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2f, 0x7b, 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, - 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, - 0x72, 0x6f, 0x6c, 0x6c, 0x6f, 0x75, 0x74, 0x3a, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, - 0xe8, 0x01, 0x0a, 0x14, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, - 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x46, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x46, - 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x57, 0x3a, 0x01, 0x2a, 0x22, 0x52, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, - 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, - 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x67, 0x61, 0x6d, - 0x65, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, - 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x66, 0x65, 0x74, 0x63, 0x68, 0x44, 0x65, 0x70, 0x6c, 0x6f, - 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x1a, 0x4f, 0xca, 0x41, 0x1b, 0x67, - 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, 0x74, - 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x77, 0x0a, 0x1e, 0x63, - 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, 0x01, 0x5a, - 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_goTypes = []interface{}{ - (*ListGameServerDeploymentsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListGameServerDeploymentsRequest - (*GetGameServerDeploymentRequest)(nil), // 1: google.cloud.gaming.v1beta.GetGameServerDeploymentRequest - (*CreateGameServerDeploymentRequest)(nil), // 2: google.cloud.gaming.v1beta.CreateGameServerDeploymentRequest - (*DeleteGameServerDeploymentRequest)(nil), // 3: google.cloud.gaming.v1beta.DeleteGameServerDeploymentRequest - (*UpdateGameServerDeploymentRequest)(nil), // 4: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRequest - (*GetGameServerDeploymentRolloutRequest)(nil), // 5: google.cloud.gaming.v1beta.GetGameServerDeploymentRolloutRequest - (*UpdateGameServerDeploymentRolloutRequest)(nil), // 6: google.cloud.gaming.v1beta.UpdateGameServerDeploymentRolloutRequest - (*PreviewGameServerDeploymentRolloutRequest)(nil), // 7: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest - (*FetchDeploymentStateRequest)(nil), // 8: google.cloud.gaming.v1beta.FetchDeploymentStateRequest - (*ListGameServerDeploymentsResponse)(nil), // 9: google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse - (*GameServerDeployment)(nil), // 10: google.cloud.gaming.v1beta.GameServerDeployment - (*longrunningpb.Operation)(nil), // 11: google.longrunning.Operation - (*GameServerDeploymentRollout)(nil), // 12: google.cloud.gaming.v1beta.GameServerDeploymentRollout - (*PreviewGameServerDeploymentRolloutResponse)(nil), // 13: google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse - (*FetchDeploymentStateResponse)(nil), // 14: google.cloud.gaming.v1beta.FetchDeploymentStateResponse -} -var file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments:input_type -> google.cloud.gaming.v1beta.ListGameServerDeploymentsRequest - 1, // 1: google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment:input_type -> google.cloud.gaming.v1beta.GetGameServerDeploymentRequest - 2, // 2: google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment:input_type -> google.cloud.gaming.v1beta.CreateGameServerDeploymentRequest - 3, // 3: google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment:input_type -> google.cloud.gaming.v1beta.DeleteGameServerDeploymentRequest - 4, // 4: google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment:input_type -> google.cloud.gaming.v1beta.UpdateGameServerDeploymentRequest - 5, // 5: google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1beta.GetGameServerDeploymentRolloutRequest - 6, // 6: google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1beta.UpdateGameServerDeploymentRolloutRequest - 7, // 7: google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout:input_type -> google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutRequest - 8, // 8: google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState:input_type -> google.cloud.gaming.v1beta.FetchDeploymentStateRequest - 9, // 9: google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments:output_type -> google.cloud.gaming.v1beta.ListGameServerDeploymentsResponse - 10, // 10: google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment:output_type -> google.cloud.gaming.v1beta.GameServerDeployment - 11, // 11: google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment:output_type -> google.longrunning.Operation - 11, // 12: google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment:output_type -> google.longrunning.Operation - 11, // 13: google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment:output_type -> google.longrunning.Operation - 12, // 14: google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout:output_type -> google.cloud.gaming.v1beta.GameServerDeploymentRollout - 11, // 15: google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout:output_type -> google.longrunning.Operation - 13, // 16: google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout:output_type -> google.cloud.gaming.v1beta.PreviewGameServerDeploymentRolloutResponse - 14, // 17: google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState:output_type -> google.cloud.gaming.v1beta.FetchDeploymentStateResponse - 9, // [9:18] is the sub-list for method output_type - 0, // [0:9] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_init() } -func file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_init() { - if File_google_cloud_gaming_v1beta_game_server_deployments_service_proto != nil { - return - } - file_google_cloud_gaming_v1beta_game_server_deployments_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1beta_game_server_deployments_service_proto = out.File - file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_goTypes = nil - file_google_cloud_gaming_v1beta_game_server_deployments_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// GameServerDeploymentsServiceClient is the client API for GameServerDeploymentsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type GameServerDeploymentsServiceClient interface { - // Lists game server deployments in a given project and location. - ListGameServerDeployments(ctx context.Context, in *ListGameServerDeploymentsRequest, opts ...grpc.CallOption) (*ListGameServerDeploymentsResponse, error) - // Gets details of a single game server deployment. - GetGameServerDeployment(ctx context.Context, in *GetGameServerDeploymentRequest, opts ...grpc.CallOption) (*GameServerDeployment, error) - // Creates a new game server deployment in a given project and location. - CreateGameServerDeployment(ctx context.Context, in *CreateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single game server deployment. - DeleteGameServerDeployment(ctx context.Context, in *DeleteGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Patches a game server deployment. - UpdateGameServerDeployment(ctx context.Context, in *UpdateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Gets details a single game server deployment rollout. - GetGameServerDeploymentRollout(ctx context.Context, in *GetGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*GameServerDeploymentRollout, error) - // Patches a single game server deployment rollout. - // The method will not return an error if the update does not affect any - // existing realms. For example - if the default_game_server_config is changed - // but all existing realms use the override, that is valid. Similarly, if a - // non existing realm is explicitly called out in game_server_config_overrides - // field, that will also not result in an error. - UpdateGameServerDeploymentRollout(ctx context.Context, in *UpdateGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews the game server deployment rollout. This API does not mutate the - // rollout resource. - PreviewGameServerDeploymentRollout(ctx context.Context, in *PreviewGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*PreviewGameServerDeploymentRolloutResponse, error) - // Retrieves information about the current state of the game server - // deployment. Gathers all the Agones fleets and Agones autoscalers, - // including fleets running an older version of the game server deployment. - FetchDeploymentState(ctx context.Context, in *FetchDeploymentStateRequest, opts ...grpc.CallOption) (*FetchDeploymentStateResponse, error) -} - -type gameServerDeploymentsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewGameServerDeploymentsServiceClient(cc grpc.ClientConnInterface) GameServerDeploymentsServiceClient { - return &gameServerDeploymentsServiceClient{cc} -} - -func (c *gameServerDeploymentsServiceClient) ListGameServerDeployments(ctx context.Context, in *ListGameServerDeploymentsRequest, opts ...grpc.CallOption) (*ListGameServerDeploymentsResponse, error) { - out := new(ListGameServerDeploymentsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/ListGameServerDeployments", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) GetGameServerDeployment(ctx context.Context, in *GetGameServerDeploymentRequest, opts ...grpc.CallOption) (*GameServerDeployment, error) { - out := new(GameServerDeployment) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/GetGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) CreateGameServerDeployment(ctx context.Context, in *CreateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/CreateGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) DeleteGameServerDeployment(ctx context.Context, in *DeleteGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/DeleteGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) UpdateGameServerDeployment(ctx context.Context, in *UpdateGameServerDeploymentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/UpdateGameServerDeployment", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) GetGameServerDeploymentRollout(ctx context.Context, in *GetGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*GameServerDeploymentRollout, error) { - out := new(GameServerDeploymentRollout) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/GetGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) UpdateGameServerDeploymentRollout(ctx context.Context, in *UpdateGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/UpdateGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) PreviewGameServerDeploymentRollout(ctx context.Context, in *PreviewGameServerDeploymentRolloutRequest, opts ...grpc.CallOption) (*PreviewGameServerDeploymentRolloutResponse, error) { - out := new(PreviewGameServerDeploymentRolloutResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/PreviewGameServerDeploymentRollout", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *gameServerDeploymentsServiceClient) FetchDeploymentState(ctx context.Context, in *FetchDeploymentStateRequest, opts ...grpc.CallOption) (*FetchDeploymentStateResponse, error) { - out := new(FetchDeploymentStateResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.GameServerDeploymentsService/FetchDeploymentState", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// GameServerDeploymentsServiceServer is the server API for GameServerDeploymentsService service. -type GameServerDeploymentsServiceServer interface { - // Lists game server deployments in a given project and location. - ListGameServerDeployments(context.Context, *ListGameServerDeploymentsRequest) (*ListGameServerDeploymentsResponse, error) - // Gets details of a single game server deployment. - GetGameServerDeployment(context.Context, *GetGameServerDeploymentRequest) (*GameServerDeployment, error) - // Creates a new game server deployment in a given project and location. - CreateGameServerDeployment(context.Context, *CreateGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Deletes a single game server deployment. - DeleteGameServerDeployment(context.Context, *DeleteGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Patches a game server deployment. - UpdateGameServerDeployment(context.Context, *UpdateGameServerDeploymentRequest) (*longrunningpb.Operation, error) - // Gets details a single game server deployment rollout. - GetGameServerDeploymentRollout(context.Context, *GetGameServerDeploymentRolloutRequest) (*GameServerDeploymentRollout, error) - // Patches a single game server deployment rollout. - // The method will not return an error if the update does not affect any - // existing realms. For example - if the default_game_server_config is changed - // but all existing realms use the override, that is valid. Similarly, if a - // non existing realm is explicitly called out in game_server_config_overrides - // field, that will also not result in an error. - UpdateGameServerDeploymentRollout(context.Context, *UpdateGameServerDeploymentRolloutRequest) (*longrunningpb.Operation, error) - // Previews the game server deployment rollout. This API does not mutate the - // rollout resource. - PreviewGameServerDeploymentRollout(context.Context, *PreviewGameServerDeploymentRolloutRequest) (*PreviewGameServerDeploymentRolloutResponse, error) - // Retrieves information about the current state of the game server - // deployment. Gathers all the Agones fleets and Agones autoscalers, - // including fleets running an older version of the game server deployment. - FetchDeploymentState(context.Context, *FetchDeploymentStateRequest) (*FetchDeploymentStateResponse, error) -} - -// UnimplementedGameServerDeploymentsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedGameServerDeploymentsServiceServer struct { -} - -func (*UnimplementedGameServerDeploymentsServiceServer) ListGameServerDeployments(context.Context, *ListGameServerDeploymentsRequest) (*ListGameServerDeploymentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListGameServerDeployments not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) GetGameServerDeployment(context.Context, *GetGameServerDeploymentRequest) (*GameServerDeployment, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) CreateGameServerDeployment(context.Context, *CreateGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) DeleteGameServerDeployment(context.Context, *DeleteGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) UpdateGameServerDeployment(context.Context, *UpdateGameServerDeploymentRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerDeployment not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) GetGameServerDeploymentRollout(context.Context, *GetGameServerDeploymentRolloutRequest) (*GameServerDeploymentRollout, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) UpdateGameServerDeploymentRollout(context.Context, *UpdateGameServerDeploymentRolloutRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) PreviewGameServerDeploymentRollout(context.Context, *PreviewGameServerDeploymentRolloutRequest) (*PreviewGameServerDeploymentRolloutResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewGameServerDeploymentRollout not implemented") -} -func (*UnimplementedGameServerDeploymentsServiceServer) FetchDeploymentState(context.Context, *FetchDeploymentStateRequest) (*FetchDeploymentStateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FetchDeploymentState not implemented") -} - -func RegisterGameServerDeploymentsServiceServer(s *grpc.Server, srv GameServerDeploymentsServiceServer) { - s.RegisterService(&_GameServerDeploymentsService_serviceDesc, srv) -} - -func _GameServerDeploymentsService_ListGameServerDeployments_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListGameServerDeploymentsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).ListGameServerDeployments(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/ListGameServerDeployments", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).ListGameServerDeployments(ctx, req.(*ListGameServerDeploymentsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_GetGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/GetGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeployment(ctx, req.(*GetGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_CreateGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).CreateGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/CreateGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).CreateGameServerDeployment(ctx, req.(*CreateGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_DeleteGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).DeleteGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/DeleteGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).DeleteGameServerDeployment(ctx, req.(*DeleteGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_UpdateGameServerDeployment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerDeploymentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeployment(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/UpdateGameServerDeployment", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeployment(ctx, req.(*UpdateGameServerDeploymentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_GetGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/GetGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).GetGameServerDeploymentRollout(ctx, req.(*GetGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_UpdateGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/UpdateGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).UpdateGameServerDeploymentRollout(ctx, req.(*UpdateGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_PreviewGameServerDeploymentRollout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewGameServerDeploymentRolloutRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).PreviewGameServerDeploymentRollout(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/PreviewGameServerDeploymentRollout", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).PreviewGameServerDeploymentRollout(ctx, req.(*PreviewGameServerDeploymentRolloutRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _GameServerDeploymentsService_FetchDeploymentState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FetchDeploymentStateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(GameServerDeploymentsServiceServer).FetchDeploymentState(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.GameServerDeploymentsService/FetchDeploymentState", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(GameServerDeploymentsServiceServer).FetchDeploymentState(ctx, req.(*FetchDeploymentStateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _GameServerDeploymentsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1beta.GameServerDeploymentsService", - HandlerType: (*GameServerDeploymentsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListGameServerDeployments", - Handler: _GameServerDeploymentsService_ListGameServerDeployments_Handler, - }, - { - MethodName: "GetGameServerDeployment", - Handler: _GameServerDeploymentsService_GetGameServerDeployment_Handler, - }, - { - MethodName: "CreateGameServerDeployment", - Handler: _GameServerDeploymentsService_CreateGameServerDeployment_Handler, - }, - { - MethodName: "DeleteGameServerDeployment", - Handler: _GameServerDeploymentsService_DeleteGameServerDeployment_Handler, - }, - { - MethodName: "UpdateGameServerDeployment", - Handler: _GameServerDeploymentsService_UpdateGameServerDeployment_Handler, - }, - { - MethodName: "GetGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_GetGameServerDeploymentRollout_Handler, - }, - { - MethodName: "UpdateGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_UpdateGameServerDeploymentRollout_Handler, - }, - { - MethodName: "PreviewGameServerDeploymentRollout", - Handler: _GameServerDeploymentsService_PreviewGameServerDeploymentRollout_Handler, - }, - { - MethodName: "FetchDeploymentState", - Handler: _GameServerDeploymentsService_FetchDeploymentState_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1beta/game_server_deployments_service.proto", -} diff --git a/gaming/apiv1beta/gamingpb/realms.pb.go b/gaming/apiv1beta/gamingpb/realms.pb.go deleted file mode 100755 index e640959eeb00..000000000000 --- a/gaming/apiv1beta/gamingpb/realms.pb.go +++ /dev/null @@ -1,987 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/realms.proto - -package gamingpb - -import ( - reflect "reflect" - sync "sync" - - _ "google.golang.org/genproto/googleapis/api/annotations" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Request message for RealmsService.ListRealms. -type ListRealmsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Optional. The maximum number of items to return. If unspecified, server - // will pick an appropriate default. Server may return fewer items than - // requested. A caller should only rely on response's - // [next_page_token][google.cloud.gaming.v1beta.ListRealmsResponse.next_page_token] - // to determine if there are more realms left to be queried. - PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - // Optional. The next_page_token value returned from a previous List request, - // if any. - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - // Optional. The filter to apply to list results. - Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` - // Optional. Specifies the ordering of results following syntax at - // https://cloud.google.com/apis/design/design_patterns#sorting_order. - OrderBy string `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` -} - -func (x *ListRealmsRequest) Reset() { - *x = ListRealmsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRealmsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRealmsRequest) ProtoMessage() {} - -func (x *ListRealmsRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_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 ListRealmsRequest.ProtoReflect.Descriptor instead. -func (*ListRealmsRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{0} -} - -func (x *ListRealmsRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *ListRealmsRequest) GetPageSize() int32 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListRealmsRequest) GetPageToken() string { - if x != nil { - return x.PageToken - } - return "" -} - -func (x *ListRealmsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *ListRealmsRequest) GetOrderBy() string { - if x != nil { - return x.OrderBy - } - return "" -} - -// Response message for RealmsService.ListRealms. -type ListRealmsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The list of realms. - Realms []*Realm `protobuf:"bytes,1,rep,name=realms,proto3" json:"realms,omitempty"` - // Token to retrieve the next page of results, or empty if there are no more - // results in the list. - NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` - // List of locations that could not be reached. - Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"` -} - -func (x *ListRealmsResponse) Reset() { - *x = ListRealmsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListRealmsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListRealmsResponse) ProtoMessage() {} - -func (x *ListRealmsResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_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 ListRealmsResponse.ProtoReflect.Descriptor instead. -func (*ListRealmsResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{1} -} - -func (x *ListRealmsResponse) GetRealms() []*Realm { - if x != nil { - return x.Realms - } - return nil -} - -func (x *ListRealmsResponse) GetNextPageToken() string { - if x != nil { - return x.NextPageToken - } - return "" -} - -func (x *ListRealmsResponse) GetUnreachable() []string { - if x != nil { - return x.Unreachable - } - return nil -} - -// Request message for RealmsService.GetRealm. -type GetRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the realm to retrieve. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *GetRealmRequest) Reset() { - *x = GetRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetRealmRequest) ProtoMessage() {} - -func (x *GetRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_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 GetRealmRequest.ProtoReflect.Descriptor instead. -func (*GetRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{2} -} - -func (x *GetRealmRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for RealmsService.CreateRealm. -type CreateRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The parent resource name. Uses the form: - // `projects/{project}/locations/{location}`. - Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` - // Required. The ID of the realm resource to be created. - RealmId string `protobuf:"bytes,2,opt,name=realm_id,json=realmId,proto3" json:"realm_id,omitempty"` - // Required. The realm resource to be created. - Realm *Realm `protobuf:"bytes,3,opt,name=realm,proto3" json:"realm,omitempty"` -} - -func (x *CreateRealmRequest) Reset() { - *x = CreateRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateRealmRequest) ProtoMessage() {} - -func (x *CreateRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_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 CreateRealmRequest.ProtoReflect.Descriptor instead. -func (*CreateRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateRealmRequest) GetParent() string { - if x != nil { - return x.Parent - } - return "" -} - -func (x *CreateRealmRequest) GetRealmId() string { - if x != nil { - return x.RealmId - } - return "" -} - -func (x *CreateRealmRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -// Request message for RealmsService.DeleteRealm. -type DeleteRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The name of the realm to delete. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm}`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` -} - -func (x *DeleteRealmRequest) Reset() { - *x = DeleteRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteRealmRequest) ProtoMessage() {} - -func (x *DeleteRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_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 DeleteRealmRequest.ProtoReflect.Descriptor instead. -func (*DeleteRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteRealmRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -// Request message for RealmsService.UpdateRealm. -type UpdateRealmRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm *Realm `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"` - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` -} - -func (x *UpdateRealmRequest) Reset() { - *x = UpdateRealmRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateRealmRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateRealmRequest) ProtoMessage() {} - -func (x *UpdateRealmRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateRealmRequest.ProtoReflect.Descriptor instead. -func (*UpdateRealmRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{5} -} - -func (x *UpdateRealmRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -func (x *UpdateRealmRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -// Request message for RealmsService.PreviewRealmUpdate. -type PreviewRealmUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Required. The realm to be updated. - // Only fields specified in update_mask are updated. - Realm *Realm `protobuf:"bytes,1,opt,name=realm,proto3" json:"realm,omitempty"` - // Required. The update mask applies to the resource. For the `FieldMask` - // definition, see - // - // https: - // //developers.google.com/protocol-buffers - // // /docs/reference/google.protobuf#fieldmask - UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` - // Optional. The target timestamp to compute the preview. - PreviewTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=preview_time,json=previewTime,proto3" json:"preview_time,omitempty"` -} - -func (x *PreviewRealmUpdateRequest) Reset() { - *x = PreviewRealmUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewRealmUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewRealmUpdateRequest) ProtoMessage() {} - -func (x *PreviewRealmUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewRealmUpdateRequest.ProtoReflect.Descriptor instead. -func (*PreviewRealmUpdateRequest) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{6} -} - -func (x *PreviewRealmUpdateRequest) GetRealm() *Realm { - if x != nil { - return x.Realm - } - return nil -} - -func (x *PreviewRealmUpdateRequest) GetUpdateMask() *fieldmaskpb.FieldMask { - if x != nil { - return x.UpdateMask - } - return nil -} - -func (x *PreviewRealmUpdateRequest) GetPreviewTime() *timestamppb.Timestamp { - if x != nil { - return x.PreviewTime - } - return nil -} - -// Response message for RealmsService.PreviewRealmUpdate. -type PreviewRealmUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // ETag of the realm. - Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` - // The target state. - TargetState *TargetState `protobuf:"bytes,3,opt,name=target_state,json=targetState,proto3" json:"target_state,omitempty"` -} - -func (x *PreviewRealmUpdateResponse) Reset() { - *x = PreviewRealmUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PreviewRealmUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PreviewRealmUpdateResponse) ProtoMessage() {} - -func (x *PreviewRealmUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PreviewRealmUpdateResponse.ProtoReflect.Descriptor instead. -func (*PreviewRealmUpdateResponse) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{7} -} - -func (x *PreviewRealmUpdateResponse) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *PreviewRealmUpdateResponse) GetTargetState() *TargetState { - if x != nil { - return x.TargetState - } - return nil -} - -// A realm resource. -type Realm struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The resource name of the realm. Uses the form: - // `projects/{project}/locations/{location}/realms/{realm}`. For - // example, `projects/my-project/locations/{location}/realms/my-realm`. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // Output only. The creation time. - CreateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` - // Output only. The last-modified time. - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` - // The labels associated with this realm. Each label is a key-value pair. - Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Required. Time zone where all policies targeting this realm are evaluated. - // The value of this field must be from the IANA time zone database: - // https://www.iana.org/time-zones. - TimeZone string `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` - // ETag of the resource. - Etag string `protobuf:"bytes,7,opt,name=etag,proto3" json:"etag,omitempty"` - // Human readable description of the realm. - Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` -} - -func (x *Realm) Reset() { - *x = Realm{} - if protoimpl.UnsafeEnabled { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Realm) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Realm) ProtoMessage() {} - -func (x *Realm) ProtoReflect() protoreflect.Message { - mi := &file_google_cloud_gaming_v1beta_realms_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Realm.ProtoReflect.Descriptor instead. -func (*Realm) Descriptor() ([]byte, []int) { - return file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP(), []int{8} -} - -func (x *Realm) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Realm) GetCreateTime() *timestamppb.Timestamp { - if x != nil { - return x.CreateTime - } - return nil -} - -func (x *Realm) GetUpdateTime() *timestamppb.Timestamp { - if x != nil { - return x.UpdateTime - } - return nil -} - -func (x *Realm) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *Realm) GetTimeZone() string { - if x != nil { - return x.TimeZone - } - return "" -} - -func (x *Realm) GetEtag() string { - if x != nil { - return x.Etag - } - return "" -} - -func (x *Realm) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -var File_google_cloud_gaming_v1beta_realms_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_realms_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, - 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x63, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd9, 0x01, - 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x67, 0x61, 0x6d, - 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x06, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, - 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, - 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, - 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x22, 0x99, 0x01, 0x0a, 0x12, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x39, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x52, 0x06, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, - 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, 0x68, 0x61, 0x62, - 0x6c, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x75, 0x6e, 0x72, 0x65, 0x61, 0x63, - 0x68, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x50, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x6c, - 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, - 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, - 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb5, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, - 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x29, - 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x12, 0x21, 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x12, 0x1e, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x49, - 0x64, 0x12, 0x3c, 0x0a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x22, - 0x53, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x67, 0x61, 0x6d, - 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x72, - 0x65, 0x61, 0x6c, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x42, 0x03, 0xe0, - 0x41, 0x02, 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, - 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0xdf, 0x01, 0x0a, 0x19, - 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x05, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, - 0x52, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0c, 0x70, 0x72, 0x65, - 0x76, 0x69, 0x65, 0x77, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01, - 0x52, 0x0b, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7c, 0x0a, - 0x1a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, - 0x74, 0x61, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, - 0x4a, 0x0a, 0x0c, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x0b, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x22, 0xd9, 0x03, 0x0a, 0x05, - 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, - 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x45, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x7a, 0x6f, 0x6e, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x74, 0x69, - 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61, 0x67, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a, 0x5e, 0xea, 0x41, 0x5b, 0x0a, 0x21, 0x67, 0x61, - 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, - 0x36, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, - 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x7d, 0x42, 0x77, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, - 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, - 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, 0x67, 0x61, 0x6d, 0x69, 0x6e, - 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, - 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_google_cloud_gaming_v1beta_realms_proto_rawDescOnce sync.Once - file_google_cloud_gaming_v1beta_realms_proto_rawDescData = file_google_cloud_gaming_v1beta_realms_proto_rawDesc -) - -func file_google_cloud_gaming_v1beta_realms_proto_rawDescGZIP() []byte { - file_google_cloud_gaming_v1beta_realms_proto_rawDescOnce.Do(func() { - file_google_cloud_gaming_v1beta_realms_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_gaming_v1beta_realms_proto_rawDescData) - }) - return file_google_cloud_gaming_v1beta_realms_proto_rawDescData -} - -var file_google_cloud_gaming_v1beta_realms_proto_msgTypes = make([]protoimpl.MessageInfo, 10) -var file_google_cloud_gaming_v1beta_realms_proto_goTypes = []interface{}{ - (*ListRealmsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListRealmsRequest - (*ListRealmsResponse)(nil), // 1: google.cloud.gaming.v1beta.ListRealmsResponse - (*GetRealmRequest)(nil), // 2: google.cloud.gaming.v1beta.GetRealmRequest - (*CreateRealmRequest)(nil), // 3: google.cloud.gaming.v1beta.CreateRealmRequest - (*DeleteRealmRequest)(nil), // 4: google.cloud.gaming.v1beta.DeleteRealmRequest - (*UpdateRealmRequest)(nil), // 5: google.cloud.gaming.v1beta.UpdateRealmRequest - (*PreviewRealmUpdateRequest)(nil), // 6: google.cloud.gaming.v1beta.PreviewRealmUpdateRequest - (*PreviewRealmUpdateResponse)(nil), // 7: google.cloud.gaming.v1beta.PreviewRealmUpdateResponse - (*Realm)(nil), // 8: google.cloud.gaming.v1beta.Realm - nil, // 9: google.cloud.gaming.v1beta.Realm.LabelsEntry - (*fieldmaskpb.FieldMask)(nil), // 10: google.protobuf.FieldMask - (*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp - (*TargetState)(nil), // 12: google.cloud.gaming.v1beta.TargetState -} -var file_google_cloud_gaming_v1beta_realms_proto_depIdxs = []int32{ - 8, // 0: google.cloud.gaming.v1beta.ListRealmsResponse.realms:type_name -> google.cloud.gaming.v1beta.Realm - 8, // 1: google.cloud.gaming.v1beta.CreateRealmRequest.realm:type_name -> google.cloud.gaming.v1beta.Realm - 8, // 2: google.cloud.gaming.v1beta.UpdateRealmRequest.realm:type_name -> google.cloud.gaming.v1beta.Realm - 10, // 3: google.cloud.gaming.v1beta.UpdateRealmRequest.update_mask:type_name -> google.protobuf.FieldMask - 8, // 4: google.cloud.gaming.v1beta.PreviewRealmUpdateRequest.realm:type_name -> google.cloud.gaming.v1beta.Realm - 10, // 5: google.cloud.gaming.v1beta.PreviewRealmUpdateRequest.update_mask:type_name -> google.protobuf.FieldMask - 11, // 6: google.cloud.gaming.v1beta.PreviewRealmUpdateRequest.preview_time:type_name -> google.protobuf.Timestamp - 12, // 7: google.cloud.gaming.v1beta.PreviewRealmUpdateResponse.target_state:type_name -> google.cloud.gaming.v1beta.TargetState - 11, // 8: google.cloud.gaming.v1beta.Realm.create_time:type_name -> google.protobuf.Timestamp - 11, // 9: google.cloud.gaming.v1beta.Realm.update_time:type_name -> google.protobuf.Timestamp - 9, // 10: google.cloud.gaming.v1beta.Realm.labels:type_name -> google.cloud.gaming.v1beta.Realm.LabelsEntry - 11, // [11:11] is the sub-list for method output_type - 11, // [11:11] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_realms_proto_init() } -func file_google_cloud_gaming_v1beta_realms_proto_init() { - if File_google_cloud_gaming_v1beta_realms_proto != nil { - return - } - file_google_cloud_gaming_v1beta_common_proto_init() - if !protoimpl.UnsafeEnabled { - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRealmsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListRealmsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateRealmRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewRealmUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PreviewRealmUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_google_cloud_gaming_v1beta_realms_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Realm); 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_google_cloud_gaming_v1beta_realms_proto_rawDesc, - NumEnums: 0, - NumMessages: 10, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_google_cloud_gaming_v1beta_realms_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_realms_proto_depIdxs, - MessageInfos: file_google_cloud_gaming_v1beta_realms_proto_msgTypes, - }.Build() - File_google_cloud_gaming_v1beta_realms_proto = out.File - file_google_cloud_gaming_v1beta_realms_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_realms_proto_goTypes = nil - file_google_cloud_gaming_v1beta_realms_proto_depIdxs = nil -} diff --git a/gaming/apiv1beta/gamingpb/realms_service.pb.go b/gaming/apiv1beta/gamingpb/realms_service.pb.go deleted file mode 100755 index cc80ae5d657d..000000000000 --- a/gaming/apiv1beta/gamingpb/realms_service.pb.go +++ /dev/null @@ -1,476 +0,0 @@ -// Copyright 2020 Google 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. - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.30.0 -// protoc v4.23.2 -// source: google/cloud/gaming/v1beta/realms_service.proto - -package gamingpb - -import ( - context "context" - reflect "reflect" - - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -var File_google_cloud_gaming_v1beta_realms_service_proto protoreflect.FileDescriptor - -var file_google_cloud_gaming_v1beta_realms_service_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 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, 0x17, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x23, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, - 0x67, 0x2f, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x32, 0xf7, 0x09, 0x0a, 0x0d, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0xac, 0x01, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, - 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x3f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x73, 0x12, 0x99, 0x01, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x12, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x61, 0x6c, 0x6d, - 0x22, 0x3d, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, - 0x2e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, - 0xd0, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, - 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, - 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, - 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x72, - 0xca, 0x41, 0x1a, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x15, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x2c, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x2c, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x5f, 0x69, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x37, 0x3a, 0x05, 0x72, 0x65, 0x61, - 0x6c, 0x6d, 0x22, 0x2e, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, - 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, - 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x61, 0x6c, - 0x6d, 0x73, 0x12, 0xc8, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x61, - 0x6c, 0x6d, 0x12, 0x2e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, - 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, - 0x72, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x6a, 0xca, 0x41, 0x2a, 0x0a, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x11, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x2a, 0x2e, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xd2, 0x01, - 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x2e, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, - 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x6c, 0x6f, 0x6e, 0x67, 0x72, 0x75, 0x6e, 0x6e, 0x69, - 0x6e, 0x67, 0x2e, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x74, 0xca, 0x41, - 0x1a, 0x0a, 0x05, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x12, 0x11, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xda, 0x41, 0x11, 0x72, 0x65, - 0x61, 0x6c, 0x6d, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x3d, 0x3a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x32, 0x34, 0x2f, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x2e, 0x6e, 0x61, 0x6d, - 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, - 0x2a, 0x7d, 0x12, 0xd6, 0x01, 0x0a, 0x12, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, - 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x51, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4b, - 0x3a, 0x05, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x32, 0x42, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x2f, 0x7b, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x70, 0x72, - 0x65, 0x76, 0x69, 0x65, 0x77, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x1a, 0x4f, 0xca, 0x41, 0x1b, - 0x67, 0x61, 0x6d, 0x65, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x2e, 0x68, 0x74, - 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x77, 0x0a, 0x1e, - 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, - 0x2e, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x50, 0x01, - 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x2f, 0x61, 0x70, 0x69, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0x3b, - 0x67, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x70, 0x62, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x47, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x5c, 0x56, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var file_google_cloud_gaming_v1beta_realms_service_proto_goTypes = []interface{}{ - (*ListRealmsRequest)(nil), // 0: google.cloud.gaming.v1beta.ListRealmsRequest - (*GetRealmRequest)(nil), // 1: google.cloud.gaming.v1beta.GetRealmRequest - (*CreateRealmRequest)(nil), // 2: google.cloud.gaming.v1beta.CreateRealmRequest - (*DeleteRealmRequest)(nil), // 3: google.cloud.gaming.v1beta.DeleteRealmRequest - (*UpdateRealmRequest)(nil), // 4: google.cloud.gaming.v1beta.UpdateRealmRequest - (*PreviewRealmUpdateRequest)(nil), // 5: google.cloud.gaming.v1beta.PreviewRealmUpdateRequest - (*ListRealmsResponse)(nil), // 6: google.cloud.gaming.v1beta.ListRealmsResponse - (*Realm)(nil), // 7: google.cloud.gaming.v1beta.Realm - (*longrunningpb.Operation)(nil), // 8: google.longrunning.Operation - (*PreviewRealmUpdateResponse)(nil), // 9: google.cloud.gaming.v1beta.PreviewRealmUpdateResponse -} -var file_google_cloud_gaming_v1beta_realms_service_proto_depIdxs = []int32{ - 0, // 0: google.cloud.gaming.v1beta.RealmsService.ListRealms:input_type -> google.cloud.gaming.v1beta.ListRealmsRequest - 1, // 1: google.cloud.gaming.v1beta.RealmsService.GetRealm:input_type -> google.cloud.gaming.v1beta.GetRealmRequest - 2, // 2: google.cloud.gaming.v1beta.RealmsService.CreateRealm:input_type -> google.cloud.gaming.v1beta.CreateRealmRequest - 3, // 3: google.cloud.gaming.v1beta.RealmsService.DeleteRealm:input_type -> google.cloud.gaming.v1beta.DeleteRealmRequest - 4, // 4: google.cloud.gaming.v1beta.RealmsService.UpdateRealm:input_type -> google.cloud.gaming.v1beta.UpdateRealmRequest - 5, // 5: google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate:input_type -> google.cloud.gaming.v1beta.PreviewRealmUpdateRequest - 6, // 6: google.cloud.gaming.v1beta.RealmsService.ListRealms:output_type -> google.cloud.gaming.v1beta.ListRealmsResponse - 7, // 7: google.cloud.gaming.v1beta.RealmsService.GetRealm:output_type -> google.cloud.gaming.v1beta.Realm - 8, // 8: google.cloud.gaming.v1beta.RealmsService.CreateRealm:output_type -> google.longrunning.Operation - 8, // 9: google.cloud.gaming.v1beta.RealmsService.DeleteRealm:output_type -> google.longrunning.Operation - 8, // 10: google.cloud.gaming.v1beta.RealmsService.UpdateRealm:output_type -> google.longrunning.Operation - 9, // 11: google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate:output_type -> google.cloud.gaming.v1beta.PreviewRealmUpdateResponse - 6, // [6:12] is the sub-list for method output_type - 0, // [0:6] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_google_cloud_gaming_v1beta_realms_service_proto_init() } -func file_google_cloud_gaming_v1beta_realms_service_proto_init() { - if File_google_cloud_gaming_v1beta_realms_service_proto != nil { - return - } - file_google_cloud_gaming_v1beta_realms_proto_init() - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_google_cloud_gaming_v1beta_realms_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 0, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_google_cloud_gaming_v1beta_realms_service_proto_goTypes, - DependencyIndexes: file_google_cloud_gaming_v1beta_realms_service_proto_depIdxs, - }.Build() - File_google_cloud_gaming_v1beta_realms_service_proto = out.File - file_google_cloud_gaming_v1beta_realms_service_proto_rawDesc = nil - file_google_cloud_gaming_v1beta_realms_service_proto_goTypes = nil - file_google_cloud_gaming_v1beta_realms_service_proto_depIdxs = nil -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConnInterface - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 - -// RealmsServiceClient is the client API for RealmsService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type RealmsServiceClient interface { - // Lists realms in a given project and location. - ListRealms(ctx context.Context, in *ListRealmsRequest, opts ...grpc.CallOption) (*ListRealmsResponse, error) - // Gets details of a single realm. - GetRealm(ctx context.Context, in *GetRealmRequest, opts ...grpc.CallOption) (*Realm, error) - // Creates a new realm in a given project and location. - CreateRealm(ctx context.Context, in *CreateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Deletes a single realm. - DeleteRealm(ctx context.Context, in *DeleteRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Patches a single realm. - UpdateRealm(ctx context.Context, in *UpdateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) - // Previews patches to a single realm. - PreviewRealmUpdate(ctx context.Context, in *PreviewRealmUpdateRequest, opts ...grpc.CallOption) (*PreviewRealmUpdateResponse, error) -} - -type realmsServiceClient struct { - cc grpc.ClientConnInterface -} - -func NewRealmsServiceClient(cc grpc.ClientConnInterface) RealmsServiceClient { - return &realmsServiceClient{cc} -} - -func (c *realmsServiceClient) ListRealms(ctx context.Context, in *ListRealmsRequest, opts ...grpc.CallOption) (*ListRealmsResponse, error) { - out := new(ListRealmsResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/ListRealms", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) GetRealm(ctx context.Context, in *GetRealmRequest, opts ...grpc.CallOption) (*Realm, error) { - out := new(Realm) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/GetRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) CreateRealm(ctx context.Context, in *CreateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/CreateRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) DeleteRealm(ctx context.Context, in *DeleteRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/DeleteRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) UpdateRealm(ctx context.Context, in *UpdateRealmRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { - out := new(longrunningpb.Operation) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/UpdateRealm", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *realmsServiceClient) PreviewRealmUpdate(ctx context.Context, in *PreviewRealmUpdateRequest, opts ...grpc.CallOption) (*PreviewRealmUpdateResponse, error) { - out := new(PreviewRealmUpdateResponse) - err := c.cc.Invoke(ctx, "/google.cloud.gaming.v1beta.RealmsService/PreviewRealmUpdate", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// RealmsServiceServer is the server API for RealmsService service. -type RealmsServiceServer interface { - // Lists realms in a given project and location. - ListRealms(context.Context, *ListRealmsRequest) (*ListRealmsResponse, error) - // Gets details of a single realm. - GetRealm(context.Context, *GetRealmRequest) (*Realm, error) - // Creates a new realm in a given project and location. - CreateRealm(context.Context, *CreateRealmRequest) (*longrunningpb.Operation, error) - // Deletes a single realm. - DeleteRealm(context.Context, *DeleteRealmRequest) (*longrunningpb.Operation, error) - // Patches a single realm. - UpdateRealm(context.Context, *UpdateRealmRequest) (*longrunningpb.Operation, error) - // Previews patches to a single realm. - PreviewRealmUpdate(context.Context, *PreviewRealmUpdateRequest) (*PreviewRealmUpdateResponse, error) -} - -// UnimplementedRealmsServiceServer can be embedded to have forward compatible implementations. -type UnimplementedRealmsServiceServer struct { -} - -func (*UnimplementedRealmsServiceServer) ListRealms(context.Context, *ListRealmsRequest) (*ListRealmsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListRealms not implemented") -} -func (*UnimplementedRealmsServiceServer) GetRealm(context.Context, *GetRealmRequest) (*Realm, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) CreateRealm(context.Context, *CreateRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) DeleteRealm(context.Context, *DeleteRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) UpdateRealm(context.Context, *UpdateRealmRequest) (*longrunningpb.Operation, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateRealm not implemented") -} -func (*UnimplementedRealmsServiceServer) PreviewRealmUpdate(context.Context, *PreviewRealmUpdateRequest) (*PreviewRealmUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PreviewRealmUpdate not implemented") -} - -func RegisterRealmsServiceServer(s *grpc.Server, srv RealmsServiceServer) { - s.RegisterService(&_RealmsService_serviceDesc, srv) -} - -func _RealmsService_ListRealms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListRealmsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).ListRealms(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/ListRealms", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).ListRealms(ctx, req.(*ListRealmsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_GetRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).GetRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/GetRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).GetRealm(ctx, req.(*GetRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_CreateRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).CreateRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/CreateRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).CreateRealm(ctx, req.(*CreateRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_DeleteRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).DeleteRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/DeleteRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).DeleteRealm(ctx, req.(*DeleteRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_UpdateRealm_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateRealmRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).UpdateRealm(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/UpdateRealm", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).UpdateRealm(ctx, req.(*UpdateRealmRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _RealmsService_PreviewRealmUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PreviewRealmUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(RealmsServiceServer).PreviewRealmUpdate(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/google.cloud.gaming.v1beta.RealmsService/PreviewRealmUpdate", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(RealmsServiceServer).PreviewRealmUpdate(ctx, req.(*PreviewRealmUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _RealmsService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "google.cloud.gaming.v1beta.RealmsService", - HandlerType: (*RealmsServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "ListRealms", - Handler: _RealmsService_ListRealms_Handler, - }, - { - MethodName: "GetRealm", - Handler: _RealmsService_GetRealm_Handler, - }, - { - MethodName: "CreateRealm", - Handler: _RealmsService_CreateRealm_Handler, - }, - { - MethodName: "DeleteRealm", - Handler: _RealmsService_DeleteRealm_Handler, - }, - { - MethodName: "UpdateRealm", - Handler: _RealmsService_UpdateRealm_Handler, - }, - { - MethodName: "PreviewRealmUpdate", - Handler: _RealmsService_PreviewRealmUpdate_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "google/cloud/gaming/v1beta/realms_service.proto", -} diff --git a/gaming/apiv1beta/realms_client.go b/gaming/apiv1beta/realms_client.go deleted file mode 100755 index a16ecd1ec03e..000000000000 --- a/gaming/apiv1beta/realms_client.go +++ /dev/null @@ -1,1301 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming - -import ( - "bytes" - "context" - "fmt" - "io" - "math" - "net/http" - "net/url" - "time" - - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "cloud.google.com/go/longrunning" - lroauto "cloud.google.com/go/longrunning/autogen" - longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb" - gax "github.com/googleapis/gax-go/v2" - "google.golang.org/api/googleapi" - "google.golang.org/api/iterator" - "google.golang.org/api/option" - "google.golang.org/api/option/internaloption" - gtransport "google.golang.org/api/transport/grpc" - httptransport "google.golang.org/api/transport/http" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/metadata" - "google.golang.org/protobuf/encoding/protojson" - "google.golang.org/protobuf/proto" -) - -var newRealmsClientHook clientHook - -// RealmsCallOptions contains the retry settings for each method of RealmsClient. -type RealmsCallOptions struct { - ListRealms []gax.CallOption - GetRealm []gax.CallOption - CreateRealm []gax.CallOption - DeleteRealm []gax.CallOption - UpdateRealm []gax.CallOption - PreviewRealmUpdate []gax.CallOption -} - -func defaultRealmsGRPCClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("gameservices.googleapis.com:443"), - internaloption.WithDefaultMTLSEndpoint("gameservices.mtls.googleapis.com:443"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - internaloption.EnableJwtWithScope(), - option.WithGRPCDialOption(grpc.WithDefaultCallOptions( - grpc.MaxCallRecvMsgSize(math.MaxInt32))), - } -} - -func defaultRealmsCallOptions() *RealmsCallOptions { - return &RealmsCallOptions{ - ListRealms: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - GetRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - CreateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewRealmUpdate: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnCodes([]codes.Code{ - codes.Unavailable, - }, gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }) - }), - }, - } -} - -func defaultRealmsRESTCallOptions() *RealmsCallOptions { - return &RealmsCallOptions{ - ListRealms: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - GetRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - CreateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - DeleteRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - UpdateRealm: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - }, - PreviewRealmUpdate: []gax.CallOption{ - gax.WithTimeout(60000 * time.Millisecond), - gax.WithRetry(func() gax.Retryer { - return gax.OnHTTPCodes(gax.Backoff{ - Initial: 1000 * time.Millisecond, - Max: 10000 * time.Millisecond, - Multiplier: 1.30, - }, - http.StatusServiceUnavailable) - }), - }, - } -} - -// internalRealmsClient is an interface that defines the methods available from Game Services API. -type internalRealmsClient interface { - Close() error - setGoogleClientInfo(...string) - Connection() *grpc.ClientConn - ListRealms(context.Context, *gamingpb.ListRealmsRequest, ...gax.CallOption) *RealmIterator - GetRealm(context.Context, *gamingpb.GetRealmRequest, ...gax.CallOption) (*gamingpb.Realm, error) - CreateRealm(context.Context, *gamingpb.CreateRealmRequest, ...gax.CallOption) (*CreateRealmOperation, error) - CreateRealmOperation(name string) *CreateRealmOperation - DeleteRealm(context.Context, *gamingpb.DeleteRealmRequest, ...gax.CallOption) (*DeleteRealmOperation, error) - DeleteRealmOperation(name string) *DeleteRealmOperation - UpdateRealm(context.Context, *gamingpb.UpdateRealmRequest, ...gax.CallOption) (*UpdateRealmOperation, error) - UpdateRealmOperation(name string) *UpdateRealmOperation - PreviewRealmUpdate(context.Context, *gamingpb.PreviewRealmUpdateRequest, ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) -} - -// RealmsClient is a client for interacting with Game Services API. -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -type RealmsClient struct { - // The internal transport-dependent client. - internalClient internalRealmsClient - - // The call options for this service. - CallOptions *RealmsCallOptions - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient *lroauto.OperationsClient -} - -// Wrapper methods routed to the internal client. - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *RealmsClient) Close() error { - return c.internalClient.Close() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *RealmsClient) setGoogleClientInfo(keyval ...string) { - c.internalClient.setGoogleClientInfo(keyval...) -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *RealmsClient) Connection() *grpc.ClientConn { - return c.internalClient.Connection() -} - -// ListRealms lists realms in a given project and location. -func (c *RealmsClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - return c.internalClient.ListRealms(ctx, req, opts...) -} - -// GetRealm gets details of a single realm. -func (c *RealmsClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - return c.internalClient.GetRealm(ctx, req, opts...) -} - -// CreateRealm creates a new realm in a given project and location. -func (c *RealmsClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - return c.internalClient.CreateRealm(ctx, req, opts...) -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *RealmsClient) CreateRealmOperation(name string) *CreateRealmOperation { - return c.internalClient.CreateRealmOperation(name) -} - -// DeleteRealm deletes a single realm. -func (c *RealmsClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - return c.internalClient.DeleteRealm(ctx, req, opts...) -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *RealmsClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - return c.internalClient.DeleteRealmOperation(name) -} - -// UpdateRealm patches a single realm. -func (c *RealmsClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - return c.internalClient.UpdateRealm(ctx, req, opts...) -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *RealmsClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - return c.internalClient.UpdateRealmOperation(name) -} - -// PreviewRealmUpdate previews patches to a single realm. -func (c *RealmsClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - return c.internalClient.PreviewRealmUpdate(ctx, req, opts...) -} - -// realmsGRPCClient is a client for interacting with Game Services API over gRPC transport. -// -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type realmsGRPCClient struct { - // Connection pool of gRPC connections to the service. - connPool gtransport.ConnPool - - // Points back to the CallOptions field of the containing RealmsClient - CallOptions **RealmsCallOptions - - // The gRPC API client. - realmsClient gamingpb.RealmsServiceClient - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD -} - -// NewRealmsClient creates a new realms service client based on gRPC. -// The returned client must be Closed when it is done being used to clean up its underlying connections. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -func NewRealmsClient(ctx context.Context, opts ...option.ClientOption) (*RealmsClient, error) { - clientOpts := defaultRealmsGRPCClientOptions() - if newRealmsClientHook != nil { - hookOpts, err := newRealmsClientHook(ctx, clientHookParams{}) - if err != nil { - return nil, err - } - clientOpts = append(clientOpts, hookOpts...) - } - - connPool, err := gtransport.DialPool(ctx, append(clientOpts, opts...)...) - if err != nil { - return nil, err - } - client := RealmsClient{CallOptions: defaultRealmsCallOptions()} - - c := &realmsGRPCClient{ - connPool: connPool, - realmsClient: gamingpb.NewRealmsServiceClient(connPool), - CallOptions: &client.CallOptions, - } - c.setGoogleClientInfo() - - client.internalClient = c - - client.LROClient, err = lroauto.NewOperationsClient(ctx, gtransport.WithConnPool(connPool)) - if err != nil { - // This error "should not happen", since we are just reusing old connection pool - // and never actually need to dial. - // If this does happen, we could leak connp. However, we cannot close conn: - // If the user invoked the constructor with option.WithGRPCConn, - // we would close a connection that's still in use. - // TODO: investigate error conditions. - return nil, err - } - c.LROClient = &client.LROClient - return &client, nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: Connections are now pooled so this method does not always -// return the same resource. -func (c *realmsGRPCClient) Connection() *grpc.ClientConn { - return c.connPool.Conn() -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *realmsGRPCClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "grpc", grpc.Version) - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *realmsGRPCClient) Close() error { - return c.connPool.Close() -} - -// Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls. -type realmsRESTClient struct { - // The http endpoint to connect to. - endpoint string - - // The http client. - httpClient *http.Client - - // LROClient is used internally to handle long-running operations. - // It is exposed so that its CallOptions can be modified if required. - // Users should not Close this client. - LROClient **lroauto.OperationsClient - - // The x-goog-* metadata to be sent with each request. - xGoogMetadata metadata.MD - - // Points back to the CallOptions field of the containing RealmsClient - CallOptions **RealmsCallOptions -} - -// NewRealmsRESTClient creates a new realms service rest client. -// -// A realm is a grouping of game server clusters that are considered -// interchangeable. -func NewRealmsRESTClient(ctx context.Context, opts ...option.ClientOption) (*RealmsClient, error) { - clientOpts := append(defaultRealmsRESTClientOptions(), opts...) - httpClient, endpoint, err := httptransport.NewClient(ctx, clientOpts...) - if err != nil { - return nil, err - } - - callOpts := defaultRealmsRESTCallOptions() - c := &realmsRESTClient{ - endpoint: endpoint, - httpClient: httpClient, - CallOptions: &callOpts, - } - c.setGoogleClientInfo() - - lroOpts := []option.ClientOption{ - option.WithHTTPClient(httpClient), - option.WithEndpoint(endpoint), - } - opClient, err := lroauto.NewOperationsRESTClient(ctx, lroOpts...) - if err != nil { - return nil, err - } - c.LROClient = &opClient - - return &RealmsClient{internalClient: c, CallOptions: callOpts}, nil -} - -func defaultRealmsRESTClientOptions() []option.ClientOption { - return []option.ClientOption{ - internaloption.WithDefaultEndpoint("https://gameservices.googleapis.com"), - internaloption.WithDefaultMTLSEndpoint("https://gameservices.mtls.googleapis.com"), - internaloption.WithDefaultAudience("https://gameservices.googleapis.com/"), - internaloption.WithDefaultScopes(DefaultAuthScopes()...), - } -} - -// setGoogleClientInfo sets the name and version of the application in -// the `x-goog-api-client` header passed on each request. Intended for -// use by Google-written clients. -func (c *realmsRESTClient) setGoogleClientInfo(keyval ...string) { - kv := append([]string{"gl-go", gax.GoVersion}, keyval...) - kv = append(kv, "gapic", getVersionClient(), "gax", gax.Version, "rest", "UNKNOWN") - c.xGoogMetadata = metadata.Pairs("x-goog-api-client", gax.XGoogHeader(kv...)) -} - -// Close closes the connection to the API service. The user should invoke this when -// the client is no longer required. -func (c *realmsRESTClient) Close() error { - // Replace httpClient with nil to force cleanup. - c.httpClient = nil - return nil -} - -// Connection returns a connection to the API service. -// -// Deprecated: This method always returns nil. -func (c *realmsRESTClient) Connection() *grpc.ClientConn { - return nil -} -func (c *realmsGRPCClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).ListRealms[0:len((*c.CallOptions).ListRealms):len((*c.CallOptions).ListRealms)], opts...) - it := &RealmIterator{} - req = proto.Clone(req).(*gamingpb.ListRealmsRequest) - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.Realm, string, error) { - resp := &gamingpb.ListRealmsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.ListRealms(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, "", err - } - - it.Response = resp - return resp.GetRealms(), resp.GetNextPageToken(), nil - } - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -func (c *realmsGRPCClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).GetRealm[0:len((*c.CallOptions).GetRealm):len((*c.CallOptions).GetRealm)], opts...) - var resp *gamingpb.Realm - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.GetRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -func (c *realmsGRPCClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).CreateRealm[0:len((*c.CallOptions).CreateRealm):len((*c.CallOptions).CreateRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.CreateRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).DeleteRealm[0:len((*c.CallOptions).DeleteRealm):len((*c.CallOptions).DeleteRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.DeleteRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).UpdateRealm[0:len((*c.CallOptions).UpdateRealm):len((*c.CallOptions).UpdateRealm)], opts...) - var resp *longrunningpb.Operation - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.UpdateRealm(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - }, nil -} - -func (c *realmsGRPCClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - ctx = insertMetadata(ctx, c.xGoogMetadata, md) - opts = append((*c.CallOptions).PreviewRealmUpdate[0:len((*c.CallOptions).PreviewRealmUpdate):len((*c.CallOptions).PreviewRealmUpdate)], opts...) - var resp *gamingpb.PreviewRealmUpdateResponse - err := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - var err error - resp, err = c.realmsClient.PreviewRealmUpdate(ctx, req, settings.GRPC...) - return err - }, opts...) - if err != nil { - return nil, err - } - return resp, nil -} - -// ListRealms lists realms in a given project and location. -func (c *realmsRESTClient) ListRealms(ctx context.Context, req *gamingpb.ListRealmsRequest, opts ...gax.CallOption) *RealmIterator { - it := &RealmIterator{} - req = proto.Clone(req).(*gamingpb.ListRealmsRequest) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - it.InternalFetch = func(pageSize int, pageToken string) ([]*gamingpb.Realm, string, error) { - resp := &gamingpb.ListRealmsResponse{} - if pageToken != "" { - req.PageToken = pageToken - } - if pageSize > math.MaxInt32 { - req.PageSize = math.MaxInt32 - } else if pageSize != 0 { - req.PageSize = int32(pageSize) - } - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, "", err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/realms", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetFilter() != "" { - params.Add("filter", fmt.Sprintf("%v", req.GetFilter())) - } - if req.GetOrderBy() != "" { - params.Add("orderBy", fmt.Sprintf("%v", req.GetOrderBy())) - } - if req.GetPageSize() != 0 { - params.Add("pageSize", fmt.Sprintf("%v", req.GetPageSize())) - } - if req.GetPageToken() != "" { - params.Add("pageToken", fmt.Sprintf("%v", req.GetPageToken())) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - headers := buildHeaders(ctx, c.xGoogMetadata, metadata.Pairs("Content-Type", "application/json")) - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, "", e - } - it.Response = resp - return resp.GetRealms(), resp.GetNextPageToken(), nil - } - - fetch := func(pageSize int, pageToken string) (string, error) { - items, nextPageToken, err := it.InternalFetch(pageSize, pageToken) - if err != nil { - return "", err - } - it.items = append(it.items, items...) - return nextPageToken, nil - } - - it.pageInfo, it.nextFunc = iterator.NewPageInfo(fetch, it.bufLen, it.takeBuf) - it.pageInfo.MaxSize = int(req.GetPageSize()) - it.pageInfo.Token = req.GetPageToken() - - return it -} - -// GetRealm gets details of a single realm. -func (c *realmsRESTClient) GetRealm(ctx context.Context, req *gamingpb.GetRealmRequest, opts ...gax.CallOption) (*gamingpb.Realm, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).GetRealm[0:len((*c.CallOptions).GetRealm):len((*c.CallOptions).GetRealm)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.Realm{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("GET", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateRealm creates a new realm in a given project and location. -func (c *realmsRESTClient) CreateRealm(ctx context.Context, req *gamingpb.CreateRealmRequest, opts ...gax.CallOption) (*CreateRealmOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v/realms", req.GetParent()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - params.Add("realmId", fmt.Sprintf("%v", req.GetRealmId())) - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "parent", url.QueryEscape(req.GetParent()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("POST", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// DeleteRealm deletes a single realm. -func (c *realmsRESTClient) DeleteRealm(ctx context.Context, req *gamingpb.DeleteRealmRequest, opts ...gax.CallOption) (*DeleteRealmOperation, error) { - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "name", url.QueryEscape(req.GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("DELETE", baseUrl.String(), nil) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// UpdateRealm patches a single realm. -func (c *realmsRESTClient) UpdateRealm(ctx context.Context, req *gamingpb.UpdateRealmRequest, opts ...gax.CallOption) (*UpdateRealmOperation, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v", req.GetRealm().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &longrunningpb.Operation{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - - override := fmt.Sprintf("/v1beta/%s", resp.GetName()) - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, resp), - pollPath: override, - }, nil -} - -// PreviewRealmUpdate previews patches to a single realm. -func (c *realmsRESTClient) PreviewRealmUpdate(ctx context.Context, req *gamingpb.PreviewRealmUpdateRequest, opts ...gax.CallOption) (*gamingpb.PreviewRealmUpdateResponse, error) { - m := protojson.MarshalOptions{AllowPartial: true, UseEnumNumbers: true} - body := req.GetRealm() - jsonReq, err := m.Marshal(body) - if err != nil { - return nil, err - } - - baseUrl, err := url.Parse(c.endpoint) - if err != nil { - return nil, err - } - baseUrl.Path += fmt.Sprintf("/v1beta/%v:previewUpdate", req.GetRealm().GetName()) - - params := url.Values{} - params.Add("$alt", "json;enum-encoding=int") - if req.GetPreviewTime() != nil { - previewTime, err := protojson.Marshal(req.GetPreviewTime()) - if err != nil { - return nil, err - } - params.Add("previewTime", string(previewTime[1:len(previewTime)-1])) - } - if req.GetUpdateMask() != nil { - updateMask, err := protojson.Marshal(req.GetUpdateMask()) - if err != nil { - return nil, err - } - params.Add("updateMask", string(updateMask[1:len(updateMask)-1])) - } - - baseUrl.RawQuery = params.Encode() - - // Build HTTP headers from client and context metadata. - md := metadata.Pairs("x-goog-request-params", fmt.Sprintf("%s=%v", "realm.name", url.QueryEscape(req.GetRealm().GetName()))) - - headers := buildHeaders(ctx, c.xGoogMetadata, md, metadata.Pairs("Content-Type", "application/json")) - opts = append((*c.CallOptions).PreviewRealmUpdate[0:len((*c.CallOptions).PreviewRealmUpdate):len((*c.CallOptions).PreviewRealmUpdate)], opts...) - unm := protojson.UnmarshalOptions{AllowPartial: true, DiscardUnknown: true} - resp := &gamingpb.PreviewRealmUpdateResponse{} - e := gax.Invoke(ctx, func(ctx context.Context, settings gax.CallSettings) error { - if settings.Path != "" { - baseUrl.Path = settings.Path - } - httpReq, err := http.NewRequest("PATCH", baseUrl.String(), bytes.NewReader(jsonReq)) - if err != nil { - return err - } - httpReq = httpReq.WithContext(ctx) - httpReq.Header = headers - - httpRsp, err := c.httpClient.Do(httpReq) - if err != nil { - return err - } - defer httpRsp.Body.Close() - - if err = googleapi.CheckResponse(httpRsp); err != nil { - return err - } - - buf, err := io.ReadAll(httpRsp.Body) - if err != nil { - return err - } - - if err := unm.Unmarshal(buf, resp); err != nil { - return err - } - - return nil - }, opts...) - if e != nil { - return nil, e - } - return resp, nil -} - -// CreateRealmOperation manages a long-running operation from CreateRealm. -type CreateRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) CreateRealmOperation(name string) *CreateRealmOperation { - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// CreateRealmOperation returns a new CreateRealmOperation from a given name. -// The name must be that of a previously created CreateRealmOperation, possibly from a different process. -func (c *realmsRESTClient) CreateRealmOperation(name string) *CreateRealmOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &CreateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *CreateRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *CreateRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *CreateRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *CreateRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *CreateRealmOperation) Name() string { - return op.lro.Name() -} - -// DeleteRealmOperation manages a long-running operation from DeleteRealm. -type DeleteRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// DeleteRealmOperation returns a new DeleteRealmOperation from a given name. -// The name must be that of a previously created DeleteRealmOperation, possibly from a different process. -func (c *realmsRESTClient) DeleteRealmOperation(name string) *DeleteRealmOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &DeleteRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *DeleteRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...) -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *DeleteRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) error { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - return op.lro.Poll(ctx, nil, opts...) -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *DeleteRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *DeleteRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *DeleteRealmOperation) Name() string { - return op.lro.Name() -} - -// UpdateRealmOperation manages a long-running operation from UpdateRealm. -type UpdateRealmOperation struct { - lro *longrunning.Operation - pollPath string -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *realmsGRPCClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - } -} - -// UpdateRealmOperation returns a new UpdateRealmOperation from a given name. -// The name must be that of a previously created UpdateRealmOperation, possibly from a different process. -func (c *realmsRESTClient) UpdateRealmOperation(name string) *UpdateRealmOperation { - override := fmt.Sprintf("/v1beta/%s", name) - return &UpdateRealmOperation{ - lro: longrunning.InternalNewOperation(*c.LROClient, &longrunningpb.Operation{Name: name}), - pollPath: override, - } -} - -// Wait blocks until the long-running operation is completed, returning the response and any errors encountered. -// -// See documentation of Poll for error-handling information. -func (op *UpdateRealmOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil { - return nil, err - } - return &resp, nil -} - -// Poll fetches the latest state of the long-running operation. -// -// Poll also fetches the latest metadata, which can be retrieved by Metadata. -// -// If Poll fails, the error is returned and op is unmodified. If Poll succeeds and -// the operation has completed with failure, the error is returned and op.Done will return true. -// If Poll succeeds and the operation has completed successfully, -// op.Done will return true, and the response of the operation is returned. -// If Poll succeeds and the operation has not completed, the returned response and error are both nil. -func (op *UpdateRealmOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*gamingpb.Realm, error) { - opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...) - var resp gamingpb.Realm - if err := op.lro.Poll(ctx, &resp, opts...); err != nil { - return nil, err - } - if !op.Done() { - return nil, nil - } - return &resp, nil -} - -// Metadata returns metadata associated with the long-running operation. -// Metadata itself does not contact the server, but Poll does. -// To get the latest metadata, call this method after a successful call to Poll. -// If the metadata is not available, the returned metadata and error are both nil. -func (op *UpdateRealmOperation) Metadata() (*gamingpb.OperationMetadata, error) { - var meta gamingpb.OperationMetadata - if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata { - return nil, nil - } else if err != nil { - return nil, err - } - return &meta, nil -} - -// Done reports whether the long-running operation has completed. -func (op *UpdateRealmOperation) Done() bool { - return op.lro.Done() -} - -// Name returns the name of the long-running operation. -// The name is assigned by the server and is unique within the service from which the operation is created. -func (op *UpdateRealmOperation) Name() string { - return op.lro.Name() -} - -// RealmIterator manages a stream of *gamingpb.Realm. -type RealmIterator struct { - items []*gamingpb.Realm - pageInfo *iterator.PageInfo - nextFunc func() error - - // Response is the raw response for the current page. - // It must be cast to the RPC response type. - // Calling Next() or InternalFetch() updates this value. - Response interface{} - - // InternalFetch is for use by the Google Cloud Libraries only. - // It is not part of the stable interface of this package. - // - // InternalFetch returns results from a single call to the underlying RPC. - // The number of results is no greater than pageSize. - // If there are no more results, nextPageToken is empty and err is nil. - InternalFetch func(pageSize int, pageToken string) (results []*gamingpb.Realm, nextPageToken string, err error) -} - -// PageInfo supports pagination. See the google.golang.org/api/iterator package for details. -func (it *RealmIterator) PageInfo() *iterator.PageInfo { - return it.pageInfo -} - -// Next returns the next result. Its second return value is iterator.Done if there are no more -// results. Once Next returns Done, all subsequent calls will return Done. -func (it *RealmIterator) Next() (*gamingpb.Realm, error) { - var item *gamingpb.Realm - if err := it.nextFunc(); err != nil { - return item, err - } - item = it.items[0] - it.items = it.items[1:] - return item, nil -} - -func (it *RealmIterator) bufLen() int { - return len(it.items) -} - -func (it *RealmIterator) takeBuf() interface{} { - b := it.items - it.items = nil - return b -} diff --git a/gaming/apiv1beta/realms_client_example_test.go b/gaming/apiv1beta/realms_client_example_test.go deleted file mode 100644 index 024484b196aa..000000000000 --- a/gaming/apiv1beta/realms_client_example_test.go +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -package gaming_test - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func ExampleNewRealmsClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleNewRealmsRESTClient() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsRESTClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - // TODO: Use client. - _ = c -} - -func ExampleRealmsClient_ListRealms() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListRealmsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListRealmsRequest. - } - it := c.ListRealms(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -func ExampleRealmsClient_GetRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetRealmRequest. - } - resp, err := c.GetRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_CreateRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateRealmRequest. - } - op, err := c.CreateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_DeleteRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteRealmRequest. - } - op, err := c.DeleteRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -func ExampleRealmsClient_UpdateRealm() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateRealmRequest. - } - op, err := c.UpdateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -func ExampleRealmsClient_PreviewRealmUpdate() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewRealmUpdateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewRealmUpdateRequest. - } - resp, err := c.PreviewRealmUpdate(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} diff --git a/gaming/apiv1beta/version.go b/gaming/apiv1beta/version.go deleted file mode 100644 index 9d897b2544d0..000000000000 --- a/gaming/apiv1beta/version.go +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright 2023 Google 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. - -// Code generated by gapicgen. DO NOT EDIT. - -package gaming - -import "cloud.google.com/go/gaming/internal" - -func init() { - versionClient = internal.Version -} diff --git a/gaming/go.mod b/gaming/go.mod deleted file mode 100644 index 62da1afb6d44..000000000000 --- a/gaming/go.mod +++ /dev/null @@ -1,32 +0,0 @@ -module cloud.google.com/go/gaming - -go 1.19 - -require ( - cloud.google.com/go/longrunning v0.5.0 - github.com/googleapis/gax-go/v2 v2.11.0 - google.golang.org/api v0.126.0 - google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc - google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc - google.golang.org/grpc v1.55.0 - google.golang.org/protobuf v1.30.0 -) - -require ( - cloud.google.com/go v0.110.2 // indirect - cloud.google.com/go/compute v1.19.3 // indirect - cloud.google.com/go/compute/metadata v0.2.3 // indirect - github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - github.com/golang/protobuf v1.5.3 // indirect - github.com/google/go-cmp v0.5.9 // indirect - github.com/google/s2a-go v0.1.4 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect -) diff --git a/gaming/go.sum b/gaming/go.sum deleted file mode 100644 index 1b09426f0fcc..000000000000 --- a/gaming/go.sum +++ /dev/null @@ -1,197 +0,0 @@ -cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.110.2 h1:sdFPBr6xG9/wkBbfhmUz/JmZC7X6LavQgcrVINrKiVA= -cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw= -cloud.google.com/go/compute v1.19.3 h1:DcTwsFgGev/wV5+q8o2fzgcHOaac+DKGC91ZlvpsQds= -cloud.google.com/go/compute v1.19.3/go.mod h1:qxvISKp/gYnXkSAD1ppcSOveRAmzxicEv/JlizULFrI= -cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= -cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= -cloud.google.com/go/longrunning v0.5.0 h1:DK8BH0+hS+DIvc9a2TPnteUievsTCH4ORMAASSb7JcQ= -cloud.google.com/go/longrunning v0.5.0/go.mod h1:0JNuqRShmscVAhIACGtskSAWtqtOoPkwP0YF1oVEchc= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= -github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= -github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= -github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= -github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/s2a-go v0.1.4 h1:1kZ/sQM3srePvKs3tXAvQzo66XfcReoqFpIpIccE7Oc= -github.com/google/s2a-go v0.1.4/go.mod h1:Ej+mSEMGRnqRzjc7VtF+jdBwYG5fuJfiZ8ELkjEwM0A= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= -github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= -github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= -github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= -go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= -go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= -golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= -golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= -golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= -golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= -golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= -golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o= -google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc h1:8DyZCyvI8mE1IdLy/60bS+52xfymkE72wv1asokgtao= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= -google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= -google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= -google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= -google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= -google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= -google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= -google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= -google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/gaming/internal/version.go b/gaming/internal/version.go deleted file mode 100644 index c72877407347..000000000000 --- a/gaming/internal/version.go +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright 2022 Google 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 internal - -// Version is the current tagged release of the library. -const Version = "1.10.1" diff --git a/go.work b/go.work index d795dc162160..7e2cf4f8eba4 100644 --- a/go.work +++ b/go.work @@ -60,7 +60,6 @@ use ( ./filestore ./firestore ./functions - ./gaming ./gkebackup ./gkeconnect ./gkehub diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go deleted file mode 100644 index d22d9f974ab6..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/CreateGameServerCluster/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerClusterRequest. - } - op, err := c.CreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go deleted file mode 100644 index e925ec741bf4..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/DeleteGameServerCluster/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerClusterRequest. - } - op, err := c.DeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go deleted file mode 100644 index 3fdc434479d5..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/GetGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerClusterRequest. - } - resp, err := c.GetGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go deleted file mode 100644 index 3f800bc6174a..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/ListGameServerClusters/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerClustersRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerClustersRequest. - } - it := c.ListGameServerClusters(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go deleted file mode 100644 index 15d1e36e3c0c..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewCreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewCreateGameServerClusterRequest. - } - resp, err := c.PreviewCreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go deleted file mode 100644 index 91a41b606242..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewDeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewDeleteGameServerClusterRequest. - } - resp, err := c.PreviewDeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go deleted file mode 100644 index 395ae4155525..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewUpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewUpdateGameServerClusterRequest. - } - resp, err := c.PreviewUpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go deleted file mode 100644 index 0cac3e781c6f..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerClustersClient/UpdateGameServerCluster/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerClusterRequest. - } - op, err := c.UpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go deleted file mode 100644 index 6932818340e7..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/CreateGameServerConfig/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerConfigRequest. - } - op, err := c.CreateGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go deleted file mode 100644 index 461a9aa9891a..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerConfigRequest. - } - op, err := c.DeleteGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go deleted file mode 100644 index 75f4822c5322..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/GetGameServerConfig/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerConfigRequest. - } - resp, err := c.GetGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go deleted file mode 100644 index 6b25a4a49c69..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerConfigsClient/ListGameServerConfigs/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerConfigsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerConfigsRequest. - } - it := c.ListGameServerConfigs(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go deleted file mode 100644 index 3ef83e252656..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateGameServerDeploymentRequest. - } - op, err := c.CreateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go deleted file mode 100644 index a7892a1a56f7..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteGameServerDeploymentRequest. - } - op, err := c.DeleteGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go deleted file mode 100644 index 9e90ea601247..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.FetchDeploymentStateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#FetchDeploymentStateRequest. - } - resp, err := c.FetchDeploymentState(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go deleted file mode 100644 index 88e98717b1d6..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerDeploymentRequest. - } - resp, err := c.GetGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go deleted file mode 100644 index 27272ed07a13..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetGameServerDeploymentRolloutRequest. - } - resp, err := c.GetGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go deleted file mode 100644 index e177e34c07a8..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerDeploymentsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListGameServerDeploymentsRequest. - } - it := c.ListGameServerDeployments(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go deleted file mode 100644 index e6fd113484cf..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewGameServerDeploymentRolloutRequest. - } - resp, err := c.PreviewGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go deleted file mode 100644 index 346ff0f41bf8..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerDeploymentRequest. - } - op, err := c.UpdateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go deleted file mode 100644 index bb1dae5e5536..000000000000 --- a/internal/generated/snippets/gaming/apiv1/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateGameServerDeploymentRolloutRequest. - } - op, err := c.UpdateGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go deleted file mode 100644 index 36b9862a8fc3..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/CreateRealm/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_CreateRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#CreateRealmRequest. - } - op, err := c.CreateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_RealmsService_CreateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go deleted file mode 100644 index e179d40abcf1..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/DeleteRealm/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_DeleteRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#DeleteRealmRequest. - } - op, err := c.DeleteRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1_generated_RealmsService_DeleteRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go deleted file mode 100644 index 0dfee11e3eb2..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/GetRealm/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_GetRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#GetRealmRequest. - } - resp, err := c.GetRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_RealmsService_GetRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go deleted file mode 100644 index 430ebcceaceb..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/ListRealms/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_ListRealms_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListRealmsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#ListRealmsRequest. - } - it := c.ListRealms(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1_generated_RealmsService_ListRealms_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go deleted file mode 100644 index 9714518462c2..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/PreviewRealmUpdate/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_PreviewRealmUpdate_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewRealmUpdateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#PreviewRealmUpdateRequest. - } - resp, err := c.PreviewRealmUpdate(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_RealmsService_PreviewRealmUpdate_sync] diff --git a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go deleted file mode 100644 index 0e11626cb335..000000000000 --- a/internal/generated/snippets/gaming/apiv1/RealmsClient/UpdateRealm/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1_generated_RealmsService_UpdateRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1" - gamingpb "cloud.google.com/go/gaming/apiv1/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1/gamingpb#UpdateRealmRequest. - } - op, err := c.UpdateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1_generated_RealmsService_UpdateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json b/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json deleted file mode 100644 index 8d70fe14886c..000000000000 --- a/internal/generated/snippets/gaming/apiv1/snippet_metadata.google.cloud.gaming.v1.json +++ /dev/null @@ -1,1257 +0,0 @@ -{ - "clientLibrary": { - "name": "cloud.google.com/go/gaming/apiv1", - "version": "1.10.1", - "language": "GO", - "apis": [ - { - "id": "google.cloud.gaming.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_CreateGameServerCluster_sync", - "title": "gameservices CreateGameServerCluster Sample", - "description": "CreateGameServerCluster creates a new game server cluster in a given project and location.", - "file": "GameServerClustersClient/CreateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.CreateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.CreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_DeleteGameServerCluster_sync", - "title": "gameservices DeleteGameServerCluster Sample", - "description": "DeleteGameServerCluster deletes a single game server cluster.", - "file": "GameServerClustersClient/DeleteGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.DeleteGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.DeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_GetGameServerCluster_sync", - "title": "gameservices GetGameServerCluster Sample", - "description": "GetGameServerCluster gets details of a single game server cluster.", - "file": "GameServerClustersClient/GetGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.GetGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerCluster", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.GetGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_ListGameServerClusters_sync", - "title": "gameservices ListGameServerClusters Sample", - "description": "ListGameServerClusters lists game server clusters in a given project and location.", - "file": "GameServerClustersClient/ListGameServerClusters/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.ListGameServerClusters", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerClustersRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerClusterIterator", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.ListGameServerClusters", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync", - "title": "gameservices PreviewCreateGameServerCluster Sample", - "description": "PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and\nlocation.", - "file": "GameServerClustersClient/PreviewCreateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.PreviewCreateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewCreateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewCreateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewCreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync", - "title": "gameservices PreviewDeleteGameServerCluster Sample", - "description": "PreviewDeleteGameServerCluster previews deletion of a single game server cluster.", - "file": "GameServerClustersClient/PreviewDeleteGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.PreviewDeleteGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewDeleteGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewDeleteGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewDeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync", - "title": "gameservices PreviewUpdateGameServerCluster Sample", - "description": "PreviewUpdateGameServerCluster previews updating a GameServerCluster.", - "file": "GameServerClustersClient/PreviewUpdateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.PreviewUpdateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewUpdateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewUpdateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.PreviewUpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerClustersService_UpdateGameServerCluster_sync", - "title": "gameservices UpdateGameServerCluster Sample", - "description": "UpdateGameServerCluster patches a single game server cluster.", - "file": "GameServerClustersClient/UpdateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient.UpdateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1.GameServerClustersClient" - }, - "method": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1.GameServerClustersService.UpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_CreateGameServerConfig_sync", - "title": "gameservices CreateGameServerConfig Sample", - "description": "CreateGameServerConfig creates a new game server config in a given project, location, and game\nserver deployment. Game server configs are immutable, and are not applied\nuntil referenced in the game server deployment rollout resource.", - "file": "GameServerConfigsClient/CreateGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient.CreateGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerConfigOperation", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient" - }, - "method": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.CreateGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_DeleteGameServerConfig_sync", - "title": "gameservices DeleteGameServerConfig Sample", - "description": "DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game\nserver config is referenced in a game server deployment rollout.", - "file": "GameServerConfigsClient/DeleteGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient.DeleteGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerConfigOperation", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient" - }, - "method": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.DeleteGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_GetGameServerConfig_sync", - "title": "gameservices GetGameServerConfig Sample", - "description": "GetGameServerConfig gets details of a single game server config.", - "file": "GameServerConfigsClient/GetGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient.GetGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerConfig", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient" - }, - "method": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.GetGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerConfigsService_ListGameServerConfigs_sync", - "title": "gameservices ListGameServerConfigs Sample", - "description": "ListGameServerConfigs lists game server configs in a given project, location, and game server\ndeployment.", - "file": "GameServerConfigsClient/ListGameServerConfigs/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient.ListGameServerConfigs", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerConfigsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerConfigIterator", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1.GameServerConfigsClient" - }, - "method": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService.ListGameServerConfigs", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync", - "title": "gameservices CreateGameServerDeployment Sample", - "description": "CreateGameServerDeployment creates a new game server deployment in a given project and location.", - "file": "GameServerDeploymentsClient/CreateGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.CreateGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.CreateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync", - "title": "gameservices DeleteGameServerDeployment Sample", - "description": "DeleteGameServerDeployment deletes a single game server deployment.", - "file": "GameServerDeploymentsClient/DeleteGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.DeleteGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.DeleteGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_FetchDeploymentState_sync", - "title": "gameservices FetchDeploymentState Sample", - "description": "FetchDeploymentState retrieves information about the current state of the game server\ndeployment. Gathers all the Agones fleets and Agones autoscalers,\nincluding fleets running an older version of the game server deployment.", - "file": "GameServerDeploymentsClient/FetchDeploymentState/main.go", - "language": "GO", - "clientMethod": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.FetchDeploymentState", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.FetchDeploymentStateRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.FetchDeploymentStateResponse", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.FetchDeploymentState", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeployment_sync", - "title": "gameservices GetGameServerDeployment Sample", - "description": "GetGameServerDeployment gets details of a single game server deployment.", - "file": "GameServerDeploymentsClient/GetGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.GetGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerDeployment", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync", - "title": "gameservices GetGameServerDeploymentRollout Sample", - "description": "GetGameServerDeploymentRollout gets details a single game server deployment rollout.", - "file": "GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.GetGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerDeploymentRollout", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_ListGameServerDeployments_sync", - "title": "gameservices ListGameServerDeployments Sample", - "description": "ListGameServerDeployments lists game server deployments in a given project and location.", - "file": "GameServerDeploymentsClient/ListGameServerDeployments/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.ListGameServerDeployments", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerDeploymentsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerDeploymentIterator", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.ListGameServerDeployments", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync", - "title": "gameservices PreviewGameServerDeploymentRollout Sample", - "description": "PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the\nrollout resource.", - "file": "GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.PreviewGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewGameServerDeploymentRolloutResponse", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync", - "title": "gameservices UpdateGameServerDeployment Sample", - "description": "UpdateGameServerDeployment patches a game server deployment.", - "file": "GameServerDeploymentsClient/UpdateGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.UpdateGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync", - "title": "gameservices UpdateGameServerDeploymentRollout Sample", - "description": "UpdateGameServerDeploymentRollout patches a single game server deployment rollout.\nThe method will not return an error if the update does not affect any\nexisting realms. For example - if the default_game_server_config is changed\nbut all existing realms use the override, that is valid. Similarly, if a\nnon existing realm is explicitly called out in game_server_config_overrides\nfield, that will also not result in an error.", - "file": "GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient.UpdateGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerDeploymentRolloutOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsClient" - }, - "method": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_CreateRealm_sync", - "title": "gameservices CreateRealm Sample", - "description": "CreateRealm creates a new realm in a given project and location.", - "file": "RealmsClient/CreateRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1.RealmsClient.CreateRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.CreateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_DeleteRealm_sync", - "title": "gameservices DeleteRealm Sample", - "description": "DeleteRealm deletes a single realm.", - "file": "RealmsClient/DeleteRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1.RealmsClient.DeleteRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.DeleteRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_GetRealm_sync", - "title": "gameservices GetRealm Sample", - "description": "GetRealm gets details of a single realm.", - "file": "RealmsClient/GetRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1.RealmsClient.GetRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.Realm", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.GetRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_ListRealms_sync", - "title": "gameservices ListRealms Sample", - "description": "ListRealms lists realms in a given project and location.", - "file": "RealmsClient/ListRealms/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1.RealmsClient.ListRealms", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListRealmsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "RealmIterator", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1.RealmsService.ListRealms", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_PreviewRealmUpdate_sync", - "title": "gameservices PreviewRealmUpdate Sample", - "description": "PreviewRealmUpdate previews patches to a single realm.", - "file": "RealmsClient/PreviewRealmUpdate/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1.RealmsClient.PreviewRealmUpdate", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewRealmUpdateRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewRealmUpdateResponse", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1.RealmsService.PreviewRealmUpdate", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1_generated_RealmsService_UpdateRealm_sync", - "title": "gameservices UpdateRealm Sample", - "description": "UpdateRealm patches a single realm.", - "file": "RealmsClient/UpdateRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1.RealmsClient.UpdateRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1.RealmsClient" - }, - "method": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1.RealmsService.UpdateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go deleted file mode 100644 index cdd3799bcd19..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/CreateGameServerCluster/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerClusterRequest. - } - op, err := c.CreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go deleted file mode 100644 index 98ef4c9083a5..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/DeleteGameServerCluster/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerClusterRequest. - } - op, err := c.DeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go deleted file mode 100644 index 8e65c5e50227..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/GetGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerClusterRequest. - } - resp, err := c.GetGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go deleted file mode 100644 index 8ba739e480b5..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/ListGameServerClusters/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerClustersRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerClustersRequest. - } - it := c.ListGameServerClusters(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go deleted file mode 100644 index b742a2dacfe8..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewCreateGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewCreateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewCreateGameServerClusterRequest. - } - resp, err := c.PreviewCreateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go deleted file mode 100644 index 25a2d44aaebd..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewDeleteGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewDeleteGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewDeleteGameServerClusterRequest. - } - resp, err := c.PreviewDeleteGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go deleted file mode 100644 index d2a013a6a79e..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/PreviewUpdateGameServerCluster/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewUpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewUpdateGameServerClusterRequest. - } - resp, err := c.PreviewUpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go deleted file mode 100644 index 83b698aa2b69..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerClustersClient/UpdateGameServerCluster/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerClustersClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerClusterRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerClusterRequest. - } - op, err := c.UpdateGameServerCluster(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go deleted file mode 100644 index d546e6a959ea..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/CreateGameServerConfig/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerConfigRequest. - } - op, err := c.CreateGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go deleted file mode 100644 index f039d49337cc..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/DeleteGameServerConfig/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerConfigRequest. - } - op, err := c.DeleteGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go deleted file mode 100644 index 456927a66333..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/GetGameServerConfig/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerConfigRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerConfigRequest. - } - resp, err := c.GetGameServerConfig(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go deleted file mode 100644 index 5b7e3d32f772..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerConfigsClient/ListGameServerConfigs/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerConfigsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerConfigsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerConfigsRequest. - } - it := c.ListGameServerConfigs(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go deleted file mode 100644 index 64b1582009f0..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/CreateGameServerDeployment/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateGameServerDeploymentRequest. - } - op, err := c.CreateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go deleted file mode 100644 index 995efc9efd95..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/DeleteGameServerDeployment/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteGameServerDeploymentRequest. - } - op, err := c.DeleteGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go deleted file mode 100644 index 30824aeda554..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/FetchDeploymentState/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.FetchDeploymentStateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#FetchDeploymentStateRequest. - } - resp, err := c.FetchDeploymentState(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go deleted file mode 100644 index d41919d54958..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeployment/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerDeploymentRequest. - } - resp, err := c.GetGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go deleted file mode 100644 index 36ee771d980e..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetGameServerDeploymentRolloutRequest. - } - resp, err := c.GetGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go deleted file mode 100644 index 0431a4e4df4d..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/ListGameServerDeployments/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListGameServerDeploymentsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListGameServerDeploymentsRequest. - } - it := c.ListGameServerDeployments(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go deleted file mode 100644 index eae85eb44cb1..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewGameServerDeploymentRolloutRequest. - } - resp, err := c.PreviewGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go deleted file mode 100644 index 0e0161ab0f7f..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeployment/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerDeploymentRequest. - } - op, err := c.UpdateGameServerDeployment(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go b/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go deleted file mode 100644 index 5258c0e9ac58..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewGameServerDeploymentsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateGameServerDeploymentRolloutRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateGameServerDeploymentRolloutRequest. - } - op, err := c.UpdateGameServerDeploymentRollout(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go deleted file mode 100644 index d3bfcf348144..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/CreateRealm/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_CreateRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.CreateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#CreateRealmRequest. - } - op, err := c.CreateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_RealmsService_CreateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go deleted file mode 100644 index c71b78b7ddf0..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/DeleteRealm/main.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_DeleteRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.DeleteRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#DeleteRealmRequest. - } - op, err := c.DeleteRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - err = op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } -} - -// [END gameservices_v1beta_generated_RealmsService_DeleteRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go deleted file mode 100644 index 20d3a2712252..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/GetRealm/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_GetRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.GetRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#GetRealmRequest. - } - resp, err := c.GetRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_RealmsService_GetRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go deleted file mode 100644 index ef9993015b04..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/ListRealms/main.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_ListRealms_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" - "google.golang.org/api/iterator" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.ListRealmsRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#ListRealmsRequest. - } - it := c.ListRealms(ctx, req) - for { - resp, err := it.Next() - if err == iterator.Done { - break - } - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp - } -} - -// [END gameservices_v1beta_generated_RealmsService_ListRealms_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go deleted file mode 100644 index 29eef0080fdf..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/PreviewRealmUpdate/main.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.PreviewRealmUpdateRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#PreviewRealmUpdateRequest. - } - resp, err := c.PreviewRealmUpdate(ctx, req) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go b/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go deleted file mode 100644 index d839f982462e..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/RealmsClient/UpdateRealm/main.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright 2023 Google 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 -// -// https://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. - -// Code generated by protoc-gen-go_gapic. DO NOT EDIT. - -// [START gameservices_v1beta_generated_RealmsService_UpdateRealm_sync] - -package main - -import ( - "context" - - gaming "cloud.google.com/go/gaming/apiv1beta" - gamingpb "cloud.google.com/go/gaming/apiv1beta/gamingpb" -) - -func main() { - ctx := context.Background() - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in: - // https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options - c, err := gaming.NewRealmsClient(ctx) - if err != nil { - // TODO: Handle error. - } - defer c.Close() - - req := &gamingpb.UpdateRealmRequest{ - // TODO: Fill request struct fields. - // See https://pkg.go.dev/cloud.google.com/go/gaming/apiv1beta/gamingpb#UpdateRealmRequest. - } - op, err := c.UpdateRealm(ctx, req) - if err != nil { - // TODO: Handle error. - } - - resp, err := op.Wait(ctx) - if err != nil { - // TODO: Handle error. - } - // TODO: Use resp. - _ = resp -} - -// [END gameservices_v1beta_generated_RealmsService_UpdateRealm_sync] diff --git a/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json b/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json deleted file mode 100644 index 61d3c236c3bd..000000000000 --- a/internal/generated/snippets/gaming/apiv1beta/snippet_metadata.google.cloud.gaming.v1beta.json +++ /dev/null @@ -1,1257 +0,0 @@ -{ - "clientLibrary": { - "name": "cloud.google.com/go/gaming/apiv1beta", - "version": "1.10.1", - "language": "GO", - "apis": [ - { - "id": "google.cloud.gaming.v1beta", - "version": "v1beta" - } - ] - }, - "snippets": [ - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_CreateGameServerCluster_sync", - "title": "gameservices CreateGameServerCluster Sample", - "description": "CreateGameServerCluster creates a new game server cluster in a given project and location.", - "file": "GameServerClustersClient/CreateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.CreateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "CreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.CreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_DeleteGameServerCluster_sync", - "title": "gameservices DeleteGameServerCluster Sample", - "description": "DeleteGameServerCluster deletes a single game server cluster.", - "file": "GameServerClustersClient/DeleteGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.DeleteGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "DeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.DeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_GetGameServerCluster_sync", - "title": "gameservices GetGameServerCluster Sample", - "description": "GetGameServerCluster gets details of a single game server cluster.", - "file": "GameServerClustersClient/GetGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.GetGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerCluster", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "GetGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.GetGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_ListGameServerClusters_sync", - "title": "gameservices ListGameServerClusters Sample", - "description": "ListGameServerClusters lists game server clusters in a given project and location.", - "file": "GameServerClustersClient/ListGameServerClusters/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.ListGameServerClusters", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerClustersRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerClusterIterator", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "ListGameServerClusters", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.ListGameServerClusters", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewCreateGameServerCluster_sync", - "title": "gameservices PreviewCreateGameServerCluster Sample", - "description": "PreviewCreateGameServerCluster previews creation of a new game server cluster in a given project and\nlocation.", - "file": "GameServerClustersClient/PreviewCreateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.PreviewCreateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewCreateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewCreateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewCreateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewCreateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewDeleteGameServerCluster_sync", - "title": "gameservices PreviewDeleteGameServerCluster Sample", - "description": "PreviewDeleteGameServerCluster previews deletion of a single game server cluster.", - "file": "GameServerClustersClient/PreviewDeleteGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.PreviewDeleteGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewDeleteGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewDeleteGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewDeleteGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewDeleteGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_PreviewUpdateGameServerCluster_sync", - "title": "gameservices PreviewUpdateGameServerCluster Sample", - "description": "PreviewUpdateGameServerCluster previews updating a GameServerCluster.", - "file": "GameServerClustersClient/PreviewUpdateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.PreviewUpdateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewUpdateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewUpdateGameServerClusterResponse", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "PreviewUpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.PreviewUpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerClustersService_UpdateGameServerCluster_sync", - "title": "gameservices UpdateGameServerCluster Sample", - "description": "UpdateGameServerCluster patches a single game server cluster.", - "file": "GameServerClustersClient/UpdateGameServerCluster/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient.UpdateGameServerCluster", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerClusterRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerClusterOperation", - "client": { - "shortName": "GameServerClustersClient", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersClient" - }, - "method": { - "shortName": "UpdateGameServerCluster", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService.UpdateGameServerCluster", - "service": { - "shortName": "GameServerClustersService", - "fullName": "google.cloud.gaming.v1beta.GameServerClustersService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_CreateGameServerConfig_sync", - "title": "gameservices CreateGameServerConfig Sample", - "description": "CreateGameServerConfig creates a new game server config in a given project, location, and game\nserver deployment. Game server configs are immutable, and are not applied\nuntil referenced in the game server deployment rollout resource.", - "file": "GameServerConfigsClient/CreateGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient.CreateGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerConfigOperation", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient" - }, - "method": { - "shortName": "CreateGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.CreateGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_DeleteGameServerConfig_sync", - "title": "gameservices DeleteGameServerConfig Sample", - "description": "DeleteGameServerConfig deletes a single game server config. The deletion will fail if the game\nserver config is referenced in a game server deployment rollout.", - "file": "GameServerConfigsClient/DeleteGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient.DeleteGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerConfigOperation", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient" - }, - "method": { - "shortName": "DeleteGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.DeleteGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_GetGameServerConfig_sync", - "title": "gameservices GetGameServerConfig Sample", - "description": "GetGameServerConfig gets details of a single game server config.", - "file": "GameServerConfigsClient/GetGameServerConfig/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient.GetGameServerConfig", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerConfigRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerConfig", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient" - }, - "method": { - "shortName": "GetGameServerConfig", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.GetGameServerConfig", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerConfigsService_ListGameServerConfigs_sync", - "title": "gameservices ListGameServerConfigs Sample", - "description": "ListGameServerConfigs lists game server configs in a given project, location, and game server\ndeployment.", - "file": "GameServerConfigsClient/ListGameServerConfigs/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient.ListGameServerConfigs", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerConfigsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerConfigIterator", - "client": { - "shortName": "GameServerConfigsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsClient" - }, - "method": { - "shortName": "ListGameServerConfigs", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService.ListGameServerConfigs", - "service": { - "shortName": "GameServerConfigsService", - "fullName": "google.cloud.gaming.v1beta.GameServerConfigsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_CreateGameServerDeployment_sync", - "title": "gameservices CreateGameServerDeployment Sample", - "description": "CreateGameServerDeployment creates a new game server deployment in a given project and location.", - "file": "GameServerDeploymentsClient/CreateGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.CreateGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "CreateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.CreateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_DeleteGameServerDeployment_sync", - "title": "gameservices DeleteGameServerDeployment Sample", - "description": "DeleteGameServerDeployment deletes a single game server deployment.", - "file": "GameServerDeploymentsClient/DeleteGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.DeleteGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "DeleteGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.DeleteGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_FetchDeploymentState_sync", - "title": "gameservices FetchDeploymentState Sample", - "description": "FetchDeploymentState retrieves information about the current state of the game server\ndeployment. Gathers all the Agones fleets and Agones autoscalers,\nincluding fleets running an older version of the game server deployment.", - "file": "GameServerDeploymentsClient/FetchDeploymentState/main.go", - "language": "GO", - "clientMethod": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.FetchDeploymentState", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.FetchDeploymentStateRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.FetchDeploymentStateResponse", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "FetchDeploymentState", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.FetchDeploymentState", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeployment_sync", - "title": "gameservices GetGameServerDeployment Sample", - "description": "GetGameServerDeployment gets details of a single game server deployment.", - "file": "GameServerDeploymentsClient/GetGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.GetGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerDeployment", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "GetGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_GetGameServerDeploymentRollout_sync", - "title": "gameservices GetGameServerDeploymentRollout Sample", - "description": "GetGameServerDeploymentRollout gets details a single game server deployment rollout.", - "file": "GameServerDeploymentsClient/GetGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.GetGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.GameServerDeploymentRollout", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "GetGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.GetGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_ListGameServerDeployments_sync", - "title": "gameservices ListGameServerDeployments Sample", - "description": "ListGameServerDeployments lists game server deployments in a given project and location.", - "file": "GameServerDeploymentsClient/ListGameServerDeployments/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.ListGameServerDeployments", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListGameServerDeploymentsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "GameServerDeploymentIterator", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "ListGameServerDeployments", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.ListGameServerDeployments", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_PreviewGameServerDeploymentRollout_sync", - "title": "gameservices PreviewGameServerDeploymentRollout Sample", - "description": "PreviewGameServerDeploymentRollout previews the game server deployment rollout. This API does not mutate the\nrollout resource.", - "file": "GameServerDeploymentsClient/PreviewGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.PreviewGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewGameServerDeploymentRolloutResponse", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "PreviewGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.PreviewGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeployment_sync", - "title": "gameservices UpdateGameServerDeployment Sample", - "description": "UpdateGameServerDeployment patches a game server deployment.", - "file": "GameServerDeploymentsClient/UpdateGameServerDeployment/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.UpdateGameServerDeployment", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerDeploymentRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerDeploymentOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "UpdateGameServerDeployment", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeployment", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_GameServerDeploymentsService_UpdateGameServerDeploymentRollout_sync", - "title": "gameservices UpdateGameServerDeploymentRollout Sample", - "description": "UpdateGameServerDeploymentRollout patches a single game server deployment rollout.\nThe method will not return an error if the update does not affect any\nexisting realms. For example - if the default_game_server_config is changed\nbut all existing realms use the override, that is valid. Similarly, if a\nnon existing realm is explicitly called out in game_server_config_overrides\nfield, that will also not result in an error.", - "file": "GameServerDeploymentsClient/UpdateGameServerDeploymentRollout/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient.UpdateGameServerDeploymentRollout", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateGameServerDeploymentRolloutRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateGameServerDeploymentRolloutOperation", - "client": { - "shortName": "GameServerDeploymentsClient", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsClient" - }, - "method": { - "shortName": "UpdateGameServerDeploymentRollout", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService.UpdateGameServerDeploymentRollout", - "service": { - "shortName": "GameServerDeploymentsService", - "fullName": "google.cloud.gaming.v1beta.GameServerDeploymentsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_CreateRealm_sync", - "title": "gameservices CreateRealm Sample", - "description": "CreateRealm creates a new realm in a given project and location.", - "file": "RealmsClient/CreateRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.CreateRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.CreateRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "CreateRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "CreateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.CreateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_DeleteRealm_sync", - "title": "gameservices DeleteRealm Sample", - "description": "DeleteRealm deletes a single realm.", - "file": "RealmsClient/DeleteRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.DeleteRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.DeleteRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "DeleteRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "DeleteRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.DeleteRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 56, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_GetRealm_sync", - "title": "gameservices GetRealm Sample", - "description": "GetRealm gets details of a single realm.", - "file": "RealmsClient/GetRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.GetRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.GetRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.Realm", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "GetRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.GetRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_ListRealms_sync", - "title": "gameservices ListRealms Sample", - "description": "ListRealms lists realms in a given project and location.", - "file": "RealmsClient/ListRealms/main.go", - "language": "GO", - "clientMethod": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.ListRealms", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.ListRealmsRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "RealmIterator", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "ListRealms", - "fullName": "google.cloud.gaming.v1beta.RealmsService.ListRealms", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 60, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_PreviewRealmUpdate_sync", - "title": "gameservices PreviewRealmUpdate Sample", - "description": "PreviewRealmUpdate previews patches to a single realm.", - "file": "RealmsClient/PreviewRealmUpdate/main.go", - "language": "GO", - "clientMethod": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.PreviewRealmUpdate", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.PreviewRealmUpdateRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "*gamingpb.PreviewRealmUpdateResponse", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "PreviewRealmUpdate", - "fullName": "google.cloud.gaming.v1beta.RealmsService.PreviewRealmUpdate", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 53, - "type": "FULL" - } - ] - }, - { - "regionTag": "gameservices_v1beta_generated_RealmsService_UpdateRealm_sync", - "title": "gameservices UpdateRealm Sample", - "description": "UpdateRealm patches a single realm.", - "file": "RealmsClient/UpdateRealm/main.go", - "language": "GO", - "clientMethod": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsClient.UpdateRealm", - "parameters": [ - { - "type": "context.Context", - "name": "ctx" - }, - { - "type": "gamingpb.UpdateRealmRequest", - "name": "req" - }, - { - "type": "...gax.CallOption", - "name": "opts" - } - ], - "resultType": "UpdateRealmOperation", - "client": { - "shortName": "RealmsClient", - "fullName": "google.cloud.gaming.v1beta.RealmsClient" - }, - "method": { - "shortName": "UpdateRealm", - "fullName": "google.cloud.gaming.v1beta.RealmsService.UpdateRealm", - "service": { - "shortName": "RealmsService", - "fullName": "google.cloud.gaming.v1beta.RealmsService" - } - } - }, - "origin": "API_DEFINITION", - "segments": [ - { - "start": 18, - "end": 58, - "type": "FULL" - } - ] - } - ] -} \ No newline at end of file diff --git a/internal/generated/snippets/go.mod b/internal/generated/snippets/go.mod index 2a59ae11f44a..9fbfb2e38154 100644 --- a/internal/generated/snippets/go.mod +++ b/internal/generated/snippets/go.mod @@ -59,7 +59,6 @@ require ( cloud.google.com/go/filestore v1.6.0 cloud.google.com/go/firestore v1.9.0 cloud.google.com/go/functions v1.13.0 - cloud.google.com/go/gaming v1.9.0 cloud.google.com/go/gkebackup v0.4.0 cloud.google.com/go/gkeconnect v0.7.0 cloud.google.com/go/gkehub v0.12.0 @@ -132,8 +131,8 @@ require ( cloud.google.com/go/workflows v1.10.0 cloud.google.com/go/workstations v0.0.0-00010101000000-000000000000 github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect - google.golang.org/api v0.126.0 - google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc + google.golang.org/api v0.130.0 + google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 ) require ( @@ -141,7 +140,7 @@ require ( cloud.google.com/go/migrationcenter v0.0.0-00010101000000-000000000000 cloud.google.com/go/rapidmigrationassessment v0.0.0-00010101000000-000000000000 cloud.google.com/go/recaptchaenterprise v1.3.1 - google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc + google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 ) require ( @@ -150,18 +149,18 @@ require ( github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/google/s2a-go v0.1.4 // indirect - github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect - github.com/googleapis/gax-go/v2 v2.11.0 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.2.5 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect go.opencensus.io v0.24.0 // indirect - golang.org/x/crypto v0.9.0 // indirect - golang.org/x/net v0.10.0 // indirect - golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sys v0.8.0 // indirect - golang.org/x/text v0.9.0 // indirect + golang.org/x/crypto v0.11.0 // indirect + golang.org/x/net v0.12.0 // indirect + golang.org/x/oauth2 v0.9.0 // indirect + golang.org/x/sys v0.10.0 // indirect + golang.org/x/text v0.11.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc // indirect - google.golang.org/grpc v1.55.0 // indirect - google.golang.org/protobuf v1.30.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529 // indirect + google.golang.org/grpc v1.56.2 // indirect + google.golang.org/protobuf v1.31.0 // indirect ) replace cloud.google.com/go/storageinsights => ../../../storageinsights @@ -230,8 +229,6 @@ replace cloud.google.com/go/eventarc => ../../../eventarc replace cloud.google.com/go/functions => ../../../functions -replace cloud.google.com/go/gaming => ../../../gaming - replace cloud.google.com/go/gsuiteaddons => ../../../gsuiteaddons replace cloud.google.com/go/iap => ../../../iap diff --git a/internal/generated/snippets/go.sum b/internal/generated/snippets/go.sum index 6c1f005d155f..cda1d56273c9 100644 --- a/internal/generated/snippets/go.sum +++ b/internal/generated/snippets/go.sum @@ -2,6 +2,11 @@ cloud.google.com/go/dataproc v1.7.0/go.mod h1:CKAlMjII9H90RXaMpSxQ8EU6dQx6iAYNPc cloud.google.com/go/dataproc v1.8.0/go.mod h1:5OW+zNAH0pMpw14JVrPONsxMQYMBqJuzORhIBfBn9uI= cloud.google.com/go/dataproc v1.12.0 h1:W47qHL3W4BPkAIbk4SWmIERwsWBaNnWm0P2sdx3YgGU= cloud.google.com/go/dataproc v1.12.0/go.mod h1:zrF3aX0uV3ikkMz6z4uBbIKyhRITnxvr4i3IjKsKrw4= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gaming v1.7.0/go.mod h1:LrB8U7MHdGgFG851iHAfqUdLcKBdQ55hzXy9xBJz0+w= +cloud.google.com/go/gaming v1.8.0/go.mod h1:xAqjS8b7jAVW0KFYeRUxngo9My3f33kFmua++Pi+ggM= +cloud.google.com/go/gaming v1.9.0/go.mod h1:Fc7kEmCObylSWLO334NcO+O9QMDyz+TKC4v1D7X+Bc0= cloud.google.com/go/recaptchaenterprise v1.3.1 h1:u6EznTGzIdsyOsvm+Xkw0aSuKFXQlyjGE9a4exk6iNQ= cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= @@ -127,8 +132,9 @@ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= github.com/googleapis/enterprise-certificate-proxy v0.2.1/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= -github.com/googleapis/enterprise-certificate-proxy v0.2.3 h1:yk9/cqRKtT9wXZSsRH9aurXEpJX+U6FLtpYTdC3R06k= github.com/googleapis/enterprise-certificate-proxy v0.2.3/go.mod h1:AwSRAtLfXpU5Nm3pW+v7rGDHp09LsPtGY9MduiEsR9k= +github.com/googleapis/enterprise-certificate-proxy v0.2.5 h1:UR4rDjcgpgEnqpIEvkiqTYKBCKLNmlge2eVjoZfySzM= +github.com/googleapis/enterprise-certificate-proxy v0.2.5/go.mod h1:RxW0N9901Cko1VOCW3SXCpWP+mlIEkk2tP7jnHy9a3w= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= @@ -140,8 +146,9 @@ github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMd github.com/googleapis/gax-go/v2 v2.7.0/go.mod h1:TEop28CZZQ2y+c0VxMUmu1lV+fQx57QpBWsYpwqHJx8= github.com/googleapis/gax-go/v2 v2.8.0/go.mod h1:4orTrqY6hXxxaUL4LHIPl6lGo8vAE38/qKbhSAKP6QI= github.com/googleapis/gax-go/v2 v2.10.0/go.mod h1:4UOEnMCrxsSqQ940WnTiD6qJ63le2ev3xfyagutxiPw= -github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cUUI8Ki4= github.com/googleapis/gax-go/v2 v2.11.0/go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0/go.mod h1:hgWBS7lorOAVIJEQMi4ZsPv9hVvWI6+ch50m39Pf2Ks= @@ -232,8 +239,9 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220314234659-1baeb1ce4c0b/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw= -golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= +golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= +golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -308,8 +316,9 @@ golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= +golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= +golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -323,13 +332,15 @@ golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec= golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I= golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw= -golang.org/x/oauth2 v0.8.0 h1:6dkIjl3j3LtZ/O3sTgZTMsLKSftL/B8Zgq4huOIIUu8= golang.org/x/oauth2 v0.8.0/go.mod h1:yr7u4HXZRm1R1kBWqr/xKNqewf0plRYoB7sla+BCIXE= +golang.org/x/oauth2 v0.9.0 h1:BPpt2kU7oMRq3kCHAA1tbSEshXRw1LpG2ztgDwrzuAs= +golang.org/x/oauth2 v0.9.0/go.mod h1:qYgFZaFiu6Wg24azG8bdV52QJXJGbZzIIsRCdVKzbLw= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -342,8 +353,8 @@ golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.2.0 h1:PUR+T4wwASmuSTYdKjYHI5TD22Wy5ogLU5qZCOLxBrI= golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -384,8 +395,9 @@ golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= +golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -408,8 +420,9 @@ golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.3.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -457,14 +470,18 @@ google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRR google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= google.golang.org/api v0.99.0/go.mod h1:1YOf74vkVndF7pG6hIHuINsM7eWwpVTAfNMNiL91A08= google.golang.org/api v0.102.0/go.mod h1:3VFl6/fzoA+qNuS1N1/VfXY4LjoXN/wzeIp7TweWwGo= +google.golang.org/api v0.103.0/go.mod h1:hGtW6nK1AC+d9si/UBhw8Xli+QMOf6xyNAyJw4qU9w0= google.golang.org/api v0.108.0/go.mod h1:2Ts0XTHNVWxypznxWOYUeI4g3WdP9Pk2Qk58+a/O9MY= google.golang.org/api v0.111.0/go.mod h1:qtFHvU9mhgTJegR31csQ+rwxyUTHOKFqCKWp1J0fdw0= google.golang.org/api v0.124.0/go.mod h1:xu2HQurE5gi/3t1aFCvhPD781p0a3p11sdunTJ2BlP4= -google.golang.org/api v0.126.0 h1:q4GJq+cAdMAC7XP7njvQ4tvohGLiSlytuL4BQxbIZ+o= google.golang.org/api v0.126.0/go.mod h1:mBwVAtz+87bEN6CbA1GtZPDOqY2R5ONPqJeIlvyo4Aw= +google.golang.org/api v0.130.0 h1:A50ujooa1h9iizvfzA4rrJr2B7uRmWexwbekQ2+5FPQ= +google.golang.org/api v0.130.0/go.mod h1:J/LCJMYSDFvAVREGCbrESb53n4++NMBDetSHGL5I5RY= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -495,11 +512,14 @@ google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= google.golang.org/genproto v0.0.0-20221027153422-115e99e71e1c/go.mod h1:CGI5F/G+E5bKwmfYo09AXuVN4dD894kIKUFmVbP2/Fo= google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= +google.golang.org/genproto v0.0.0-20221201164419-0e50fba7f41c/go.mod h1:rZS5c/ZVYMaOGBfO68GWtjOw/eLaZM1X6iVtgjZ+EWg= google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= google.golang.org/genproto v0.0.0-20230123190316-2c411cf9d197/go.mod h1:RGgjbofJ8xD9Sq1VVhDM1Vok1vRONV+rg+CjzG4SZKM= @@ -508,19 +528,22 @@ google.golang.org/genproto v0.0.0-20230303212802-e74f57abe488/go.mod h1:TvhZT5f7 google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s= google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= google.golang.org/genproto v0.0.0-20230525234025-438c736192d0/go.mod h1:9ExIQyXL5hZrHzQceCwuSYwZZ5QZBazOcprJ5rgs3lY= -google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc h1:8DyZCyvI8mE1IdLy/60bS+52xfymkE72wv1asokgtao= google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= +google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 h1:9JucMWR7sPvCxUFd6UsOUNmA5kCcWOfORaT3tpAsKQs= +google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64= google.golang.org/genproto/googleapis/api v0.0.0-20230525234020-1aefcd67740a/go.mod h1:ts19tUU+Z0ZShN1y3aPyq2+O3d5FUNNgT6FtOzmrNn8= google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= google.golang.org/genproto/googleapis/api v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= -google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc h1:kVKPf/IiYSBWEWtkIn6wZXwWGCnLKcC8oWfZvXjsGnM= google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig= +google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 h1:XVeBY8d/FaK4848myy41HBqnDwvxeV3zMZhwN1TvAMU= +google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ= google.golang.org/genproto/googleapis/bytestream v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:ylj+BE99M198VPbBh6A8d9n3w8fChvyLK3wwBOjXBFA= google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234015-3fc162c6f38a/go.mod h1:xURIpW9ES5+/GZhnV6beoEtxQrnkRGIfP5VQG2tCBLc= google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= google.golang.org/genproto/googleapis/rpc v0.0.0-20230526203410-71b5a4ffd15e/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc h1:XSJ8Vk1SWuNr8S18z1NZSziL0CPIXLCCMDOEFtHBOFc= google.golang.org/genproto/googleapis/rpc v0.0.0-20230530153820-e85fd2cbaebc/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529 h1:DEH99RbiLZhMxrpEJCZ0A+wdTe0EOgou/poSLx9vWf4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529/go.mod h1:66JfowdXAEgad5O9NnYcsNPLCPZJD++2L9X0PCMODrA= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= @@ -547,8 +570,9 @@ google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsA google.golang.org/grpc v1.52.0/go.mod h1:pu6fVzoFb+NBYNAvQL08ic+lvB2IojljRYuun5vorUY= google.golang.org/grpc v1.53.0/go.mod h1:OnIrk0ipVdj4N5d9IUoFUx72/VlD7+jUsHwZgwSMQpw= google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= -google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= +google.golang.org/grpc v1.56.2 h1:fVRFRnXvU+x6C4IlHZewvJOVHoOv1TUuQyoRsYnB4bI= +google.golang.org/grpc v1.56.2/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= @@ -565,8 +589,9 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= +google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/internal/postprocessor/config.yaml b/internal/postprocessor/config.yaml index ad786fe420d2..2100a0cc587a 100644 --- a/internal/postprocessor/config.yaml +++ b/internal/postprocessor/config.yaml @@ -56,7 +56,6 @@ modules: - filestore - firestore - functions - - gaming - gkebackup - gkeconnect - gkehub @@ -511,12 +510,6 @@ service-configs: - input-directory: google/cloud/functions/v2beta service-config: cloudfunctions_v2beta.yaml import-path: cloud.google.com/go/functions/apiv2beta - - input-directory: google/cloud/gaming/v1 - service-config: gameservices_v1.yaml - import-path: cloud.google.com/go/gaming/apiv1 - - input-directory: google/cloud/gaming/v1beta - service-config: gameservices_v1beta.yaml - import-path: cloud.google.com/go/gaming/apiv1beta - input-directory: google/cloud/gkebackup/v1 service-config: gkebackup_v1.yaml import-path: cloud.google.com/go/gkebackup/apiv1 diff --git a/release-please-config-yoshi-submodules.json b/release-please-config-yoshi-submodules.json index 43d18ea4f4b3..47ac65fc869c 100644 --- a/release-please-config-yoshi-submodules.json +++ b/release-please-config-yoshi-submodules.json @@ -162,9 +162,6 @@ "functions": { "component": "functions" }, - "gaming": { - "component": "gaming" - }, "gkebackup": { "component": "gkebackup" },